/* PORTADOR THEME V5 - HUD AUTHENTICITY */
:root {
    /* Colors (DARK DEFAULT) */
    --bg-body: #020408;
    --panel-bg: rgba(10, 15, 20, 0.6);
    --panel-border: rgba(255, 255, 255, 0.06);

    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.4);
    --accent-dim: rgba(34, 211, 238, 0.08);

    --accent2: #8b5cf6;
    --accent2-glow: rgba(139, 92, 246, 0.4);

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --hero-ghost: rgba(255, 255, 255, 0.25);
    /* Stronger visibility */
    --hero-stroke: transparent;
    /* No stroke needed in dark usually, or subtle */

    --grid-color: rgba(34, 211, 238, 0.03);

    /* Watermark Blend */
    --wm-blend: screen;
    --wm-filter: none;
    --wm-opacity: 1;

    /* Font */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Dimensions */
    --sidebar-width: 260px;
    --rail-width: 380px;

    /* Common */
    --border: var(--panel-border);
    --bg-overlay: rgba(2, 4, 8, 0.85);
}

/* LIGHT THEME OVERRIDES (FROST GRAY V3) */
/* LIGHT THEME OVERRIDES (MEDIUM STEEL V1) */
[data-theme="light"] {
    /* Medium Steel Palette - NO WHITE */
    --bg-body: rgb(214, 223, 236);
    /* #D6DFEC (Cool Stone) */
    --bg-body-2: rgb(203, 214, 231);
    /* Slightly Darker */

    /* Glass Panels with Cool Tint */
    --panel-bg: rgba(238, 244, 252, 0.78);
    --panel-border: rgba(15, 23, 42, 0.18);
    /* Visible Border */
    --border: var(--panel-border);
    --bg-overlay: rgba(214, 223, 236, 0.85);

    /* Ink Accents */
    --accent: rgb(2, 132, 199);
    /* Cyan 600 */
    --accent-glow: rgba(2, 132, 199, 0.15);
    --accent-dim: rgba(2, 132, 199, 0.08);

    --accent2: rgb(79, 70, 229);
    /* Violet 600 */
    --accent2-glow: rgba(79, 70, 229, 0.15);

    /* Text High Contrast (Dark Ink) */
    --text-main: rgb(10, 18, 34);
    /* #0A1222 */
    --text-muted: rgb(30, 41, 59);
    /* #1E293B */
    --text-muted-2: rgb(71, 85, 105);
    /* #475569 */

    /* Ghost Text Logic */
    --hero-ghost: rgba(10, 18, 34, 0.12);
    /* Subtle Ink Ghost */
    --hero-stroke: transparent;

    --grid-color: rgba(15, 23, 42, 0.06);
    /* Stronger grid for Medium bg */

    /* Watermark Blend */
    --wm-blend: multiply;
    --wm-filter: none;
    --wm-opacity: 0.05;

    /* Shadows not Glows */
    --card-shadow: 0 4px 6px -1px rgba(2, 6, 23, 0.14), 0 2px 4px -1px rgba(2, 6, 23, 0.06);
    --focus: rgba(2, 132, 199, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth Theme transition */

    /* PORTADOR WATERMARK & TECH GRID */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, var(--accent-dim) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-position: center top;
}

[data-theme="light"] body {
    /* Medium Steel Depth Background */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        /* Cyan Tint Top Right */
        radial-gradient(circle at 80% 0%, rgba(2, 132, 199, 0.12) 0%, transparent 45%),
        /* Violet Tint Bottom Left */
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 45%),
        /* Noise Grain (Simulated via image if available, or just texture) */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");

    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 200px 200px;
    background-attachment: scroll, scroll, fixed, fixed, fixed;
}

/* =========================================
   GRID LAYOUT
   ========================================= */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--rail-width);
    grid-template-rows: 1fr auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-overlay);
    /* Darker */
    backdrop-filter: blur(8px);
}

/* FULL WIDTH MODE (Added for Marketplace) */
.app-container.full-width-mode {
    grid-template-columns: var(--sidebar-width) 1fr;
    /* Remove Rail Column */
}

.app-container.full-width-mode .layout-rail {
    display: none;
}

/* =========================================
   SIDEBAR (PORTADOR OS)
   ========================================= */
.layout-sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
}

/* BRAND BLOCK (Sidebar) */
.brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    position: relative;
}

/* Compact Badge */
.brand-mark-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.05);
    position: relative;
}

[data-theme="light"] .brand-mark-box {
    background: rgba(255, 255, 255, 0.03);
    /* Revert to subtle dark */
    border-color: var(--panel-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Status Dot on Brand */
.brand-mark-box::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* Mark Image */
.brand-mark-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    /* CRITICAL: No distortion */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

[data-theme="light"] .brand-mark-img {
    filter: none;
    opacity: 1;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: transparent;
    /* No white bg */
    border-radius: 6px;
}

.brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* Light Mode Logo Adaptation */
[data-theme="light"] .brand-logo {
    filter: none;
    /* Do not invert, keep original quality */
}

/* Brand Text Info */
.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 2px;
}

[data-theme="light"] .brand-name {
    color: #0f172a;
    /* Solid Slate 900 for maximum sharpness */
    text-shadow: none;
    -webkit-text-stroke: 0;
}

.brand-subline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* WATERMARK STAMP (Rail/Footer) */
.watermark-stamp {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    border-left: 2px solid var(--accent-dim);
    border-radius: 0 8px 8px 0;
    margin-top: auto;

    /* Theme Adaptations */
    mix-blend-mode: var(--wm-blend);
    opacity: var(--wm-opacity);
    filter: var(--wm-filter);
    transition: 0.3s;
}

.wm-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.9;
}

.wm-text-group {
    display: flex;
    flex-direction: column;
}

.wm-name {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1;
    /* Was white */
}

