/* 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: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--rail-width);
    grid-template-rows: 1fr auto;
    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;
}

/* Special Marketplace Link */
#nav-marketplace {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent);
    border-left: 2px solid var(--accent);
    padding-left: calc(1rem - 2px);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#nav-marketplace:hover {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), transparent);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.05);
}

/* 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);
}

/* SERVICE CAPABILITIES (5 Pillars) */
.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

/* Center the last line if odd (for 5 items) - Optional, but grid handles it ok */
.caps-grid:has(.cap-card:nth-child(5)) {
    /* If we want centering logic, we can add it here, but default left-align is usually safer for responsive */
}

.cap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cap-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cap-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.cap-card h3 {
    font-size: 1.25rem;
    color: #f8fafc;
    font-weight: 700;
}

.cap-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Special Industry Cards */
.cap-card.special {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(217, 70, 239, 0.2);
    /* Fuchsia border */
}

.cap-card.special .cap-icon {
    background: rgba(217, 70, 239, 0.1);
    color: #d946ef;
    /* Fuchsia-500 */
}

.cap-card.special:hover {
    border-color: #d946ef;
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.15);
}

/* PROCESS TIMELINE (Redesign) */
.bg-process {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
}

/* Connector Line */
.timeline-line {
    position: absolute;
    top: 30px;
    /* Aligned with marker center */
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: lineFlow 3s infinite linear;
}

@keyframes lineFlow {
    0% {
        left: 0;
        width: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
        width: 30%;
    }

    80% {
        opacity: 1;
        width: 30%;
    }

    100% {
        left: 100%;
        width: 0;
        opacity: 0;
    }
}

/* Step Item */
.pt-step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    transition: transform 0.3s ease;
}

.pt-step:hover {
    transform: translateY(-5px);
}

/* Marker (Circle with Icon) */
.pt-marker {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 1);
    /* Spacing from line */
}

.pt-step:hover .pt-marker {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2), 0 0 0 4px #0f172a;
    background: rgba(34, 211, 238, 0.05);
}

.pt-num {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.pt-step:hover .pt-num {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.pt-icon {
    color: #94a3b8;
    transition: 0.3s;
}

.pt-step:hover .pt-icon {
    color: var(--accent);
    transform: scale(1.1);
}

/* Content */
.pt-content h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pt-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Responsive Process */
@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 29px;
        /* Center of marker (60/2 - 1) + padding */
        width: 2px;
        height: auto;
        right: auto;
    }

    .timeline-line::after {
        width: 100%;
        height: 30%;
        top: 0;
        animation: lineFlowVertical 3s infinite linear;
    }

    .pt-step {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 0;
        width: 100%;
    }

    .pt-marker {
        margin: 0 1.5rem 0 0;
        flex-shrink: 0;
    }
}

@keyframes lineFlowVertical {
    0% {
        top: 0;
        height: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
        height: 30%;
    }

    80% {
        opacity: 1;
        height: 30%;
    }

    100% {
        top: 100%;
        height: 0;
        opacity: 0;
    }
}

/* HERO BUTTONS */
.btn-hero-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    /* Violet to Pink/Magenta */
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.3);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.5);
    filter: brightness(1.1);
}

/* SERVICE MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.service-modal-content {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Modal Header */
.sm-header {
    background: linear-gradient(to right, rgba(15, 23, 42, 1), rgba(30, 41, 59, 1));
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sm-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-icon i {
    width: 32px;
    height: 32px;
}

.sm-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.sm-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Plans Grid */
.sm-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.plan-detail-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.plan-detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.5);
}

.plan-detail-card.elite {
    border-color: rgba(217, 70, 239, 0.5);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(88, 28, 135, 0.1) 100%);
    position: relative;
}

.plan-detail-card.elite::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: -10px;
    right: 1.5rem;
    background: #d946ef;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.pd-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.pd-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.plan-detail-card.elite .pd-price {
    color: #d946ef;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.chk-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.plan-detail-card.elite .chk-icon {
    color: #d946ef;
}

.btn-plan-select {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-plan-select:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.plan-detail-card.elite .btn-plan-select {
    background: rgba(217, 70, 239, 0.1);
    border-color: #d946ef;
    color: #d946ef;
}

.plan-detail-card.elite .btn-plan-select:hover {
    background: #d946ef;
    color: white;
}

.sm-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
}

.sm-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Restored Button Style */
.btn-hero-secondary {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* 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.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    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: 1400px;
    margin: 0 auto;
}

.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: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* -- 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: 1024px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-cards-row {
        grid-template-columns: 1fr;
        display: flex;
        /* Fallback to flex column */
        flex-direction: column;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .profile-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   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;
}

/* Embedded Price Badge in CTA */
.hero-btn-price-tag {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 0.9em;
    font-weight: 800;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.btn-stage-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    background: #fff;
}

.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;
    }
}

/* =========================================
   HERO PREMIUM NEW ELEMENTS
   ========================================= */

/* Short name shown instead of the full long title */
.hero-short-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

/* Subtitle: rest of the product name */
.hero-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

/* Horizontal stat pills row */
.hero-inline-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    backdrop-filter: blur(4px);
}

.hero-stat-pill--star {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.05);
}