.wm-handle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Redefine nav-link slightly to match new brand block spacing if needed */
.nav-link {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    /* Tech square */
    margin-bottom: 0.25rem;
    position: relative;
    border: 1px solid transparent;
    transition: 0.2s;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    /* Slightly rounded */
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    mix-blend-mode: screen;
    /* Fallback */
}

.brand-text {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headings */
.sidebar-heading {
    font-size: 0.65rem;
    color: #475569;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-heading::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
}

/* Nav Link HUD */

[data-theme="light"] .nav-link:hover {
    background: var(--surface2, rgba(17, 27, 45, 0.86));
    border-color: var(--panel-border);
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.nav-link:hover .nav-icon {
    stroke: var(--text-main);
}

.nav-link.active {
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--text-main);
    box-shadow:
        inset 2px 0 0 0 var(--accent),
        /* Left Bar internal */
        0 0 15px rgba(34, 211, 238, 0.05);
}

.nav-link.active .nav-icon {
    stroke: var(--accent);
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

/* Active Dot */
.nav-link.active::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 18px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    stroke: #64748b;
    transition: 0.2s;
}

/* System */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sys-status {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.layout-main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

/* Topbar Pill */
.main-topbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    pointer-events: none;
}

.nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    padding: 0.35rem 0.35rem 0.35rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
}

.top-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: 0.3s;
    margin-right: 1rem;
    text-transform: uppercase;
}

.top-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.btn-cta {
    background: rgba(34, 211, 238, 0.05);
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cta:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* HERO */
.hero-wrapper {
    padding: 4rem 3rem 2rem 3rem;
    position: relative;
}

.hero-t.rail-h3 {
    font-family: 'JetBrains Mono';
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.rail-p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-search {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    /* HUD Square */
    padding: 0.5rem;
    display: flex;
    align-items: center;
    max-width: 500px;
    position: relative;
}

/* HUD Corner for Search */
.hero-search::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
}

.hero-search::before {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem;
    color: var(--text-main);
    /* FIX: Was white */
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* HERO CALLOUT SIDEBAR OVERRIDES */
.dossier-sidebar .hero-callout {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: left;
    background: rgba(139, 92, 246, 0.05);
    /* Softer bg */
}

.dossier-sidebar .hc-bullets {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dossier-sidebar .hc-actions {
    flex-direction: column;
    width: 100%;
}

.dossier-sidebar .btn-hc-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.8rem;
}

/* =========================================
   FILE INSPECTOR MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card.file-inspector {
    width: 600px;
    max-width: 90vw;
    height: 70vh;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.fi-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
}

.fi-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.fi-title i {
    color: var(--accent);
}

.fi-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.fi-close:hover {
    color: #fff;
}

.fi-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #0b1120;
    /* Darker terminal bg */
}

/* File Tree Styles */
.fi-tree {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #d1d5db;
}

.fi-node {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    cursor: default;
    transition: 0.1s;
}

.fi-node:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fi-node.folder {
    color: #fbbf24;
    /* Amber for folders */
    font-weight: 700;
}

.fi-node.file {
    color: #94a3b8;
}

.fi-node i {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.fi-indent {
    width: 20px;
    display: inline-block;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 24px;
    margin-right: 4px;
}

.fi-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fi-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.fi-badge {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem;
}

.script-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    /* Tech sharp */
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.script-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Light Theme Shadow Override */
[data-theme="light"] .script-card:hover {
    box-shadow: var(--card-shadow);
    border-color: var(--accent);
    background: var(--panel-bg);
}

/* SCANLINE HOVER EFFECT */
.script-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 50%, rgba(34, 211, 238, 0.05) 50.5%, transparent 51%);
    background-size: 100% 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.script-card:hover::after {
    opacity: 1;
}

/* COVER SYSTEM */
.card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: radial-gradient(circle at 50% 120%, #1e1b4b, #020617);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

/* Noise Overlay */
.card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cover-icon {
    stroke: white;
    width: 48px;
    height: 48px;
    stroke-width: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    z-index: 2;
}

.cover-code {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.cover-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    z-index: 2;
    text-transform: uppercase;
}

.cover-badge.hot {
    border-color: var(--accent2);
    color: var(--accent2);
    background: rgba(139, 92, 246, 0.1);
}

.cover-badge.new {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-card {
    background: transparent;
    border: 1px solid var(--border-light);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-card:hover {
    border-color: var(--accent);
    color: white;
}

/* =========================================
   RIGHT RAIL
   ========================================= */
.layout-rail {
    grid-column: 3;
    border-left: 1px solid var(--border);
    padding: 2rem;
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* RAIL MODULES */
.rail-content {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rail-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rail-section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--border);
}

/* Compact List (Popular) */
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: 0.2s;
    text-decoration: none;
}

.compact-item:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.2);
}

.ci-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ci-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
}

.ci-meta {
    font-size: 0.7rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.ci-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

/* Categories Chips */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
    font-family: var(--font-mono);
}

.tech-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.05);
}

/* Tech Bullets */
.tech-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tb-item {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tb-dot {
    width: 4px;
    height: 4px;
    background: var(--accent2);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent2);
}

/* FAQ Details */
.rail-details {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.rail-details:last-child {
    border-bottom: none;
}

.rail-summary {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rail-summary::-webkit-details-marker {
    display: none;
}

/* Hide default arrow */
.rail-summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 400;
}

details[open] .rail-summary::after {
    content: '-';
}

.rail-answer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
}

/* THEME SWITCHER (SIDEBAR) */
.sidebar-theme-control {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
    margin: 0 0.5rem;
}

.theme-chip {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    text-transform: uppercase;
    text-align: center;
}