/* Price tag */
.hero-price-tag {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #4ade80;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* Ensure actions align center vertically */
.stage-actions {
    align-items: center;
}

/* Mobile phone: compact hero card */
@media (max-width: 768px) {
    .hero-stage {
        flex-direction: column-reverse;
        padding: 1rem 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
        min-height: unset;
        gap: 0.75rem;
        border-radius: 16px;
    }

    .stage-visual {
        width: 100%;
        max-height: 140px;
        overflow: hidden;
        border-radius: 10px;
    }

    .floating-asset {
        width: 100%;
        max-width: 100%;
        max-height: 140px;
        object-fit: cover;
        border-radius: 10px;
        animation: none;
    }

    .stage-content {
        padding-right: 0;
        margin-bottom: 0;
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Short name override on mobile */
    .hero-short-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.4rem;
        text-align: left;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-inline-stats {
        margin-bottom: 1rem;
        justify-content: flex-start;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .hero-price-tag {
        margin-top: 0.5rem;
        font-size: 1.3rem;
        text-align: left;
        width: 100%;
    }

    .stage-badge {
        margin-bottom: 0.6rem;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .stage-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .btn-stage-primary,
    .btn-stage-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .stage-stats {
        gap: 0.75rem;
        padding: 0.6rem 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .stat-item {
        font-size: 0.7rem;
    }

    .hero-spotlight {
        display: none;
    }
}

/* =========================================
   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 {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/* Shimmer top border on hover */
.rich-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), rgba(217, 70, 239, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.rich-card::after {
    display: none;
}

.rich-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(160deg, rgba(168, 85, 247, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.12);
}

.rich-card:hover::before {
    opacity: 1;
}

.rich-card:hover .rc-image {
    transform: scale(1.05);
}

/* HEADER / IMAGE */
.rc-header {
    height: 210px;
    position: relative;
    overflow: hidden;
}

.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.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.rc-price-tag {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.rc-price-tag.free {
    color: #4ade80;
}

/* TECH BUTTON -> PREMIUM BUTTON */
.rc-btn-view {
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: #fff;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    white-space: nowrap;
}

.rc-btn-view:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 70, 239, 0.4);
}

/* =========================================
   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 — PREMIUM DARK */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

.confirm-modal {
    background: linear-gradient(165deg, #0c1222 0%, #0a0f1a 50%, #0d1117 100%);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(168, 85, 247, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 90%;
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Subtle top glow accent */
.confirm-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(34, 211, 238, 0.5), transparent);
}

.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.06);
    background: rgba(255, 255, 255, 0.015);
}

.cm-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cm-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* PRODUCT SUMMARY CARD — GLASS */
.cm-product-card {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.04) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Inner glow */
.cm-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cmp-badge {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.06));
    color: #22d3ee;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    text-transform: uppercase;
}

.cmp-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 700;
}

.fill-yellow {
    fill: #fbbf24;
    width: 12px;
}

.cmp-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cmp-img-lg {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cmp-details {
    flex: 1;
}

.cmp-title-lg {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.cmp-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cmp-tags .tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
}

.cmp-tags .tag i {
    width: 11px;
}

/* INCLUDES LIST — 2-COLUMN */
.cmp-includes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
}

.cmp-includes li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
}

.cmp-includes li i {
    color: #a78bfa;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* PRICING SECTION */
.cm-pricing {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cmp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.cmp-price-row.crypto {
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    color: #facc15;
    font-weight: 600;
}

.val-usd {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    font-family: var(--font-main);
}

.val-btc {
    font-family: var(--font-mono);
}

.cmp-btc-est {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.cmp-btc-est strong {
    color: #94a3b8;
}

/* SECURITY NOTICE */
.cm-notice {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(34, 211, 238, 0.02));
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cm-notice i {
    color: #22d3ee;
    width: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.cm-notice p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* FOOTER */
.cm-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-cancel:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-confirm-action {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    letter-spacing: 0.01em;
}

.btn-confirm-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #c084fc, #8b5cf6);
}

.btn-confirm-action:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.btn-confirm-action i {
    width: 16px;
    height: 16px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* MOBILE CHECKOUT */
@media (max-width: 480px) {
    .confirm-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .cmp-includes {
        grid-template-columns: 1fr;
    }

    .cm-footer {
        flex-direction: column;
    }

    .btn-confirm-action,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* 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 */
.auth-feedback {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
}

/* Scrollable Modal Base */
.modal-scrollable::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.modal-scrollable {
    scrollbar-width: none;
}

/* AUTH VIEW: Responsive Layout Layout */
.auth-hero-col {
    display: none !important;
}

.auth-mobile-logo {
    display: block !important;
}

@media (min-width: 992px) {
    .auth-hero-col {
        display: flex !important;
    }

    .auth-mobile-logo {
        display: none !important;
    }
}

/* MARKET HERO (Brutalist Premium) */
#market-hero {
    margin-bottom: 2rem;
    padding: 0;
}

.hero-stage-brutalist {
    padding: 2.5rem 2.5rem;
    background: linear-gradient(135deg, #0a0a12 0%, #0d0b14 50%, #09090b 100%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.06), 0 24px 48px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

/* Ambient glow orb top-left */
.hero-stage-brutalist::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Ambient glow orb bottom-right */
.hero-stage-brutalist::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hsb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.hsb-title {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0;
    color: #f8fafc;
    line-height: 1.1;
    max-width: 55%;
}

.hsb-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #d8b4fe;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.08);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.hsb-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

.hsb-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hsb-desc {
    font-size: 1.05rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

.hsb-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hsb-stat {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hsb-actions {
    margin-top: 0.5rem;
}

.hsb-cta {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: #fff;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    letter-spacing: 0.03em;
}

.hsb-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 70, 239, 0.45);
    filter: brightness(1.1);
}

.hsb-cta.disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.hsb-price {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.hsb-visual {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Image tuning for brutalist block */
.hsb-visual img.floating-asset {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-stage-brutalist:hover .hsb-visual img.floating-asset {
    transform: scale(1.02) translateY(-5px);
}

@media (max-width: 900px) {
    .hsb-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hsb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 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 */
    }

    /* Servicios — Integrated Accent Slot */
    .mb-link--services {
        color: #818cf8 !important;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.05) 100%);
        border-top: 2px solid #6366f1;
        margin-top: -2px;
        /* align with nav top border visually */
        border-radius: 0;
    }

    .mb-link--services .mb-icon {
        color: #818cf8;
        filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.65));
        stroke: #818cf8;
    }

    .mb-link--services .mb-label {
        color: #818cf8 !important;
        font-weight: 700;
    }

    .mb-link--services:active {
        background: rgba(99, 102, 241, 0.25);
    }

    /* 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;
    }

    /* 8. HERO FONT FIX (768px) */
    .hero-title,
    .hero-wrapper.split-hero .hero-title {
        font-size: 2rem !important;
        letter-spacing: 0px !important;
        line-height: 1.15 !important;
    }

    /* 9. MARKET GRID (768px) */
    .market-grid {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }

    /* 10. HERO WRAPPER (768px) */
    .hero-wrapper.split-hero {
        padding: 3rem 1.5rem 2rem 1.5rem !important;
        gap: 2rem !important;
    }
}

/* =========================================
   SMALL PHONES (max 480px)
   ========================================= */
@media (max-width: 480px) {

    /* Hero title: fluid and contained */
    .hero-title,
    .hero-wrapper.split-hero .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
        letter-spacing: -1px !important;
        line-height: 1.1 !important;
        word-break: break-word;
        /* Prevent overflow on long words */
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 1rem;
        /* Prevent text touching edges */
    }

    .hero-wrapper,
    .hero-wrapper.split-hero {
        padding: 7rem 1rem 2rem 1rem !important;
        /* Retain top padding for nav */
    }

    .hero-brand-tag {
        font-size: 0.75rem !important;
    }

    /* Market grid: 1 column, tighter padding */
    .market-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }

    /* Stories bar on small phones */
    .mobile-stories-bar {
        padding: 0.5rem 1rem !important;
        margin-top: 5rem;
        /* Push down below topbar */
    }

    /* Bottom nav */
    .mobile-bottom-nav {
        height: 65px !important;
        z-index: 9999 !important;
        /* Ensure on top */
    }

    .mb-label {
        font-size: 0.65rem !important;
    }

    /* CRITICAL: Prevent any horizontal overflow */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .app-container,
    .layout-main {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* =========================================
   TABLET (1024px) — Hero font reduction
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {

    .hero-title,
    .hero-wrapper.split-hero .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: -0.5px !important;
    }
}

/* =========================================
   MOBILE CARD FIXES (USER REQUEST)
   ========================================= */
@media (max-width: 768px) {

    /* FIX 1: STREAM CARDS (Home) - CLEAN & MINIMAL */
    .market-stream {
        gap: 2rem !important;
        padding: 1rem 0 120px 0 !important;
    }

    .stream-card {
        aspect-ratio: auto !important;
        min-height: 380px;
        border-radius: 16px !important;
        overflow: hidden;
    }

    /* HIDE CLUTTER: Avatar block, Tech Stack, Version, Rating */
    .stream-header,
    .rc-stack,
    .stream-meta .rc-version,
    .stream-meta .rc-rating {
        display: none !important;
    }

    .stream-overlay {
        padding: 1.2rem 1rem !important;
        justify-content: flex-end;
        background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.95) 40%, rgba(2, 6, 23, 0.3) 70%, transparent 100%);
    }

    .stream-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    }

    .stream-desc {
        display: none !important;
    }

    .stream-meta {
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .stream-actions {
        gap: 0.5rem !important;
    }

    .stream-btn {
        font-size: 0.85rem !important;
        padding: 0.65rem 1rem !important;
    }

    /* FIX 2: RICH CARDS (Marketplace Store) */
    .rich-card {
        min-height: auto !important;
    }

    .rc-header {
        height: 160px !important;
    }

    .rc-body {
        padding: 1rem !important;
    }

    .rc-title {
        font-size: 1.1rem !important;
    }

    .rc-meta-row {
        margin-bottom: 0.5rem !important;
    }

    /* FIX 3: GENERAL CONTAINER */
    .app-container {
        padding: 0 1rem 80px 1rem !important;
    }

    .market-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 1.5rem !important;
    }
}

/* =========================================
   AGENCY PIVOT STYLES (v50)
   ========================================= */

/* AGENCY HERO SECTION */
.agency-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.4)),
        var(--card-bg);
    /* Dark specialized bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    /* Space before solutions */
    gap: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Subtle glow behind */