.theme-chip:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.theme-chip.active {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* AUTH UI */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    background: none;
    border: none;
    color: #64748b;
    padding-bottom: 0.5rem;
    font-family: var(--font-mono);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tech-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 0.8rem;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    outline: none;
    transition: 0.2s;
}

.tech-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.btn-cta.full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* RAIL MODULES */
.rail-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    /* NOTCH */
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
}

.rail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.rail-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.rail-p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-rail {
    width: 100%;
    background: rgba(34, 211, 238, 0.05);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-rail:hover {
    background: var(--accent);
    color: #000;
}

/* PREMIUM NAV BUTTON */
/* SIDEBAR SERVICE WIDGET */
/* SIDEBAR MICRO-WIDGET */
.sidebar-service-widget {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    /* Magenta (Fuchsia-500) to Purple (Violet-500) Gradient - Low Opacity */
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(217, 70, 239, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-service-widget:hover {
    /* Slightly stronger on hover */
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(217, 70, 239, 0.5);
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.15);
    transform: translateY(-1px);
}

.ssw-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ssw-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
}

.ssw-body {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssw-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: 0.3s;
    color: var(--accent);
}

.sidebar-service-widget:hover .ssw-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}



/* SIDEBAR FOOTER COMPACT */
.sidebar-footer-group {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sfg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Compact Auth Buttons */
.btn-auth-compact {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    font-family: var(--font-mono);
}

.bac-login {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.bac-login:hover {
    background: var(--panel-bg);
    color: #fff;
    border-color: var(--text-color);
}

.bac-register {
    background: var(--accent);
    color: #000;
}

.bac-register:hover {
    background: #c084fc;
    transform: translateY(-1px);
}

/* Compact Theme Toggles */
.theme-compact-row {
    display: flex;
    gap: 2px;
    background: var(--panel-bg);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.theme-icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: 0.2s;
}

.theme-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.theme-icon-btn.active {
    background: var(--accent);
    color: #000;
}


.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    filter: grayscale(100%);
    transition: 0.3s;
}

.author-block:hover .author-avatar {
    filter: grayscale(0%);
}

.author-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.author-info span {
    font-size: 0.7rem;
    color: #64748b;
    font-family: var(--font-mono);
}

/* FOOTER */
.app-footer {
    grid-column: 1 / -1;
    background: #000;
    border-top: 1px solid var(--border);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #475569;
    font-family: var(--font-mono);
}

/* Utility */
.hidden {
    display: none !important;
}

.divider-h {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* =========================================
   MARKETPLACE & LIBRARY
   ========================================= */
.library-container {
    padding: 3rem;
    max-width: 1000px;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: 0.2s;
}

.library-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.lib-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lib-icon i {
    width: 24px;
    height: 24px;
}

.lib-info {
    flex: 1;
}

.lib-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.lib-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.lib-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: 0.2s;
}

.btn-sm:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.btn-sm.primary {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm.primary:hover {
    background: var(--accent);
    color: #000;
}

/* =========================================
   SERVICES DASHBOARD
   ========================================= */
.services-container {
    padding: 3rem;
    max-width: 1200px;
}

.services-toolbar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.svc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.svc-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.svc-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid currentColor;
    text-transform: uppercase;
}

/* Status Colors (Utility) */
.text-blue-500 {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.text-yellow-500 {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.1);
}

.text-purple-500 {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
}

.text-green-500 {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.text-orange-500 {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.1);
}

.text-emerald-500 {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.text-gray-500 {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.1);
}

.svc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.svc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.svc-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    font-family: var(--font-mono);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* =========================================
   PRODUCT DETAIL UPSELLS
   ========================================= */

/* 1. HERO CALLOUT (Top of Product) */
.hero-callout {
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    /* Violet border */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.05);
}

/* Subtle Neon Line Top */
.hero-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.hc-content {
    flex: 1;
}

.hc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hc-title::before {
    content: '⚡';
    font-size: 0.9rem;
}

.hc-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.hc-bullets {
    display: flex;
    gap: 1.5rem;
}

.hc-bullets span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.hc-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hc-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-hc-primary {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.btn-hc-primary:hover {
    background: #8b5cf6;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-hc-secondary {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    transition: 0.2s;
}

.btn-hc-secondary:hover {
    color: #fff;
}


/* 2. PREMIUM SERVICE CARD (In Content) */
.premium-service-card {
    margin-top: 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Glow Effect */
.psc-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.psc-content {
    position: relative;
    z-index: 2;
}

.psc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.psc-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.psc-badge {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.psc-text {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.psc-guarantees {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.psc-guarantees span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
}

.psc-guarantees i {
    color: #22d3ee;
}

.btn-psc-action {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.btn-psc-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}

/* =========================================
   REQUEST DETAIL & CHAT
   ========================================= */
.request-detail {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.rd-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rd-header h2 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rd-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.msg-bubble {
    max-width: 70%;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-user {
    align-self: flex-end;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--text-main);
    border-bottom-right-radius: 0;
}

.msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #e2e8f0;
    border-bottom-left-radius: 0;
}

.msg-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
}

.rd-composer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    background: var(--panel-bg);
}

.rd-composer textarea {
    flex: 1;
    resize: none;
    height: 60px;
}

/* FORM STYLES */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.2s;
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* =========================================
   PREMIUM MARKETPLACE UI (V6)
   ========================================= */

/* HERO SECTION */
#market-hero {
    margin: 3rem 3rem 0rem 3rem;
}

.premium-hero {
    background: radial-gradient(circle at 80% 50%, #1e1b4b, #020617);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.premium-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Light Mode Hero Override */
[data-theme="light"] .premium-hero {
    background: radial-gradient(circle at 80% 50%, #eff6ff, #dbeafe);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.2);
}

.ph-content {
    max-width: 50%;
    z-index: 2;
}

.ph-badge {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
}

.ph-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .ph-title {
    background: linear-gradient(90deg, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ph-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.ph-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

[data-theme="light"] .ph-meta {
    color: #475569;
}

.ph-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ph-meta i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.btn-hero {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-hero.glow {
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

/* Animated Visual */
.ph-visual {
    position: relative;
    z-index: 1;
}

.ph-card-tilt {
    width: 280px;
    height: 380px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-12deg) rotateX(5deg);
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.premium-hero:hover .ph-card-tilt {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

/* FILTER BAR */
#market-filters {
    padding: 0 3rem;
    margin-top: 2rem;
}

.filter-bar {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.filter-pill:hover {
    background: rgba(34, 211, 238, 0.05);
    color: var(--text-main);
    border-color: rgba(34, 211, 238, 0.3);
}

.filter-pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* PREMIUM GRID OVERRIDES */
/* We replace .market-grid padding from 3rem to fit */
.market-grid {
    padding-top: 2rem;
}

/* PREMIUM CARD */
.premium-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: 0.3s;
}

.premium-card:hover::before {
    opacity: 1;
}

/* Premium Card Sections */
.pc-head {
    height: 140px;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.05), transparent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.pc-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    font-weight: 800;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pc-icon {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    stroke-width: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: 0.3s;
}

.premium-card:hover .pc-icon {
    stroke: var(--accent);
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.pc-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.pc-price {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
}

/* Overlay Action */
.pc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 8, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: 0.3s;
    text-align: center;
}

.premium-card:hover .pc-overlay {
    opacity: 1;
}

.pc-desc-hover {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-pc-action {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.2s;
}

.btn-pc-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* =========================================
   USER PROFILE PANEL
   ========================================= */

.profile-container {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* -- Profile Header -- */
@keyframes profileGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes avatarPulse {

    0%,
    100% {
        box-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(34, 211, 238, 0.1);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(139, 92, 246, 0.15);
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1.8rem;
    background:
        linear-gradient(135deg,
            rgba(34, 211, 238, 0.06) 0%,
            rgba(139, 92, 246, 0.04) 40%,
            rgba(15, 20, 30, 0.9) 100%);
    background-size: 200% 200%;
    animation: profileGradientShift 8s ease infinite;
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-bottom: 2px solid rgba(34, 211, 238, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.profile-header:hover {
    border-color: rgba(34, 211, 238, 0.25);
}

/* Radial glow behind avatar area */
.profile-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.07), transparent 70%);
    pointer-events: none;
}

/* Horizontal scan-line for HUD feel */
.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), rgba(139, 92, 246, 0.5), transparent);
    opacity: 0.4;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.profile-avatar-img,
.profile-avatar-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: avatarPulse 3s ease-in-out infinite;
}

.profile-avatar-img {
    object-fit: cover;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.1));
    color: var(--accent);
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.profile-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.profile-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.profile-status-dot.pending {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.profile-header-info {
    z-index: 1;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.profile-email {
    font-size: 0.8rem;
    color: rgba(34, 211, 238, 0.7);
    font-family: 'JetBrains Mono', monospace;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.3px;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.profile-role-badge.admin {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.profile-role-badge.user {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.profile-status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.profile-status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.profile-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* -- Stats Grid -- */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pstat-card {
    background: rgba(15, 20, 30, 0.7);
    border: 1px solid var(--panel-border);
    border-left: 2px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.pstat-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(15, 20, 30, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pstat-icon {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.pstat-icon svg {
    width: 20px;
    height: 20px;
}

.pstat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
}

.pstat-label {
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -- Profile Cards -- */
.profile-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-card {
    background: rgba(15, 20, 30, 0.7);
    border: 1px solid var(--panel-border);
    border-left: 2px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.profile-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(15, 20, 30, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-card:hover .profile-card-header {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.06), transparent);
}

.profile-card.full-width {
    grid-column: 1 / -1;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.04), rgba(139, 92, 246, 0.03), transparent);
    transition: background 0.3s ease;
}

.profile-card-header h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f1f5f9;
    text-transform: uppercase;
}

.profile-card-header svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.profile-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* -- Profile Fields -- */
.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-field:last-child {
    border-bottom: none;
}

.pf-label {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.pf-value {
    font-size: 0.8rem;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* -- Wallet Items -- */
.profile-wallet-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--panel-border);
}

.wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-main);
    flex: 1;
}

.wallet-chain {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.profile-empty-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    gap: 0.5rem;
}

.profile-empty-mini p {
    font-size: 0.75rem;
    margin: 0;
}

.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
    gap: 1rem;
}

.profile-empty p {
    font-size: 0.9rem;
}

/* -- Security Section -- */
.security-body {
    gap: 0;
}

.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.security-item:last-child {
    border-bottom: none;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.security-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.security-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.btn-profile-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-profile-action.danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-profile-action.danger:hover {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* -- Admin Access Card -- */
.admin-access-card {
    border-left-color: rgba(250, 204, 21, 0.4) !important;
}

.admin-access-card .profile-card-header {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.06), rgba(245, 158, 11, 0.04), transparent);
}

.admin-access-card:hover {
    border-left-color: #facc15 !important;
}

.admin-access-card:hover .profile-card-header {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.1), rgba(245, 158, 11, 0.06), transparent);
}

.admin-access-card .profile-card-header svg {
    color: #facc15;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.4));
}

.btn-profile-action.admin-btn {
    border-color: rgba(250, 204, 21, 0.3);
    color: #facc15;
    text-decoration: none;
}

.btn-profile-action.admin-btn:hover {
    border-color: #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
    color: #fde047;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-cards-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   MARKETPLACE HERO REDESIGN (PREMIUM V2)
   ========================================= */
.mp-hero-container {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.6), rgba(8, 15, 25, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split layout */
    gap: 3rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mp-hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.05), transparent 40%);
    pointer-events: none;
}

/* LEFT CONTENT */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    width: fit-content;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 2rem 0;
    max-width: 90%;
}

.hero-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* ACTIONS */
.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-hero-premium {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.btn-hero-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
    background: #06b6d4;
    /* Cyan 600 */
}

.btn-hero-premium.disabled {
    background: #334155;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-divider {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* RIGHT VISUAL */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.visual-card {
    position: relative;
    width: 100%;
    height: 350px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    overflow: hidden;
}

.mp-hero-container:hover .visual-card {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e293b, #0f172a);
}

.placeholder-icon i {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .mp-hero-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-meta-row {
        justify-content: center;
    }

    .visual-card {
        height: 250px;
        transform: none;
    }
}

/* =========================================
   MARKETPLACE REDESIGN V3 (PREMIUM DOSSIER)
   ========================================= */

/* --- MARKET HEADER --- */
.market-header {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.mh-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.mh-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.mh-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
}

.mh-search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    width: 350px;
    font-family: var(--font-mono);
}

.mh-prompt {
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
    user-select: none;
}

.mh-search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.mh-search-icon {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.mh-filters {
    /* Container for renderFilters */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.filter-group-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.filter-pill.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.05);
}

.filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- DOSSIER CARD (LISTING) --- */
.dossier-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dossier-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.d-thumb-container {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.d-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.d-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
}

.dossier-card:hover .d-thumb-img {
    transform: scale(1.05);
}

.d-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 8, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.dossier-card:hover .d-thumb-overlay {
    opacity: 1;
}

.btn-dossier-view {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-dossier-view:hover {
    background: #fff;
    color: #000;
}

.d-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.d-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 700;
}

.d-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.d-badge.stock {
    color: #10b981;
}

.d-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.d-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    /* Push footer down */
}

.d-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.d-badges {
    display: flex;
    gap: 0.5rem;
}

.d-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
}

/* SERVICE CARD VARIANT */
.service-promo-card {
    border: 1px dashed var(--accent);
    background: rgba(34, 211, 238, 0.03);
}

.d-service-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.d-service-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.btn-service-request {
    margin-top: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* --- DOSSIER DETAIL LAYOUT --- */
.dossier-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0 2rem 0;
    animation: fadeIn 0.5s ease;
}

.d-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    cursor: default;
}