.agency-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}

.ah-content {
    flex: 1;
    z-index: 1;
    max-width: 600px;
}

.ah-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.ah-title {
    font-size: 2.8rem;
    /* Big Impact */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ah-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 480px;
}

.ah-actions {
    display: flex;
    gap: 1rem;
}


/* CTA BUTTONS */
.btn-primary-lg {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary-lg {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

/* VISUAL SIDE (Code Window) */
.ah-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ah-code-window {
    background: #0f172a;
    /* Slate 900 */
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    /* 3D effect */
    transition: transform 0.3s ease;
}

.ah-code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.ah-cw-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #22c55e;
}

.ah-cw-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #e2e8f0;
}

/* Syntax Highlighting Mock */
.code-line {
    display: block;
}

.code-line.indent {
    padding-left: 1.5rem;
}

.c-k {
    color: #c084fc;
    font-weight: bold;
}

/* Keyword */
.c-v {
    color: #22d3ee;
}

/* Variable */
.c-f {
    color: #60a5fa;
}

/* Function */
.c-s {
    color: #a5f3fc;
}

/* String */
.c-c {
    color: #fbbf24;
}

/* Class */
.code-line.success {
    color: #4ade80;
    margin-top: 1rem;
    font-weight: bold;
}

/* SOLUTIONS GRID (TEASERS) */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.sol-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sol-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.sol-icon {
    width: 56px;
    height: 56px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.sol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.sol-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sol-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sol-card ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sol-card ul li i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.sol-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Specific Tier Styles */
.sol-card.packaged .sol-icon {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

.sol-card.vip .sol-icon {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
}

.sol-card.vip:hover {
    border-color: #f472b6;
    box-shadow: 0 10px 40px -10px rgba(244, 114, 182, 0.2);
}

/* MOBILE RESPONSIVE */
/* MOBILE RESPONSIVE OPTIMIZED (v52) */
@media (max-width: 900px) {
    .agency-hero {
        flex-direction: column;
        padding: 1.5rem;
        text-align: left;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .ah-content {
        max-width: 100%;
    }

    .ah-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .ah-subtitle {
        font-size: 0.9rem;
        margin: 0 0 1.25rem 0;
        max-width: 90%;
    }

    .ah-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .ah-visual {
        display: none;
    }

    /* HORIZONTAL SCROLL FOR SOLUTIONS */
    .solutions-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .solutions-grid::-webkit-scrollbar {
        display: none;
    }

    .sol-card {
        min-width: 260px;
        padding: 1.25rem;
        scroll-snap-align: start;
        margin-right: 0;
        background: rgba(30, 41, 59, 0.4);
    }

    .sol-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .sol-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .sol-card p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .sol-card ul {
        margin-bottom: 0.75rem;
    }

    .sol-card ul li {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .sol-link {
        font-size: 0.7rem;
    }
}

.stream-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0 1.5rem 0;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.stream-divider::before,
.stream-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #334155;
    opacity: 0.5;
}

.stream-divider span {
    padding: 0 1rem;
}

.products-grid-stream {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* SIDEBAR AGENCY BUTTON */
.sidebar-agency-btn {
    margin: 0.5rem 1rem 1rem 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(15, 23, 42, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.sidebar-agency-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.sab-icon {
    width: 28px;
    height: 28px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.sab-icon svg {
    width: 16px;
    height: 16px;
}

.sab-content {
    flex: 1;
}

.sab-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sab-subtitle {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
}

.sab-arrow {
    color: #64748b;
    opacity: 0.5;
}

/* SIDEBAR OPTION B: Grouped Compact */
.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-group .nav-link {
    position: relative;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav-group .nav-link.active {
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid #a78bfa;
    padding-left: calc(0.75rem - 3px);
}

.sidebar-nav-group .nav-link.active span {
    color: white;
    font-weight: 600;
}

.nav-sub-group {
    display: flex;
    flex-direction: column;
    margin-left: 1.25rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1px;
}

.nav-sub-group .nav-link.nav-sub {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    min-height: 0;
    height: auto;
}

.nav-sub-group .nav-link.nav-sub .nav-icon {
    width: 15px;
    height: 15px;
}

/* ==========================================================
   PREMIUM SERVICES PAGE (v1)
   ========================================================== */

.services-landing {
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- HERO ---------- */
.svc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.svc-hero-content {
    flex: 1;
    z-index: 1;
}

.svc-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.svc-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.svc-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.svc-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* HOLOGRAPHIC CUBE */
.svc-hero-visual {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    perspective: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.holo-cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}

.holo-cube .face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.04);
    backdrop-filter: blur(4px);
}

.holo-cube .front {
    transform: translateZ(60px);
}

.holo-cube .back {
    transform: translateZ(-60px) rotateY(180deg);
}

.holo-cube .right {
    transform: translateX(60px) rotateY(90deg);
}

.holo-cube .left {
    transform: translateX(-60px) rotateY(-90deg);
}

.holo-cube .top {
    transform: translateY(-60px) rotateX(90deg);
}

.holo-cube .bottom {
    transform: translateY(60px) rotateX(-90deg);
}

@keyframes rotateCube {
    from {
        transform: rotateX(10deg) rotateY(0deg);
    }

    to {
        transform: rotateX(10deg) rotateY(360deg);
    }
}

/* ---------- SECTION COMMON ---------- */
.svc-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.svc-section.bg-dim {
    margin: 0 -2rem;
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.5);
}

.sec-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sec-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.sec-desc {
    color: #94a3b8;
    font-size: 1rem;
}

/* ---------- CAPABILITIES GRID ---------- */
.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.cap-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.cap-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.2);
}

.cap-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #22d3ee;
}

.cap-icon svg {
    width: 22px;
    height: 22px;
}

.cap-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.cap-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---------- PROCESS STEPS ---------- */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.p-step {
    text-align: center;
    max-width: 200px;
    padding: 1.5rem;
}

.ps-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(139, 92, 246, 0.25);
    line-height: 1;
    margin-bottom: 1rem;
}

.p-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.p-step p {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ps-arrow {
    color: rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.ps-arrow svg {
    width: 28px;
    height: 28px;
}

/* ---------- TIER CARDS ---------- */
.svc-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-card.packaged:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 40px -15px rgba(34, 211, 238, 0.2);
}

.tier-card.vip {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(30, 41, 59, 0.4));
    border-color: rgba(139, 92, 246, 0.2);
}

.tier-card.vip:hover {
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.3);
}

.tier-header {
    margin-bottom: 2rem;
}

.tier-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.tier-label.vip {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.tier-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 1rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.tier-features li svg {
    width: 16px;
    height: 16px;
    color: #22d3ee;
    flex-shrink: 0;
}

.tier-card.vip .tier-features li svg {
    color: #a78bfa;
}

.btn-tier {
    width: 100%;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.btn-tier:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

.btn-tier.vip {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

.btn-tier.vip:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* ---------- SERVICES DIVIDER ---------- */
.services-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #475569;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.services-divider::before,
.services-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e293b;
}

.services-divider span {
    padding: 0 1rem;
}

/* ---------- CLIENT PORTAL EMPTY STATES ---------- */
.empty-state-auth {
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    color: #64748b;
}

.empty-state-auth p {
    margin-bottom: 1rem;
}

.empty-portal {
    text-align: center;
    padding: 2rem;
    color: #475569;
}

.empty-portal svg {
    width: 36px;
    height: 36px;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

/* ---------- MOBILE: SERVICES PAGE ---------- */
@media (max-width: 768px) {
    .svc-hero {
        flex-direction: column;
        padding: 3rem 0;
        gap: 2rem;
        text-align: left;
    }

    .svc-title {
        font-size: 2.4rem;
    }

    .svc-hero-visual {
        order: -1;
        width: 160px;
        height: 160px;
    }

    .holo-cube {
        width: 80px;
        height: 80px;
    }

    .holo-cube .face {
        width: 80px;
        height: 80px;
    }

    .holo-cube .front {
        transform: translateZ(40px);
    }

    .holo-cube .back {
        transform: translateZ(-40px) rotateY(180deg);
    }

    .holo-cube .right {
        transform: translateX(40px) rotateY(90deg);
    }

    .holo-cube .left {
        transform: translateX(-40px) rotateY(-90deg);
    }

    .holo-cube .top {
        transform: translateY(-40px) rotateX(90deg);
    }

    .holo-cube .bottom {
        transform: translateY(40px) rotateX(-90deg);
    }

    .caps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .svc-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .ps-arrow {
        transform: rotate(90deg);
    }

    .services-landing {
        padding: 1rem;
    }
}

/* =========================================
   SERVICES AUTHENTIC LAYOUT (V2)
   ========================================= */

.services-authentic-wrapper {
    padding: 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.8s ease-out;
}

.auth-hero {
    text-align: center;
    margin: 1rem 0 4rem 0;
    position: relative;
}

/* Aura Background Effect */
.auth-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.auth-title {
    font-size: 4.5rem;
    /* Reduced from 6rem */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: white;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Depth */
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    display: inline-block;
}

/* BENTO GRID */
.auth-bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 6rem;
    min-height: 600px;
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-row {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

/* CARDS */
.bento-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.7);
}

.bento-card.large {
    flex: 2;
    min-height: 380px;
}

.bento-card.medium {
    flex: 1.5;
    min-height: 280px;
}

.bento-card.wide {
    flex: 1;
    min-height: 220px;
}

.bento-card.small {
    flex: 1;
    aspect-ratio: 1/1;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

/* BACKGROUNDS & CONTENT */
.bc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    transition: opacity 0.5s ease;
    filter: grayscale(100%);
    z-index: 0;
}

.bento-card:hover .bc-bg {
    opacity: 0.2;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.saas-bg {
    background-image: linear-gradient(to bottom right, #3b82f6, #1d4ed8);
}

.ai-bg {
    background-image: linear-gradient(to bottom right, #8b5cf6, #5b21b6);
}

.cloud-bg {
    background-image: linear-gradient(to bottom right, #06b6d4, #0e7490);
}

.log-bg {
    background-image: linear-gradient(to bottom right, #f59e0b, #b45309);
}

.bc-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.bc-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

.bc-icon-sm {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    color: white;
    opacity: 0.7;
    transition: all 0.3s;
}

.bento-card:hover .bc-icon-sm {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

.bento-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    line-height: 0.95;
    margin-bottom: 0.5rem;
}

.bento-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    max-width: 90%;
}

.bento-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s;
    letter-spacing: -0.5px;
}

.bento-card:hover h3 {
    color: white;
}

/* PROCESS STRIP */
.auth-process-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    margin-bottom: 4rem;
}

.aps-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.aps-step:hover {
    opacity: 1;
}

.aps-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.aps-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
}

.aps-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 2rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .auth-title {
        font-size: 4rem;
    }

    .services-authentic-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-bento-grid {
        grid-template-columns: 1fr;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .auth-title {
        font-size: 3rem;
    }

    .bento-row {
        flex-direction: row;
    }

    .bento-card.small {
        height: 160px;
    }

    .aps-line {
        display: none;
    }

    .auth-process-strip {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* =========================================
   ACTION TAGS & SUBTITLES (V4 REDESIGN)
   ========================================= */

.bc-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

.bc-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.bc-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-glow);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* =========================================
   NEON MODAL SERVICES (V3)
   ========================================= */

.service-modal-content.neon-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px -20px var(--theme-color, #3b82f6);
    padding: 3rem;
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    position: relative;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.service-modal-content.neon-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-color);
    box-shadow: 0 0 40px var(--theme-color);
}

.sm-header.centered {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sm-icon-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    box-shadow: 0 0 50px -10px var(--theme-color);
}

.sm-icon-glow svg {
    width: 40px;
    height: 40px;
}

.sm-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.sm-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.sm-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-detail-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Elite card highlight */
.plan-detail-card.elite {
    border-color: var(--theme-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.plan-detail-card.elite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--theme-color) 300%);
    opacity: 0.1;
    pointer-events: none;
}

.pd-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pd-price {
    font-family: var(--font-mono);
    color: var(--theme-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.chk-icon {
    width: 20px;
    height: 20px;
    color: var(--theme-color);
    flex-shrink: 0;
}

.btn-plan-select {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-plan-select:hover {
    background: var(--theme-color);
    color: #0f172a;
    box-shadow: 0 0 30px var(--theme-color);
    transform: translateY(-2px);
}

.plan-detail-card.elite .btn-plan-select {
    background: var(--theme-color);
    color: #0f172a;
}

.plan-detail-card.elite .btn-plan-select:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 40px var(--theme-color);
}

/* =========================================
   NEON MODAL SERVICES (V3)
   ========================================= */

.service-modal-content.neon-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px -20px var(--theme-color, #3b82f6);
    padding: 3rem;
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    position: relative;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.service-modal-content.neon-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-color);
    box-shadow: 0 0 40px var(--theme-color);
}

.sm-header.centered {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sm-icon-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    box-shadow: 0 0 50px -10px var(--theme-color);
}

.sm-icon-glow svg {
    width: 40px;
    height: 40px;
}

.sm-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.sm-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.sm-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-detail-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Elite card highlight */
.plan-detail-card.elite {
    border-color: var(--theme-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.plan-detail-card.elite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--theme-color) 300%);
    opacity: 0.1;
    pointer-events: none;
}

.pd-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pd-price {
    font-family: var(--font-mono);
    color: var(--theme-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.chk-icon {
    width: 20px;
    height: 20px;
    color: var(--theme-color);
    flex-shrink: 0;
}

.btn-plan-select {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-plan-select:hover {
    background: var(--theme-color);
    color: #0f172a;
    box-shadow: 0 0 30px var(--theme-color);
    transform: translateY(-2px);
}

.plan-detail-card.elite .btn-plan-select {
    background: var(--theme-color);
    color: #0f172a;
}

.plan-detail-card.elite .btn-plan-select:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 40px var(--theme-color);
}

/* =========================================
   NEON MODAL SERVICES (V3)
   ========================================= */

.service-modal-content.neon-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px -20px var(--theme-color, #3b82f6);
    padding: 3rem;
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    position: relative;
    overflow: hidden;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.service-modal-content.neon-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-color);
    box-shadow: 0 0 40px var(--theme-color);
}

.sm-header.centered {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sm-icon-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    box-shadow: 0 0 50px -10px var(--theme-color);
}

.sm-icon-glow svg {
    width: 40px;
    height: 40px;
}

.sm-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.sm-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.sm-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-detail-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Elite card highlight */
.plan-detail-card.elite {
    border-color: var(--theme-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.plan-detail-card.elite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--theme-color) 300%);
    opacity: 0.1;
    pointer-events: none;
}

.pd-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pd-price {
    font-family: var(--font-mono);
    color: var(--theme-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.chk-icon {
    width: 20px;
    height: 20px;
    color: var(--theme-color);
    flex-shrink: 0;
}

.btn-plan-select {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-plan-select:hover {
    background: var(--theme-color);
    color: #0f172a;
    box-shadow: 0 0 30px var(--theme-color);
    transform: translateY(-2px);
}

.plan-detail-card.elite .btn-plan-select {
    background: var(--theme-color);
    color: #0f172a;
}

.plan-detail-card.elite .btn-plan-select:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 40px var(--theme-color);
}

/* =========================================
   TRIDENT LAYOUT (RADICAL SIMPLIFICATION V5)
   ========================================= */

.trident-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    margin-top: 3rem;
}

.trident-card {
    flex: 1;
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    backdrop-filter: blur(10px);
}

.trident-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* THEME COLORS */
.trident-card.t-purple {
    --tc-color: #a855f7;
}

.trident-card.t-blue {
    --tc-color: #3b82f6;
}

.trident-card.t-emerald {
    --tc-color: #10b981;
}

.trident-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tc-color), transparent);
    opacity: 0.5;
}

/* GLOW EFFECTS */
.tc-bg-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--tc-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
    transition: opacity 0.4s ease;
}

.trident-card:hover .tc-bg-glow {
    opacity: 0.25;
}

.tc-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ICON */
.tc-icon-glow {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--tc-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.tc-icon-glow i {
    width: 32px;
    height: 32px;
}

/* TYPOGRAPHY */
.trident-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tc-hook {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tc-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: auto;
    /* Pushes CTA down */
}

/* CTA BUTTON */
.tc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tc-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.trident-card:hover .tc-cta {
    gap: 0.8rem;
    text-shadow: 0 0 10px var(--tc-color);
}

/* SECONDARY DESKTOP & MOBILE */
.trident-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.trident-secondary a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.trident-secondary a span {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.trident-secondary a:hover span {
    border-bottom-color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .trident-grid {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .trident-card {
        min-height: auto;
        padding: 2rem;
    }

    .tc-icon-glow {
        margin-bottom: 1.5rem;
    }

    .trident-secondary {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .ts-divider {
        display: none;
    }
}

/* =========================================
   MISSION SELECTOR (V6 — GOAL-FIRST UX)
   =========================================*/
/* =========================================
   PREMIUM MISSION SELECTOR (FEB 2026)
   ========================================= */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.transformation-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 2px solid color-mix(in srgb, var(--card-color) 35%, transparent);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        background 0.35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tc-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--card-color), transparent 65%);
    opacity: 0.04;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.transformation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45),
        0 4px 16px -2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: color-mix(in srgb, var(--card-color) 60%, transparent);
    background: rgba(255, 255, 255, 0.04);
}