.d-breadcrumbs span:hover {
    color: #fff;
    cursor: pointer;
}

.d-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
    cursor: default;
}

.d-breadcrumbs .active {
    color: var(--accent);
    cursor: default;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* LEFT COL */
.dossier-main {
    display: flex;
    flex-direction: column;
}

.d-main-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.dm-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.dm-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dm-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.d-badge-outline {
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.d-badge-filled {
    background: var(--accent);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}

.d-gallery {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.d-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.d-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* TABS */
.d-tabs-nav {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.d-tab {
    background: none;
    border: none;
    padding: 0 0 1rem 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.d-tab:hover {
    color: #fff;
}

.d-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.d-tab-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

.d-tab-content h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* LISTS */
.d-list-check,
.d-list-dot {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.d-list-check li,
.d-list-dot li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.d-list-dot li::before {
    content: '•';
    color: var(--accent);
}

/* TERMINAL */
.d-terminal {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.dt-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.dt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.dt-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cmd {
    color: #cbd5e1;
}

.bg {
    color: #64748b;
    font-style: italic;
}

.success {
    color: #10b981;
    margin-top: 0.5rem;
}

/* SERVICE INTERNAL */
.d-service-block-internal {
    margin-top: 3rem;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent);
    border-left: 2px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* RIGHT COL: BUY BOX */
.dossier-sidebar {
    position: relative;
}

.buy-box {
    position: sticky;
    top: 100px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

.bb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.bb-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.bb-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.btn-primary-lg {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.btn-primary-lg:hover {
    background: #06b6d4;
    transform: scale(1.02);
}

.btn-secondary-lg {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-secondary-lg:hover {
    color: #fff;
    border-color: #fff;
}

.bb-features {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bb-feat-item {
    display: flex;
    gap: 0.8rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.bb-feat-item i {
    width: 16px;
    color: var(--accent);
}

.bb-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.bb-badge-access {
    background: rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.green {
    background: #10b981;
}

.dot.gray {
    background: #64748b;
}

.bb-secure {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .dossier-grid {
        grid-template-columns: 1fr;
    }

    .buy-box {
        position: static;
        margin-top: 2rem;
    }

    .mh-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-search-box {
        width: 100%;
    }
}

/* =========================================
   MARKETPLACE HERO V7 (PREMIUM GLASS - MAGENTA ACCENT)
   ========================================= */

.hero-stage {
    position: relative;
    min-height: 350px;
    background: radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.6) 0%, rgba(2, 6, 23, 0.8) 80%);
    margin: 0 1rem 2rem 1rem;
    border-radius: 24px;
    /* Magenta/Purple Glow Interaction */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 60px -20px rgba(168, 85, 247, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 4rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Spotlight Effect (Purple) */
.hero-spotlight {
    position: absolute;
    top: -50%;
    left: 20%;
    width: 80%;
    height: 100%;
    /* Purple Light */
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* CONTENT LEFT */
.stage-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    padding-right: 2rem;
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;

    background: rgba(236, 72, 153, 0.1);
    /* Magenta 500 */
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 100px;
    color: #ec4899;

    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}

.stage-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    /* Clean White to subtle gray, no gold */
    background: linear-gradient(180deg, #FFFFFF 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stage-desc {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-wrap: balance;
}

/* ACTIONS */
.stage-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    /* Reduced margin */
}

.btn-stage-primary {
    background: #fff;
    color: #000;
    padding: 0.7rem 1.5rem;
    /* Compact button */
    border-radius: 8px;
    font-weight: 800;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.btn-stage-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background: #f8fafc;
}

.btn-stage-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-stage-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* STATS BAR (Glass) */
.stage-stats {
    display: flex;
    gap: 2rem;
    padding: 0.8rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.stat-item i {
    color: #64748b;
    width: 14px;
}

/* VISUAL RIGHT (Floating) */
.stage-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.floating-asset {
    width: 100%;
    max-width: 420px;
    /* Reduced from 550px */
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.asset-placeholder {
    width: 320px;
    /* Reduced from 400px */
    height: 240px;
    /* Reduced from 300px */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 8s ease-in-out infinite;
}

.asset-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shine 3s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@media (max-width: 1024px) {
    .hero-stage {
        flex-direction: column;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .stage-content {
        padding-right: 0;
        margin-bottom: 3rem;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .stage-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   MARKETPLACE FILTERS (PREMIUM GLASS)
   ========================================= */
.filter-bar {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    /* Align with grid */
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.08);
    /* More visible than 0.05 */
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: rgba(168, 85, 247, 0.2);
    /* Magenta/Purple Tint */
    border-color: #d946ef;
    /* Fuchsia 500 */
    color: #fff;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

/* =========================================
   MARKETPLACE CARDS V6 (PREMIUM GLASS - MAGENTA/PURPLE)
   ========================================= */

/* CONTAINER GRID ADJUSTMENT */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* RICH CARD BASE - PREMIUM GLASS */
.rich-card {
    background: var(--plan-bg-glass, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* Soft round */
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* REMOVED SCANLINES & INNER HIGHLIGHT FOR CLEAN LOOK */
.rich-card::before,
.rich-card::after {
    display: none;
}

.rich-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    /* Purple accent */
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(168, 85, 247, 0.1);
}

.rich-card:hover .rc-image {
    transform: scale(1.03);
}

/* HEADER / IMAGE */
.rc-header {
    height: 180px;
    /* Bit taller for premium feel */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 8, 0.8) 0%, transparent 60%);
}

/* BADGES */
.rc-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.rc-badge {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-main);
    /* INTER */
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    backdrop-filter: blur(8px);
}

.status-new {
    background: rgba(236, 72, 153, 0.2);
    /* Magenta tint */
    border-color: rgba(236, 72, 153, 0.4);
    color: #ec4899;
    /* Magenta */
}

/* BODY */
.rc-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.rc-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

.rc-rating {
    color: #fbbf24;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.rc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.rc-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TECH STACK */
.rc-stack {
    margin-top: auto;
    /* Push to bottom of body */
    display: flex;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* FOOTER */
.rc-footer {
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rc-price-tag {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.rc-price-tag.free {
    color: #4ade80;
}

/* TECH BUTTON -> PREMIUM BUTTON */
.rc-btn-view {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    /* Sentence case */
    border-radius: 8px;
    border: none;
    background: white;
    color: black;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.rc-btn-view:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    /* Remove old text shadow/border effects */
    text-shadow: none;
    border-bottom: none;
}

/* =========================================
   MARKETPLACE STREAM VIEW (TIKTOK STYLE)
   ========================================= */

/* GLOBAL SCROLL SNAP (For Home Feed) */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    /* Snap when close, but allow free scroll */
}

/* STREAM CONTAINER */
/* STREAM CONTAINER */
.market-stream {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* More breathing room between posts */
    height: auto;
    overflow: visible;
    padding: 2rem 0 100px 0;
    max-width: 850px;
    /* Social Feed Standard (Wide) */
    margin: 0 auto;
}

/* CONFIRMATION MODAL */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.cm-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.btn-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cm-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* RICH PRODUCT SUMMARY CARD */
.cm-product-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.cmp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cmp-badge {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.cmp-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 600;
}

.fill-yellow {
    fill: #fbbf24;
    width: 12px;
}

.cmp-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cmp-img-lg {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cmp-details {
    flex: 1;
}

.cmp-title-lg {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.cmp-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cmp-tags .tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmp-tags .tag i {
    width: 12px;
}

.cmp-includes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.inc-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.text-accent {
    color: var(--accent);
    width: 14px;
}

.cm-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cmp-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.cmp-price-row.crypto {
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: #facc15;
    /* Gold */
    font-weight: 600;
}

.val-usd {
    font-weight: 700;
    color: #fff;
}

.val-btc {
    font-family: var(--font-mono);
}

.cm-notice {
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.cm-notice i {
    color: var(--accent);
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cm-notice p {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.cm-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cancel {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-cancel:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-confirm-action {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.btn-confirm-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
    background: #06b6d4;
}

.btn-confirm-action:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* PREMIUM CHECKOUT STYLES */

.payment-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pb-status-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pb-status-header.pending {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.05), transparent);
    border-left: 4px solid #facc15;
}

.pb-status-header.verifying {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
    border-left: 4px solid #3b82f6;
}

.pb-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.amount-row,
.addr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 0.4rem;
}

.amount-val {
    font-size: 1.4rem;
    color: #fff;
    font-family: var(--font-mono);
}

.addr-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.pb-qr-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
}

.pb-qr-img {
    border-radius: 8px;
    border: 4px solid #fff;
}

.pb-qr-actions {
    flex: 1;
}

.btn-i-paid {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-i-paid:hover {
    background: #06b6d4;
    transform: translateY(-2px);
}

.pb-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* VERIFYING STATE */
.verifying-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.verifying-steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 300px;
    margin-bottom: 2rem;
}

.v-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.5;
}

.v-step.active {
    opacity: 1;
    color: #fff;
    font-weight: 600;
}

.v-step.done {
    opacity: 1;
    color: #22c55e;
}

.v-note {
    font-size: 0.8rem;
    color: gray;
    font-style: italic;
}

/* PROGRESS BAR UPGRADE */
.step-circle.pulse {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Hide Scrollbars */
.market-stream::-webkit-scrollbar {
    display: none;
}

/* STREAM CARD */
.stream-card {
    scroll-snap-align: center;
    /* Center it for better focus */
    scroll-margin-top: 2rem;

    /* Dimensions */
    aspect-ratio: 16/10;
    /* Cinematic / Web Standard */
    width: 100%;

    /* Visuals */
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    /* Slightly tighter radius */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    /* Soft shadow */

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* FRAME WRAPPER */
.stream-visual-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stream-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.stream-card:hover .stream-visual-frame img {
    transform: scale(1.02);
}

/* OVERLAY */
.stream-overlay {
    position: relative;
    z-index: 10;
    background: linear-gradient(to top,
            #020617 0%,
            rgba(2, 6, 23, 0.95) 25%,
            rgba(2, 6, 23, 0.6) 50%,
            transparent 100%);
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* HEADER (Badges) */
.stream-header {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
}

/* CONTENT LAYOUT */
.stream-content {
    width: 100%;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.stream-card:hover .stream-content {
    transform: translateY(0);
}

.stream-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    /* Softer shadow */
    letter-spacing: -0.01em;
}

.stream-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stream-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.stream-price.free {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
}

.stream-desc {
    font-size: 1rem;
    color: #94a3b8;
    /* Muted text */
    max-width: 90%;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ACTIONS */
.stream-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.stream-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    /* Softer */
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-btn.primary {
    background: #fff;
    color: #000;
    border: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stream-btn.primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

/* SCALED ELEMENTS FOR WIDE STREAM (Refined) */
.stream-header {
    top: 2rem !important;
    left: 2rem !important;
}

.stream-card .rc-badge {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px;
}

.stream-meta {
    font-size: 1rem !important;
    gap: 1rem !important;
    margin-bottom: 1.2rem !important;
}

.stream-price {
    padding: 4px 10px !important;
    font-size: 0.95rem !important;
}

.stream-btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
}

/* FLOATING ASSET (Product Image) */
.floating-asset {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stream-card:hover .floating-asset {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}


.stream-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stream-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* SOCIAL PROFILE HEADER (Redesign) */
.stream-header {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    padding: 2rem;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sh-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sh-profile:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: scale(1.02);
}

.sh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: contain;
    background: #000;
}

.sh-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.sh-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-name {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sh-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.sh-category {
    font-weight: 700;
    text-transform: uppercase;
}

.sh-sep {
    color: rgba(255, 255, 255, 0.2);
}

.sh-version {
    color: #94a3b8;
}

.sh-status-badge {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    letter-spacing: 1px;
}

/* HERO REDESIGN (Cyberpunk/Premium) */
.hero-wrapper {
    padding: 8rem 2rem 5rem 2rem !important;
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 5rem !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    text-transform: uppercase;
    letter-spacing: -3px !important;
    margin-bottom: 2rem !important;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.2));
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem !important;
    max-width: 650px;
    margin-bottom: 3.5rem !important;
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
}

.hero-search {
    width: 100%;
    max-width: 700px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 0.75rem !important;
    border-radius: 100px !important;
    /* Fully rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.hero-search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--accent);
    border-color: var(--accent) !important;
}

.hero-search i {
    color: var(--accent) !important;
    width: 24px !important;
    height: 24px !important;
    margin-left: 1rem !important;
}

.hero-search input {
    font-size: 1.1rem !important;
    padding-left: 1rem !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
}

/* HERO REDESIGN V3 (Split Terminal - Original) */
.hero-wrapper.split-hero {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    padding: 6rem 4rem !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    text-align: left !important;
    /* reset center */
    background: radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
}

.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    z-index: 10 !important;
}

.hero-brand-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
    letter-spacing: -1px !important;
    margin-bottom: 1.5rem !important;
    color: #fff;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    background: none !important;
    -webkit-text-fill-color: #fff !important;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    margin-bottom: 2.5rem !important;
    max-width: 500px;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* TERMINAL VISUAL */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.terminal-window {
    width: 100%;
    max-width: 550px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: floatTerm 6s ease-in-out infinite;
}

.terminal-window:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red {
    background: #ef4444;
}

.term-dot.yellow {
    background: #f59e0b;
}

.term-dot.green {
    background: #22c55e;
}

.term-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 300px;
    text-align: left !important;
}

.line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--accent);
    font-weight: 700;
}

.dim {
    color: #64748b;
    font-size: 0.8rem;
}

.success {
    color: #22c55e;
    font-weight: 700;
}

.file-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.file {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 0.5rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes floatTerm {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(-20px);
    }
}

/* INTERACTIVE TERMINAL LINKS */
.file-grid.interactive {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0 1.5rem 0;
}

.term-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.term-link:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateX(5px);
}

.term-link .Icon {
    font-size: 1.5rem;
}

.tl-info {
    display: flex;
    flex-direction: column;
}

.tl-name {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.tl-meta {
    color: #64748b;
    font-size: 0.75rem;
    font-family: var(--font-main);
}

.term-link:hover .tl-meta {
    color: var(--accent);
}

/* SEARCH OVERRIDE FOR SPLIT */
.hero-search {
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-search input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

.hero-search .btn-cta {
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-wrapper.split-hero {
        grid-template-columns: 1fr !important;
        padding: 4rem 2rem !important;
        text-align: center !important;
    }

    .hero-content {
        align-items: center !important;
    }

    .hero-visual {
        display: none !important;
    }

    /* Hide complicated visual on mobile */
    .hero-subtitle {
        text-align: center !important;
        margin: 0 auto 2rem auto !important;
    }
}

/* ORDER DETAIL SIDEBAR SUMMARY */
.od-summary-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.od-summary-box h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.od-item-mini {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.od-total-mini {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.support-mini-block {
    text-align: center;
    margin-bottom: 1rem;
}

.support-mini-block span {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.upsell-mini {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.upsell-mini strong {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
}

.upsell-mini p {
    font-size: 0.85rem;
    color: gray;
    margin-bottom: 1rem;
}

/* =========================================
   SIDEBAR USER PROFILE (PREMIUM REDESIGN)
   ========================================= */
.sidebar-auth-group {
    margin: 0 0.5rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- USER CARD --- */
.user-profile-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.user-profile-box::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: 0.3s;
}

.user-profile-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.user-profile-box:hover::before {
    opacity: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.5), 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.user-email {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.6rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-role::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 5px #22c55e;
}

/* LOGOUT BUTTON */
.btn-logout-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-logout-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.05);
}

/* --- GUEST STATE --- */
.guest-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.guest-title {
    font-size: 0.7rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    padding-left: 0.2rem;
    opacity: 0.7;
}

.btn-sidebar-auth {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-mono);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.btn-sa-primary {
    background: var(--accent);
    color: #0f172a;
    border: none;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
}

.btn-sa-primary:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.btn-sa-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.btn-sa-secondary:hover {
    border-color: var(--accent);
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

/* HIDE TOP BAR */
.main-topbar {
    display: none !important;
}

.layout-main {
    padding-top: 0 !important;
}

/* =========================================
   PASSWORD SECURITY UI
   ========================================= */
.auth-feedback {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.password-strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0.8rem 0 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.meter-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 10px currentColor;
}

.password-requirements {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.password-requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.8;
}

.req-title {
    font-size: 0.65rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.req-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.req-item {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.req-item.valid {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.req-check {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #64748b;
    transition: all 0.2s;
    position: relative;
}

.req-item.valid .req-check {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

/* GRADIENT TEXT MAGENTA/PURPLE */
.text-gradient-magenta {
    background: linear-gradient(to right, #d946ef, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
    font-weight: 800;
}

.auth-feedback {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: center;
    border-radius: 4px;
}

/* MARKET HERO (Compact) */
#market-hero {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
}

.stage-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stage-title {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
}

.stage-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 90%;
}

.stage-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.stage-visual .floating-asset {
    max-width: 350px;
    /* Limit size */
    max-height: 250px;
    object-fit: cover;
}

/* LIBRARY UI (Refined) */
.lib-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lib-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lib-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.lib-header {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lib-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.2);
}

.lib-info {
    flex: 1;
    min-width: 0;
}

.lib-title {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lib-version {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    display: inline-block;
}

.lib-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lib-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.lib-meta-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
}

.lib-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.lib-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.lib-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.lib-action {
    margin-top: auto;
}

.lib-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lib-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* =========================================
   MOBILE APP UI (RESPONSIVE)
   ========================================= */

/* Default: Hidden on Desktop */
.mobile-bottom-nav {
    display: none;
}

/* MOBILE RESPONSIVENESS START */
@media (max-width: 768px) {

    /* 1. LAYOUT RESET (1 Column) */
    .dossier-grid {
        grid-template-columns: 1fr;
    }

    .dossier-sidebar {
        order: 2;
        margin-top: 2rem;
    }

    .d-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dm-badges {
        flex-wrap: wrap;
    }

    .d-gallery-main {
        max-height: 250px;
    }

    .app-container {
        display: block;
        /* Stack everything */
        padding-bottom: 80px;
        /* Space for Bottom Nav */
        overflow-x: hidden;
        border: none;
        /* No borders on mobile */
    }

    /* Hide Sidebar & Rail */
    .layout-sidebar,
    .layout-rail {
        display: none !important;
    }

    /* Main Content Full Width */
    .layout-main {
        width: 100%;
        min-height: 100vh;
        grid-column: 1 / -1;
        /* Override grid placement */
    }

    /* 2. BOTTOM NAVIGATION BAR */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(15, 23, 42, 0.95);
        /* Deep Dark */
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
        /* iOS Safe Area */
    }

    .mb-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        width: 100%;
        height: 100%;
        transition: 0.2s;
    }

    .mb-icon {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

    .mb-label {
        font-size: 0.7rem;
        font-family: var(--font-main);
        font-weight: 500;
    }

    /* Active State */
    .mb-link.active {
        color: var(--accent);
    }

    .mb-link.active .mb-icon {
        stroke: var(--accent);
        fill: rgba(34, 211, 238, 0.1);
        /* Subtle fill */
    }

    /* 3. HERO ADJUSTMENTS */
    .hero-wrapper {
        padding: 5rem 1.5rem 2rem 1.5rem;
        /* Allow space for topbar */
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Smaller than 3.5rem */
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 2rem auto;
    }

    /* 4. MARKETPLACE GRID */
    .hero-stage {
        grid-template-columns: 1fr;
        /* Stack Hero */
        text-align: center;
        gap: 2rem;
    }

    .stage-visual {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 0;
    }

    .stage-visual .floating-asset {
        max-width: 80%;
        /* Smaller on mobile */
        height: auto;
    }

    /* 5. LIBRARY/STORE GRIDS */
    .store-grid,
    .lib-grid {
        grid-template-columns: 1fr;
        /* 1 Card per row */
        gap: 1rem;
        padding: 0 1rem 2rem 1rem;
    }

    /* 6. TOPBAR ADJUSTMENTS */
    .main-topbar {
        justify-content: center;
        /* Center pill */
        padding: 0 1rem;
        height: 60px;
        width: 100%;
    }

    .nav-pill {
        padding: 0.3rem 0.3rem 0.3rem 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .top-link {
        display: none;
        /* Hide links on mobile */
    }

    /* 7. AUTH BUTTONS MOBILE */
    .auth-mobile-container {
        display: flex;
        gap: 0.5rem;
    }
}