.transformation-card:hover .tc-glow-bg {
    opacity: 0.1;
}

.transformation-card.active {
    border-color: color-mix(in srgb, var(--card-color) 25%, transparent);
    border-top-color: var(--card-color);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4),
        0 0 24px -4px color-mix(in srgb, var(--card-color) 15%, transparent);
    background: rgba(255, 255, 255, 0.04);
}

.transformation-card.active .tc-glow-bg {
    opacity: 0.08;
}

/* tc-content already defined above for trident layout — this scope is fine */

.tc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-color) 10%, transparent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease,
        box-shadow 0.35s ease;
    box-shadow: 0 0 16px color-mix(in srgb, var(--card-color) 8%, transparent);
}

.tc-icon-wrap i {
    width: 22px;
    height: 22px;
    color: var(--card-color);
    transition: transform 0.35s ease;
}

.transformation-card:hover .tc-icon-wrap {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--card-color) 15%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--card-color) 15%, transparent);
}

.tc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
    color: var(--card-color);
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.transformation-card:hover .tc-footer {
    opacity: 1;
}

.tc-footer i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.transformation-card:hover .tc-footer i {
    transform: translateX(4px);
}

/* ANIMATED GRADIENT TEXT */
.animated-gradient-text {
    background: linear-gradient(90deg, var(--card-color) 0%, #fff 50%, var(--card-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s linear infinite;
}

/* =========================================
   NETFLIX CAROUSEL — Horizontal Slider
   ========================================= */

.carousel-wrapper {
    position: relative;
    z-index: 1;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .transformation-card {
    flex: 0 0 calc(33.333% - 0.85rem);
    min-width: 260px;
    max-width: 340px;
    scroll-snap-align: start;
    min-height: 200px;
}

/* Edge fade — disabled, natural overflow looks cleaner */
/*
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark, #0a0f1a), transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark, #0a0f1a), transparent);
}
*/

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav.prev {
    left: -6px;
}

.carousel-nav.next {
    right: -6px;
}

.carousel-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Dot Indicators */
.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    width: 24px;
    border-radius: 100px;
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

.mission-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.mission-hero {
    text-align: center;
    padding: 0.5rem 0 0.75rem;
}

.mission-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.mission-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.mission-highlight {
    background: linear-gradient(135deg, #a855f7, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-sub {
    color: #64748b;
    font-size: 1rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}



/* REVEAL PANEL */
.goal-reveal-panel {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    animation: revealSlide 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.goal-reveal-panel.hidden {
    display: none;
}

@keyframes revealSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grp-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--reveal-color, #a855f7);
}

.grp-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0.4rem 0 0.3rem;
}

.grp-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.grp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.grp-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grp-card:hover {
    border-color: var(--reveal-color, #a855f7);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.grp-card--elite {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.04);
}

.grp-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.grp-card-header h4 {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 1rem;
}

.grp-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--reveal-color, #a855f7);
    font-family: var(--font-mono, monospace);
}

.grp-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.grp-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

.grp-features i {
    width: 14px;
    height: 14px;
    color: var(--reveal-color, #a855f7);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.grp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--reveal-color, #a855f7);
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 0.7rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.grp-cta:hover {
    background: var(--reveal-color, #a855f7);
    color: #0f172a;
    border-color: transparent;
}

/* CUSTOM QUOTE */
.mission-custom-cta {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.05);
}

.mission-custom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    opacity: 0.8;
}

/* =========================================
   MISSION CONSOLE SIDE PANEL (V3)
   ========================================= */

.mission-console-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    /* Slightly darker for full modal */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mission-console-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mission-console-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    max-height: 850px;
    background: rgba(9, 14, 23, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transform: translate(-50%, -45%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.mission-console-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}


.mc-header {
    padding: 2rem 2rem 1.5rem 2rem;
    background: rgba(9, 14, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
}

.mc-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mc-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.mc-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Two-column layout for the console body (desktop only) */
.mc-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Mini stats row (Price / Requirements) */
.mc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Mobile: stack everything to one column */
@media (max-width: 768px) {
    .mc-body-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .mc-stats-grid {
        grid-template-columns: 1fr;
    }

    .mission-console-panel {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none !important;
        right: 0;
        bottom: 0;
    }

    .mission-console-panel.active {
        transform: none !important;
    }

    .mc-header {
        padding: 1rem 1rem 0.75rem;
    }

    .mc-body,
    .mc-body-grid {
        padding: 1rem;
        gap: 1rem;
    }
}

.mc-promise {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid var(--reveal-color, #a855f7);
}

.mc-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
    display: block;
}

.mc-results-list,
.mc-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mc-results-list li,
.mc-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.mc-results-list i {
    color: #10b981;
    margin-top: 0.1rem;
}

.mc-req-list i {
    color: #f59e0b;
    margin-top: 0.1rem;
}

.mc-plans-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mc-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mc-plan-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--reveal-color, #a855f7);
}

.mc-cta-primary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--reveal-color, #a855f7);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mc-cta-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mc-cta-secondary {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 100px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.mc-cta-secondary:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.mission-custom-cta p {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
}

.btn-custom-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-custom-quote:hover {
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 640px) {
    .goal-grid {
        grid-template-columns: 1fr;
    }

    .mission-title {
        font-size: 2.2rem;
    }

    .grp-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PROJECT WORKSPACE & ONBOARDING (FASE 5)
   ========================================= */

.workspace-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.ws-header {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ws-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.ws-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
}

.ws-title-block {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ws-title-block h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ws-badge {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(34, 211, 238, 0.2);
    white-space: nowrap;
}

/* Progress Bar */
/* ==========================================
   VERTICAL TIMELINE
   ========================================== */
.ws-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 180px;
    max-width: 200px;
    flex-shrink: 0;
}

.ws-tl-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    padding-bottom: 16px;
}

/* Connecting line between nodes */
.ws-tl-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.3s;
}

/* Active steps get a brighter line */
.ws-tl-step.active:not(:last-child)::after {
    background: rgba(168, 85, 247, 0.3);
}

.ws-tl-step:last-child {
    padding-bottom: 0;
}

/* Node circle */
.ws-tl-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #475569;
    transition: all 0.3s;
}

/* Content */
.ws-tl-content {
    display: flex;
    flex-direction: column;
    padding-top: 3px;
    gap: 1px;
}

.ws-tl-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    transition: color 0.3s;
}

.ws-tl-desc {
    font-size: 0.65rem;
    color: #334155;
    font-weight: 400;
    transition: color 0.3s;
}

/* === PENDING state (default dim) === */
.ws-tl-step.pending .ws-tl-node {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
    color: #334155;
}

.ws-tl-step.pending .ws-tl-label {
    color: #334155;
}

/* === ACTIVE (completed) state === */
.ws-tl-step.active .ws-tl-node {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.ws-tl-step.active .ws-tl-label {
    color: #e2e8f0;
}

.ws-tl-step.active .ws-tl-desc {
    color: #64748b;
}

/* === CURRENT step pulse === */
.ws-tl-step.current .ws-tl-node {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.5);
    color: #c084fc;
    animation: tlPulse 2.5s ease-in-out infinite;
}

@keyframes tlPulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(168, 85, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
    }
}

.ws-tl-step.current .ws-tl-label {
    color: #d8b4fe;
}

/* States */
.ws-hero-card {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.05), transparent);
    border: 1px solid var(--accent-dim);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ws-hero-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

/* Tabs */
.ws-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0px;
    flex-wrap: wrap;
    /* Allows tabs to wrap on mobile */
}

/* Fallbacks for mobile devices: allow horizontal scrolling if wrapping takes too much height */
@media (max-width: 768px) {
    .workspace-layout {
        padding: 1rem;
    }

    .ws-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ws-title-block {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    /* Timeline goes horizontal on mobile */
    .ws-timeline {
        flex-direction: row;
        max-width: 100%;
        min-width: 0;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .ws-tl-step {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
        min-width: 56px;
        flex-shrink: 0;
    }

    /* Hide connecting lines on mobile (they're vertical) */
    .ws-tl-step:not(:last-child)::after {
        display: none;
    }

    .ws-tl-content {
        align-items: center;
        text-align: center;
    }

    .ws-tl-desc {
        display: none;
    }

    .ws-tl-label {
        font-size: 0.65rem;
    }

    /* Linked product card — prevent overflow */
    #ws-linked-product-banner div {
        overflow: hidden;
    }

    .ws-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        /* space for scrollbar */
    }

    .ws-tab {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

.ws-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ws-tab:hover {
    color: var(--text-main);
}

.ws-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.ws-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

/* Wizard */
.wizard-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.wizard-progress-track {
    height: 4px;
    background: var(--border);
    width: 100%;
}

.wizard-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 20%;
    transition: width 0.3s ease;
}

/* === DARK MODE: Wizard & Global Custom Inputs === */
.custom-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.custom-input::placeholder {
    color: #64748b;
}

.custom-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.custom-input.full-width,
textarea.custom-input,
select.custom-input {
    width: 100%;
    display: block;
}

select.custom-input option {
    background: #0f172a;
    color: #e2e8f0;
}

textarea.custom-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Wizard modal inner card polish */
.wizard-card {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
}

.ws-checklist-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-checklist-li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ws-checklist-li.done {
    opacity: 0.5;
}

.ws-checklist-li.done i {
    color: #10b981;
}

.ws-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ws-file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.ws-file-item:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
}

.ws-unread-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    /* Red notification color */
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: bounceBadge 2s infinite ease-in-out;
}

@keyframes bounceBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ============================================
   WORKSPACE LOCK OVERLAY (PENDING_ONBOARDING)
   ============================================ */
.ws-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(10, 12, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    min-height: 520px;
}

.ws-lock-card {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: lockCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lockCardIn {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ws-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.ws-lock-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.ws-lock-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ws-lock-cta {
    font-size: 1.1rem !important;
    padding: 0.85rem 2.2rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ws-lock-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Checklist item assignee badge */
.ws-checklist-assigned {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-checklist-assigned.client {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.ws-checklist-assigned.team {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Delivery approval CTA */
.ws-delivery-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ws-delivery-banner .banner-text h4 {
    font-size: 1.1rem;
    color: #10b981;
    margin-bottom: 0.3rem;
}

.ws-delivery-banner .banner-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- DYNAMIC SCROLL ANIMATIONS --- */
/* Safety fallback: if JS observer never fires, content auto-reveals after 2s */
@keyframes reveal-fallback {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    /* Auto-reveal after 2s as a hard fallback */
    animation: reveal-fallback 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

.reveal-up.active {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
    animation: none !important;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* =========================================
   PORTAL SPLIT LAYOUT (Propuesta 2)
   ========================================= */

/* FULL SCREEN OVERRIDES */
body.is-home-portal {
    background: #000;
}

body.is-home-portal .layout-sidebar {
    display: none !important;
}

body.is-home-portal .mobile-bottom-nav {
    display: none !important;
}

body.is-home-portal .layout-main {
    margin-left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
}

body.is-home-portal .app-container {
    padding: 0 !important;
    max-width: none !important;
}

.portal-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    /* Ensure the container is perfectly centered if there are any rogue margins */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}

/* Global Header inside Portal */
.portal-global-header {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: 320px;
}

.portal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.portal-brand-name {
    font-family: var(--font-neo), sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
}

.portal-tagline-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.portal-tagline-main {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

.portal-tagline-sub {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.portal-tagline-sub em {
    font-style: normal;
    color: #a78bfa;
    font-weight: 600;
}

.portal-cta-hint {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #475569;
    margin-top: 0.15rem;
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.portal-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s, filter 0.6s;
    height: 100%;
}

.portal-content {
    width: 100%;
    max-width: 380px;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-left {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.03) 0%, #050505 80%);
}

.portal-right {
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.03) 0%, #050505 80%);
}

/* Central neon divider line */
.portal-container::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(139, 92, 246, 0.4) 30%, rgba(139, 92, 246, 0.6) 50%, rgba(139, 92, 246, 0.4) 70%, transparent 100%);
    z-index: 60;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.portal-container:has(.portal-left:hover)::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(6, 182, 212, 0.5) 30%, rgba(6, 182, 212, 0.8) 50%, rgba(6, 182, 212, 0.5) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.portal-container:has(.portal-right:hover)::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(236, 72, 153, 0.5) 30%, rgba(236, 72, 153, 0.8) 50%, rgba(236, 72, 153, 0.5) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

/* Hover Dynamics */
.portal-container:has(.portal-left:hover) .portal-left {
    flex: 1.15;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.12) 0%, #050505 80%);
}

.portal-container:has(.portal-left:hover) .portal-right {
    flex: 0.85;
    filter: brightness(0.3) grayscale(0.8);
}

.portal-container:has(.portal-right:hover) .portal-right {
    flex: 1.15;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.12) 0%, #050505 80%);
}

.portal-container:has(.portal-right:hover) .portal-left {
    flex: 0.85;
    filter: brightness(0.3) grayscale(0.8);
}

.portal-kicker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.kicker-cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.kicker-magenta {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.portal-side:hover .kicker-cyan {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.portal-side:hover .kicker-magenta {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}

.portal-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.portal-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.btn-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-magenta {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.portal-side:hover .btn-cyan {
    background: #06b6d4;
    color: #000;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.portal-side:hover .btn-magenta {
    background: #ec4899;
    color: #fff;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
}

/* Visuals (Mockups / Checklists) */
.portal-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0.4;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-side:hover .portal-visual {
    opacity: 1;
    transform: translateY(0);
}

.mockup-card,
.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #f1f5f9;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: transform 0.4s;
}

.mockup-card i {
    color: #06b6d4;
}

.checklist-item i {
    color: #ec4899;
}

.portal-side:hover .mockup-card.m-1,
.portal-side:hover .checklist-item.ch-1 {
    transform: translateX(10px);
    transition-delay: 0.1s;
}

.portal-side:hover .mockup-card.m-2,
.portal-side:hover .checklist-item.ch-2 {
    transform: translateX(20px);
    transition-delay: 0.2s;
}

.portal-side:hover .mockup-card.m-3,
.portal-side:hover .checklist-item.ch-3 {
    transform: translateX(30px);
    transition-delay: 0.3s;
}

.portal-side:hover .checklist-item.ch-4 {
    transform: translateX(40px);
    transition-delay: 0.4s;
}

/* Responsive Mobile Portal */
@media (max-width: 992px) {
    .portal-container {
        flex-direction: column;
        position: static;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        background: #050508;
    }

    /* Hide the neon divider on mobile */
    .portal-container::after {
        display: none;
    }

    /* Header: centered, warm, breathing room */
    .portal-global-header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 2.5rem 1.5rem 1.5rem;
        margin: 0;
        gap: 0.5rem;
    }

    .portal-logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .portal-logo img {
        height: 48px !important;
    }

    .portal-brand-name {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .portal-tagline-box {
        padding: 0.4rem 0.8rem;
    }

    .portal-tagline-main {
        font-size: 0.55rem;
    }

    .portal-tagline-sub {
        font-size: 0.65rem;
    }

    .portal-cta-hint {
        font-size: 0.55rem;
        margin-top: 0.25rem;
    }

    /* Each side: full width, generous spacing, subtle color bg */
    .portal-side {
        padding: 2rem 1.5rem 2.5rem;
        height: auto;
        flex: none !important;
        filter: none !important;
        border-right: none;
    }

    .portal-left {
        background: linear-gradient(180deg, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
        border-bottom: none;
        position: relative;
    }

    /* Decorative separator between sections on mobile */
    .portal-left::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    }

    .portal-right {
        background: linear-gradient(180deg, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
    }

    .portal-content {
        max-width: 100%;
    }

    .portal-kicker {
        font-size: 0.6rem;
        margin-bottom: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .portal-title {
        font-size: 2rem;
        margin-bottom: 0.65rem;
    }

    .portal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.55;
        color: #a1adc0;
    }

    .portal-visual {
        opacity: 1;
        transform: none;
        gap: 0.65rem;
    }

    .mockup-card,
    .checklist-item {
        padding: 0.85rem 1.1rem;
        font-size: 0.85rem;
        gap: 0.75rem;
        border-radius: 12px;
    }

    .mockup-card {
        border-color: rgba(6, 182, 212, 0.12);
    }

    .checklist-item {
        border-color: rgba(236, 72, 153, 0.12);
    }

    .portal-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.88rem;
        margin-top: 1.25rem;
        width: 100%;
        justify-content: center;
    }

    /* Disable hover slide animations on mobile */
    .portal-side:hover .mockup-card,
    .portal-side:hover .checklist-item {
        transform: none !important;
    }
}

/* ==========================================
   PREMIUM LOADING STATES
   ========================================== */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.loader::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 2px solid rgba(34, 211, 238, 0.1);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.loader-sm::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(34, 211, 238, 0.1);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
    flex-shrink: 0;
}