/* ==========================================================================
   PROJECT DETAIL PAGE SPECIFIC STYLES & CYBER COMMAND CENTER HERO
   ========================================================================== */

.project-detail-hero {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

/* Hero Command Center Wrapper Frame */
.hero-command-center {
    background: rgba(8, 11, 18, 0.85);
    border: 1px solid rgba(0, 255, 102, 0.18);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 102, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: var(--bg-surface);
    position: relative;
}

.command-center-header {
    background: rgba(14, 18, 26, 0.95);
    padding: 0.8rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.command-center-title {
    color: var(--text-bright);
    font-weight: 700;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
}

.command-center-status {
    color: var(--neon-green);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.06em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.command-center-body {
    padding: 2.2rem 2.2rem 2.5rem 2.2rem;
}

.detail-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem 0.8rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    margin-bottom: 1.8rem;
    width: 100%;
    min-width: 0;
}

.back-link {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    white-space: normal;
    word-break: break-word;
}

.back-link:hover {
    color: var(--text-bright);
    transform: translateX(-4px);
}

.breadcrumb-sep { color: var(--text-muted); flex-shrink: 0; }
.breadcrumb-current { 
    color: var(--text-bright); 
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ascii-hero-title {
    font-size: clamp(0.24rem, 2.35vw, 0.65rem);
    line-height: 1.15;
    margin: 0.5rem 0 1rem 0;
    font-weight: bold;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    letter-spacing: 0;
    white-space: pre;
    text-shadow: 0 0 10px rgba(57,255,20,0.5);
}

.ascii-hero-title::-webkit-scrollbar {
    display: none;
}

.detail-header-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.detail-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    width: 100%;
    min-width: 0;
}

.detail-main-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.detail-badges {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.glow-badge {
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.22);
    border: 1px solid rgba(0, 255, 102, 0.4);
    background: rgba(0, 255, 102, 0.08);
    color: var(--neon-green);
}

.category-pill {
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.16), inset 0 0 8px rgba(0, 240, 255, 0.05);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.category-pill:hover {
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.32);
    transform: translateY(-1px);
}

.hero-gradient-title {
    font-size: 3.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 40%, #00ff66 75%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 22px rgba(0, 255, 102, 0.25));
}

.hero-gradient-subtitle {
    font-size: 1.18rem;
    color: var(--text-bright);
    margin-bottom: 1.8rem;
    line-height: 1.55;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Hero Executive KPI Dashboard Bar */
.hero-kpi-bar-wrapper {
    margin-bottom: 1.8rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.hero-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-kpi-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(0, 255, 102, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero-kpi-card.border-green { border-left: 3px solid var(--neon-green); }
.hero-kpi-card.border-cyan { border-left: 3px solid var(--neon-cyan); }
.hero-kpi-card.border-pink { border-left: 3px solid var(--neon-pink); }

.kpi-icon-wrap {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.kpi-number {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.kpi-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.35;
}

/* Lead Quote & Overview Cards */
.detail-combined-desc {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.hero-lead-quote {
    position: relative;
    padding: 1.1rem 1.4rem 1.1rem 2.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.05), rgba(0, 240, 255, 0.02));
    border: 1px solid rgba(0, 255, 102, 0.18);
    border-left: 4px solid var(--neon-green);
    border-radius: 8px;
}

.hero-lead-quote .quote-icon {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    font-size: 1.15rem;
    color: var(--neon-green);
    opacity: 0.7;
}

.detail-short-desc {
    font-size: 1.08rem !important;
    line-height: 1.7 !important;
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.hero-overview-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-overview-card {
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s ease;
}

.hero-overview-card:hover {
    border-color: rgba(0, 255, 102, 0.2);
}

.overview-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.overview-card-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-readable);
    margin: 0;
}

/* Right Logo Command Window */
.hero-logo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 102, 0.22) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 255, 102, 0.08) !important;
    max-width: 340px;
    width: 100%;
}

.hero-logo-body {
    padding: 0;
    background: #04060a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.logo-grid-bg {
    display: none;
}

.logo-radial-glow {
    display: none;
}

.logo-scanline {
    display: none;
}

@keyframes scanSweep {
    0% { top: -40%; }
    100% { top: 120%; }
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    filter: none;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-img[src*="mc_bot_logo"] {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-logo-card:hover .hero-logo-img {
    transform: scale(1.06);
}

.logo-hud-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.8rem;
    font-size: 0.68rem;
    color: var(--neon-green);
    background: rgba(0, 0, 0, 0.75);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 102, 0.3);
    z-index: 3;
    letter-spacing: 0.05em;
}

.logo-status-badge {
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 0.05em;
}

/* Action Buttons Sidebar */
.detail-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
}

.btn-hero-action-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 1.4rem;
    background-color: var(--neon-green);
    color: #000000;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.2);
    box-sizing: border-box;
    line-height: 1;
}

.btn-hero-action-green:hover {
    background-color: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
    border-color: var(--neon-green);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.closed-source-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 0.74rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.tech-stack-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    margin-bottom: -0.4rem;
    width: 100%;
    max-width: 340px;
    text-align: left;
}

.hero-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 340px;
    justify-content: flex-start;
}

/* Responsive adaptions for Command Center */
@media (max-width: 1024px) {
    .command-center-body {
        padding: 1.5rem;
    }
    .detail-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-overview-cards {
        grid-template-columns: 1fr;
    }
    .hero-logo-card, .detail-action-buttons, .hero-tech-grid, .tech-stack-panel-title {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .detail-main-info > .text-xs {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-gradient-title {
        font-size: 2.2rem;
    }
    .hero-kpi-grid {
        grid-template-columns: 1fr;
    }
    .overview-lead-text,
    .overview-body-text {
        padding-left: 0.5rem !important;
    }
    .hero-logo-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .responsive-browser-mockup {
        height: 380px !important;
    }
    .ascii-hero-title {
        font-size: clamp(0.19rem, 2.1vw, 0.46rem) !important;
    }
    .detail-overview-stream {
        font-size: 0.88rem !important;
    }
}

.detail-metrics-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--neon-green);
}

.detail-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    padding: 2rem;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
}

/* SCOPED SELECTOR for duplicate .stat-label */
.detail-stat .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.project-visual-preview {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.terminal-status-badge {
    color: var(--neon-green);
    font-size: 0.74rem;
}

/* Interactive Preview Mockups */
.density-mockup-container {
    padding: 2.2rem;
    background-color: #06090f;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.density-top-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.86rem;
}

.d-stat { display: flex; align-items: center; gap: 0.5rem; }

.orderbook-mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
}

.ob-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ob-header {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    border: 1px solid transparent;
}

.ob-row.high-density {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.ob-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.22;
}

.ask-bar { background: var(--neon-pink); }
.bid-bar { background: var(--neon-green); }

.density-guard-log {
    background-color: #030508;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.84rem;
}

.billing-mockup-container,
.analytics-mockup-container {
    padding: 2.5rem;
    background-color: #06090f;
}

.flow-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.flow-step {
    background: var(--bg-surface-2);
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flow-num { font-size: 1.2rem; font-weight: 800; }
.flow-name { font-size: 0.88rem; font-weight: 700; color: var(--text-bright); }
.flow-desc { font-size: 0.8rem; line-height: 1.4; }
.flow-arrow { font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }

.analytics-bars-display {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.a-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.a-bar-wrapper {
    height: 10px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
}

.a-bar-fill { height: 100%; }
.fill-green { background: var(--neon-green); }
.fill-cyan { background: var(--neon-cyan); }
.fill-pink { background: var(--neon-pink); }

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 3.5rem;
    padding-top: 2rem;
}

.detail-overview-col,
.detail-arch-col {
    display: flex;
    flex-direction: column;
}

.overview-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-readable);
    margin-bottom: 1.4rem;
}

.detail-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.detail-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1.04rem;
    color: var(--text-readable);
    line-height: 1.6;
}

.arch-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 1.5rem;
}

.arch-card {
    padding: 1.8rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--neon-cyan);
}

.arch-card-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.arch-idx {
    font-size: 1.15rem;
    font-weight: 800;
}

.arch-title {
    font-size: 1.18rem;
    color: var(--text-bright);
    font-weight: 700;
}

.arch-desc {
    color: var(--text-readable);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* --- PROJECT DETAIL RESPONSIVE ADAPTATIONS --- */
@media (max-width: 1024px) {
    .detail-header-grid,
    .detail-content-grid,
    .orderbook-mock-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
}

/* Custom details grid for Density Guard showing the logo */
.density-detail-wrapper {
    display: grid;
    grid-template-columns: 0.70fr 1.30fr;
    gap: 2.2rem;
    background-color: #06090f;
    padding: 2.2rem;
}

.density-detail-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #04060a;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 255, 102, 0.02);
}

.density-detail-logo-col img {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 255, 102, 0.22));
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 102, 0.15);
    margin-bottom: 1.5rem;
    background-color: #000;
}

@media (max-width: 900px) {
    .density-detail-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   UNBOXED MODULE DETAILS TYPOGRAPHY LIST
   ========================================================================== */
.module-details-list {
    margin: 1.2rem 0 1.6rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: transparent;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item-icon {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.detail-item-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-readable);
}

.detail-item-title {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.4rem;
    display: inline;
}

.detail-item-desc {
    color: var(--text-readable);
    display: inline;
}

/* ==========================================================================
   UNBOXED HERO SPECS & FEATURES GRID (BALANCED HERO LEFT COLUMN)
   ========================================================================== */
.hero-specs-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.6rem;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.spec-label {
    font-size: 0.74rem;
    color: var(--text-dim);
    line-height: 1.35;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.6rem;
    margin-top: 0.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hero-feature-icon {
    font-size: 0.95rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.hero-feature-text {
    font-size: 0.91rem;
    line-height: 1.55;
    color: var(--text-readable);
}

.hero-feature-title {
    color: var(--text-bright);
    font-weight: 700;
    margin-right: 0.35rem;
}

@media (max-width: 768px) {
    .hero-specs-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RECRUITER DASHBOARD & HIGH-TECH VISUAL STYLES
   ========================================================================== */

/* Hero KPI Bar */
.hero-kpi-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.hero-kpi-header {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.kpi-card {
    padding: 1.4rem 1.6rem;
    background: linear-gradient(145deg, rgba(26, 27, 32, 0.85), rgba(15, 16, 19, 0.95));
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.kpi-card.border-green { border-left: 3px solid var(--neon-green); }
.kpi-card.border-cyan { border-left: 3px solid var(--neon-cyan); }
.kpi-card.border-pink { border-left: 3px solid var(--neon-pink); }

.kpi-number {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.kpi-label {
    font-size: 0.86rem;
    color: var(--text-readable);
    line-height: 1.4;
}

/* Executive Visual Grid */
.executive-visual-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.terminal-screenshot-window {
    background: #090b0e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-window-header {
    background: #11141a;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red, .dot.dot-red, .dot.dot-r { background: #ff5f56 !important; }
.dot-yellow, .dot.dot-yellow, .dot.dot-y { background: #ffbd2e !important; }
.dot-green, .dot.dot-green, .dot.dot-g { background: #27c93f !important; }

.terminal-title {
    font-size: 0.82rem;
    color: var(--text-bright);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.terminal-status {
    font-size: 0.76rem;
    color: var(--neon-green);
}

.terminal-window-body {
    padding: 1.25rem;
    background: #06080b;
}

.detail-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Executive Summary Column */
.detail-executive-col {
    display: flex;
    flex-direction: column;
}

.executive-callout {
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(26, 27, 32, 0.8));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
}

.callout-header {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.executive-points-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exec-point {
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.07);
}

.exec-point-icon {
    font-size: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.exec-point-text {
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Engineering Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.highlight-card {
    padding: 2.2rem 2rem;
    background: linear-gradient(145deg, rgba(26, 27, 32, 0.9), rgba(15, 16, 19, 0.95));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.highlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-idx {
    font-size: 1.15rem;
    font-weight: 800;
}

.highlight-badge {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.35;
}

/* Pipeline Grid */
.pipeline-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.pipeline-step-card {
    flex: 1;
    padding: 1.8rem 1.5rem;
    background: rgba(26, 27, 32, 0.85);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.pipeline-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.pipeline-step-card.border-green { border-top: 3px solid var(--neon-green); }
.pipeline-step-card.border-cyan { border-top: 3px solid var(--neon-cyan); }
.pipeline-step-card.border-pink { border-top: 3px solid var(--neon-pink); }

.pipeline-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.pipeline-step-icon {
    font-size: 1.6rem;
}

.pipeline-step-num {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.pipeline-step-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-bright);
}

.pipeline-step-subtitle {
    letter-spacing: 0.03em;
}

.pipeline-step-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-readable);
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0 0.2rem;
}

/* ==========================================================================
   STICKY QUICK-NAVIGATION JUMP BAR (TOP UI/UX DESIGN)
   ========================================================================== */
.project-quick-nav-wrapper {
    position: sticky;
    top: 74px;
    z-index: 900;
    background: rgba(15, 16, 19, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    transform: translateZ(0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-quick-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.quick-nav-label {
    letter-spacing: 0.08em;
    font-weight: 700;
}

.quick-nav-link {
    color: var(--text-readable);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.quick-nav-link:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Terminal Active Status Dot */
.status-dot-active {
    color: var(--neon-green);
    animation: pulseGlow 2s infinite;
    display: inline-block;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--neon-green); }
    50% { opacity: 0.4; text-shadow: none; }
}

.terminal-window-footer {
    padding: 0.75rem 1.25rem;
    background: #090b0e;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
}

/* ==========================================================================
   MICROSERVICES & ECOSYSTEM COMPONENTS ROW CARDS
   ========================================================================== */
.ecosystem-rows-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.ecosystem-row-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    align-items: stretch;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.ecosystem-row-card.border-green { border-top: 3px solid var(--neon-green) !important; }
.ecosystem-row-card.border-pink { border-top: 3px solid var(--neon-pink) !important; }
.ecosystem-row-card.border-cyan { border-top: 3px solid var(--neon-cyan) !important; }

.ecosystem-row-card.row-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.ecosystem-row-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--border-hover);
    border-right-color: var(--border-hover);
    border-bottom-color: var(--border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
}

.ecosystem-row-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.ecosystem-row-card.row-reverse .ecosystem-row-left-content {
    order: 2;
}

.ecosystem-row-right-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 240px;
}

.ecosystem-row-card.row-reverse .ecosystem-row-right-visual {
    order: 1;
}

.visual-placeholder-wrapper {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
}

.cyber-placeholder-box {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.cyber-placeholder-box::before {
    display: none;
}

.cyber-placeholder-box .placeholder-header {
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.cyber-placeholder-box .placeholder-dots {
    display: flex;
    gap: 0.4rem;
}

.cyber-placeholder-box .placeholder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.cyber-placeholder-box .placeholder-dot.dot-r, .cyber-placeholder-box .placeholder-dot.dot-red { background: #ff5f56 !important; opacity: 1; }
.cyber-placeholder-box .placeholder-dot.dot-y, .cyber-placeholder-box .placeholder-dot.dot-yellow { background: #ffbd2e !important; opacity: 1; }
.cyber-placeholder-box .placeholder-dot.dot-g, .cyber-placeholder-box .placeholder-dot.dot-green { background: #27c93f !important; opacity: 1; }

.cyber-placeholder-box .placeholder-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.cyber-placeholder-box .placeholder-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    gap: 0.75rem;
    text-align: center;
}

.cyber-placeholder-box .placeholder-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.cyber-placeholder-box.border-green { border-color: rgba(0, 255, 102, 0.2); }
.cyber-placeholder-box.border-green .placeholder-icon-wrap { color: var(--neon-green); border-color: rgba(0, 255, 102, 0.25); box-shadow: 0 0 15px rgba(0, 255, 102, 0.05); }
.cyber-placeholder-box.border-green:hover { border-color: rgba(0, 255, 102, 0.45); box-shadow: 0 0 25px rgba(0, 255, 102, 0.15); }

.cyber-placeholder-box.border-cyan { border-color: rgba(0, 240, 255, 0.2); }
.cyber-placeholder-box.border-cyan .placeholder-icon-wrap { color: var(--neon-cyan); border-color: rgba(0, 240, 255, 0.25); box-shadow: 0 0 15px rgba(0, 240, 255, 0.05); }
.cyber-placeholder-box.border-cyan:hover { border-color: rgba(0, 240, 255, 0.45); box-shadow: 0 0 25px rgba(0, 240, 255, 0.15); }

.cyber-placeholder-box.border-pink { border-color: rgba(255, 0, 122, 0.2); }
.cyber-placeholder-box.border-pink .placeholder-icon-wrap { color: var(--neon-pink); border-color: rgba(255, 0, 122, 0.25); box-shadow: 0 0 15px rgba(255, 0, 122, 0.05); }
.cyber-placeholder-box.border-pink:hover { border-color: rgba(255, 0, 122, 0.45); box-shadow: 0 0 25px rgba(255, 0, 122, 0.15); }

.cyber-placeholder-box .placeholder-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
}

.cyber-placeholder-box .placeholder-tech-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cyber-placeholder-box .placeholder-grid-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.cyber-placeholder-box .placeholder-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.03);
}
.cyber-placeholder-box .placeholder-line.line-1 { width: 70%; margin: 0 auto; }
.cyber-placeholder-box .placeholder-line.line-2 { width: 45%; margin: 0 auto; }

.ecosystem-row-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.module-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.module-icon-wrap.border-green { border-color: rgba(0, 255, 102, 0.3); box-shadow: 0 0 20px rgba(0, 255, 102, 0.1); }
.module-icon-wrap.border-cyan { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }
.module-icon-wrap.border-pink { border-color: rgba(255, 0, 127, 0.3); box-shadow: 0 0 20px rgba(255, 0, 127, 0.1); }

.module-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.module-idx {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.module-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
}

.module-tech-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-tech-badge {
    padding: 0.32rem 0.68rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-bright);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.module-desc {
    font-size: 1.02rem;
    line-height: 1.82;
    margin: 0;
}

/* Responsive Adaptations for Recruiter & Ecosystem UI */
@media (max-width: 1024px) {
    .hero-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .executive-visual-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pipeline-grid {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }

    .ecosystem-row-card {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 1.25rem 1rem;
        min-width: 0;
        width: 100%;
    }
    .ecosystem-row-card.row-reverse {
        grid-template-columns: 1fr;
    }
    .ecosystem-row-card.row-reverse .ecosystem-row-left-content {
        order: initial;
    }
    .ecosystem-row-card.row-reverse .ecosystem-row-right-visual {
        order: initial;
    }
}

@media (max-width: 768px) {
    .project-quick-nav-wrapper {
        top: 64px;
        padding: 0.5rem 1rem;
    }
    .project-quick-nav {
        gap: 0.6rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.4rem;
        width: 100%;
        justify-content: flex-start;
    }
    .project-quick-nav .nav-tab {
        flex-shrink: 0;
        font-size: 0.76rem;
        padding: 0.45rem 0.85rem;
    }
    .hero-kpi-grid {
        grid-template-columns: 1fr;
    }
    .terminal-window-footer {
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .project-quick-nav-wrapper {
        top: 60px;
    }
}

/* ==========================================================================
   PROJECT DETAIL HEADER LOGO STYLES
   ========================================================================== */
.detail-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project-logo-window {
    background: #090b0e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 255, 102, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    max-width: 320px;
    transition: var(--transition-smooth);
}

.project-logo-window.placeholder-logo-window {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 240, 255, 0.03);
}

.logo-window-header {
    background: var(--bg-surface-2);
    padding: 0.85rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-window-title {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.logo-window-body {
    padding: 0;
    background: #06080b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 220px;
}

.project-logo-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.cyber-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    position: relative;
    width: 100%;
}

.cyber-logo-placeholder::before {
    display: none;
}

.placeholder-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
    margin-bottom: 0.2rem;
    z-index: 2;
}

.placeholder-logo-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    z-index: 2;
}

.placeholder-logo-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    z-index: 2;
}

@media (max-width: 1024px) {
    .detail-header-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .detail-logo-col {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

/* Project Visual Preview Grid */
.project-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .project-preview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   TERMINAL DEMO ANIMATION STYLES (COPIED FROM DENSITY-GUARD.XYZ)
   ========================================================================== */
.terminal-demo {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  width: 100%;
  aspect-ratio: 16 / 13.5;
  min-height: 520px;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(100, 255, 150, 0.16);
  background:
    radial-gradient(circle at 85% 15%, rgba(111, 229, 255, 0.1), transparent 35%),
    radial-gradient(circle at 15% 85%, rgba(100, 255, 150, 0.08), transparent 35%),
    linear-gradient(180deg, #060b08 0%, #020504 100%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(100, 255, 150, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  user-select: none;
  -webkit-user-select: none;
}

.terminal-demo-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.34rem 0.85rem;
  background: #161616;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px 12px 0 0;
}

.terminal-demo-chrome .stage-label {
  grid-column: 2;
  justify-self: center;
  color: #f5fff8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.terminal-demo-chrome .terminal-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 0.45rem;
  padding-right: 0.8rem;
}

.terminal-demo-chrome .terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-demo-chrome .terminal-dot:nth-child(1) {
  background: #ff5f56 !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.4) !important;
}

.terminal-demo-chrome .terminal-dot:nth-child(2) {
  background: #ffbd2e !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.4) !important;
}

.terminal-demo-chrome .terminal-dot:nth-child(3) {
  background: #27c93f !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.4) !important;
}

.terminal-demo-workspace {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(120px, 0.24fr) minmax(180px, 0.42fr);
  gap: 0.58rem;
  min-height: 0;
  margin: 0.58rem;
}

.terminal-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #25352e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008) 18%, rgba(0, 0, 0, 0.14)),
    rgba(8, 16, 13, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.terminal-panel::before {
  content: '';
  position: absolute;
  inset: 0 10px auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.terminal-left-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto minmax(0, 0.9fr);
  gap: 0.34rem;
  padding: 0.48rem;
}

.terminal-left-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1.8rem) 1fr;
  gap: 0.34rem;
  align-items: center;
}

.terminal-icon-button,
.terminal-market-pill,
.terminal-exchange-chip,
.terminal-scanner-button,
.terminal-tab-row span,
.terminal-book-actions button,
.terminal-book-actions span {
  border-radius: 7px;
  border: 1px solid #25352e;
  background: rgba(5, 12, 9, 0.78);
  color: #9aa59f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.terminal-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: #f5fff8;
  font-size: 0.85rem;
}

.terminal-market-pill {
  justify-self: end;
  align-self: center;
  min-width: 32px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  color: #f6b73c;
  border-color: rgba(246, 183, 60, 0.5);
  background: rgba(246, 183, 60, 0.12);
  font-size: 0.62rem;
  font-weight: 900;
}

.terminal-exchange-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.terminal-exchange-chip {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0.35rem;
}

.terminal-exchange-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.terminal-exchange-active {
  border-color: rgba(100, 255, 150, 0.42);
  background: rgba(100, 255, 150, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(100, 255, 150, 0.1);
}

.terminal-balance {
  color: #f5fff8;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.terminal-balance::first-letter {
  color: #64ff96;
}

.terminal-scanner-button {
  min-height: 26px;
  display: grid;
  place-items: center;
  color: #64ff96;
  border-color: rgba(100, 255, 150, 0.52);
  background: rgba(100, 255, 150, 0.055);
  font-size: 0.78rem;
  font-weight: 800;
}

.terminal-tab-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.12rem;
  border-radius: 9px;
  border: 1px solid rgba(100, 255, 150, 0.16);
  background: rgba(5, 12, 9, 0.72);
}

.terminal-lower-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terminal-tab-row span {
  min-width: 0;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.32rem;
  border-color: transparent;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.terminal-tab-row .is-active {
  color: #64ff96;
  border-color: rgba(100, 255, 150, 0.36);
  background: rgba(100, 255, 150, 0.12);
}

.terminal-table {
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #25352e;
  background: rgba(8, 16, 13, 0.58);
}

.terminal-table-head,
.terminal-table-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.85fr 0.9fr;
  align-items: center;
  min-height: 25px;
  padding: 0.15rem 0.4rem;
  color: #8a968f;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.terminal-table-head {
  background: rgba(255, 255, 255, 0.045);
}

.terminal-table-row {
  color: #d8e5dc;
  font-size: 0.7rem;
}

.terminal-table-row.is-selected {
  background: rgba(100, 255, 150, 0.075);
  box-shadow: inset 0 0 0 1px rgba(100, 255, 150, 0.26);
}

.terminal-volume-delta {
  font-weight: 900;
}

.terminal-volume-delta.is-positive {
  color: #64ff96;
}

.terminal-volume-delta.is-negative {
  color: #ff6060;
}

.terminal-table-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 14px;
  padding: 0 0.2rem;
  border-radius: 999px;
  color: #64ff96;
  background: rgba(100, 255, 150, 0.14);
  border: 1px solid rgba(100, 255, 150, 0.42);
  font-style: normal;
  font-weight: 800;
}

.terminal-table-row .terminal-short {
  color: #ff6060;
  background: rgba(255, 96, 96, 0.14);
  border-color: rgba(255, 96, 96, 0.42);
}

.terminal-table span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-book-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 0.28rem;
}

.terminal-book-title {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: #f5fff8;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.1;
  font-family: var(--font-mono);
}

.terminal-book-title span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-book-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
  margin-bottom: 0.34rem;
}

.terminal-book-actions button,
.terminal-book-actions span {
  appearance: none;
  min-width: 0;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.32rem;
  color: #64ff96;
  border-color: rgba(100, 255, 150, 0.52);
  background: #071a10;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: default;
}

.terminal-book-actions span {
  color: #d8e5dc;
  border-color: #25352e;
  background: rgba(5, 12, 9, 0.78);
}

.terminal-book-actions .terminal-select {
  justify-content: space-between;
  gap: 0.35rem;
  padding-inline: 0.48rem;
}

.terminal-select::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 0.24rem solid transparent;
  border-right: 0.24rem solid transparent;
  border-top: 0.3rem solid #84918a;
}

.terminal-console-panel {
  padding: 0.48rem;
}

.terminal-console-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #f5fff8;
  font-size: 0.85rem;
  font-weight: 900;
}

.terminal-console-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-console-head span::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #64ff96;
}

.terminal-console-head i {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 7px;
  border: 1px solid #25352e;
  color: #f5fff8;
  background: rgba(5, 12, 9, 0.78);
  font-size: 0.74rem;
}

.terminal-demo-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 7px;
  border: none;
  background: #08100d;
  box-shadow: 0 0 0 1px #25352e;
  image-rendering: auto;
}

.terminal-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-top: 0.58rem;
  justify-content: flex-start;
  height: calc(100% - 42px);
  max-height: calc(100% - 42px);
  min-height: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal-log-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.terminal-log-card {
  position: relative;
  min-height: 52px;
  height: auto;
  flex-shrink: 0;
  padding: 0.55rem 0.58rem 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: #141414;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.terminal-log-card::before {
  content: '';
  position: absolute;
  left: 0.38rem;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.terminal-log-info {
  --accent: #6fe5ff;
  --accent-rgb: 111, 229, 255;
}

.terminal-log-success {
  --accent: #64ff96;
  --accent-rgb: 100, 255, 150;
}

.terminal-log-warning {
  --accent: #ffc96b;
  --accent-rgb: 255, 201, 107;
}

.terminal-log-error {
  --accent: #ff6060;
  --accent-rgb: 255, 96, 96;
}

.terminal-log-meta {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.terminal-log-meta strong {
  color: #64ff96;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.terminal-log-tag {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 0.34rem;
  border-radius: 999px;
  color: var(--accent, #6fe5ff);
  background: color-mix(in srgb, var(--accent, #6fe5ff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #6fe5ff) 36%, transparent);
  font-size: 0.65rem;
  font-weight: 900;
}

.terminal-log-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0.34rem;
  height: 18px;
  border-radius: 4px;
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.terminal-log-badge-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.95;
}

.terminal-log-badge-symbol {
  color: var(--accent, #6fe5ff);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.terminal-log-card p {
  margin: 0.45rem 0 0;
  color: #f5fff8;
  font-size: 0.78rem;
  line-height: 1.35;
}

.terminal-log-card p .is-positive {
  color: #64ff96;
  font-weight: 800;
}

.terminal-log-card p .is-negative {
  color: #ff6060;
  font-weight: 800;
}

@media (max-width: 768px) {
  .terminal-demo-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Premium Visual Overview Feature Cards */
.preview-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-feature-card {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--neon-cyan);
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.25s ease;
}

.preview-feature-card:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--neon-green);
    transform: translateX(4px);
}

.feature-card-icon-wrap {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--neon-cyan);
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
    transition: all 0.25s ease;
}

.preview-feature-card:hover .feature-card-icon-wrap {
    background: rgba(100, 255, 150, 0.08);
    border-color: rgba(100, 255, 150, 0.25);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(100, 255, 150, 0.08);
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card-desc {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--text-readable);
}

/* Premium Browser Mockup styling */
.browser-mockup {
    width: 100%;
    background: #06090f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.responsive-browser-mockup {
    height: 520px;
    max-height: 75vh;
}

.browser-mockup:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 16px 40px rgba(0, 240, 255, 0.12);
}

.browser-chrome {
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.browser-dots {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.browser-dot.dot-r, .browser-dot.dot-red { background: #ff5f56 !important; }
.browser-dot.dot-y, .browser-dot.dot-yellow { background: #ffbd2e !important; }
.browser-dot.dot-g, .browser-dot.dot-green { background: #27c93f !important; }

.browser-address-bar {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: space-between;
}

.browser-address-bar a {
    color: inherit;
    text-decoration: none;
}

.browser-viewport {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    background: #06090f;
    min-height: 200px;
}

.browser-scanner-preview {
    width: 100%;
}

.browser-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-readable);
}

.browser-table th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.browser-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.browser-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 15, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.browser-viewport:hover .browser-link-overlay {
    opacity: 1;
}

.btn-browser-visit {
    padding: 0.6rem 1.1rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    background: var(--neon-cyan);
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-browser-visit:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Vertical Layout for Specific Components (Terminal & Website) */
.ecosystem-row-card.layout-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
}

.ecosystem-row-card.layout-vertical .ecosystem-row-left-content {
    width: 100%;
}

.ecosystem-row-card.layout-vertical .ecosystem-row-right-visual {
    width: 100%;
    min-height: 480px;
}

/* Bootloader preview uses a block layout: its live log must not take part in
   flex sizing or change the width of the window. */
.loader-visual-host,
.loader-visual-wrapper {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.loader-visual-wrapper {
    height: auto;
}

.ecosystem-row-card.layout-vertical:has(.loader-demo-window, .admin-preview-card) .ecosystem-row-right-visual {
    min-height: auto;
}

.ecosystem-row-card.layout-vertical .terminal-demo {
    max-width: 860px;
    aspect-ratio: 16 / 10;
    min-height: 480px;
    margin: 0 auto;
}

.terminal-demo-scaler-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

@media (max-width: 768px) {
    .ecosystem-row-card.layout-vertical {
        padding: 1rem 0.65rem;
        gap: 1.25rem;
    }
    .ecosystem-row-card.layout-vertical .ecosystem-row-right-visual {
        min-height: auto;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .ecosystem-row-card.layout-vertical .visual-placeholder-wrapper {
        min-height: auto;
        width: 100% !important;
        overflow: hidden !important;
    }
    .terminal-demo-scaler-outer {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .terminal-demo,
    .ecosystem-row-card.layout-vertical .terminal-demo {
        width: 660px !important;
        max-width: none !important;
        min-height: 460px !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        border-radius: 8px;
        transform-origin: top left !important;
        box-sizing: border-box !important;
    }
    .terminal-demo-workspace {
        display: grid !important;
        grid-template-columns: 190px 145px 1fr !important;
        gap: 0.5rem !important;
        overflow: visible !important;
        margin: 0.4rem !important;
    }
    .terminal-demo-workspace .terminal-panel {
        flex: initial !important;
        min-width: 0 !important;
    }
}

/* Bootloader Mockup style rules */
.loader-demo-window {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 0;
    transition: border-color 0.3s ease;
}

.loader-demo-window:hover {
    border-color: var(--neon-green);
    box-shadow: 0 16px 40px rgba(100, 255, 150, 0.08);
}

.loader-window-header {
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.loader-window-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 500;
}

.loader-window-body {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
    min-width: 0;
}

.loader-left-col,
.loader-console-logs {
    min-width: 0;
}

@media (max-width: 768px) {
    .loader-window-body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
    }
}

.loader-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loader-spinning-icon {
    font-size: 1.4rem;
    color: var(--neon-green);
    animation: loader-spin 2s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-app-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-bright);
}

.loader-status-text {
    font-size: 0.8rem;
    color: var(--text-readable);
    height: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loader-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loader-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #a0ffd0);
    border-radius: 4px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(100, 255, 150, 0.4);
}

.loader-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.loader-console-logs {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    height: 130px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: #a0ffd0;
    scrollbar-width: none; /* Firefox */
}

.loader-console-logs::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.loader-log-line {
    flex: 0 0 auto;
    line-height: 1.35;
    opacity: 0.85;
    animation: fade-in-up-loader 0.2s ease-out forwards;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes fade-in-up-loader {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 0.85; transform: translateY(0); }
}

.loader-log-line.log-success {
    color: var(--neon-green);
    font-weight: bold;
}

/* Ultra-Minimal API Box */
/* Ultra-Minimal API Box */
.minimal-api-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #090b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-mono);
    text-align: left;
}

.minimal-api-header {
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0.95rem;
    flex-shrink: 0;
}

.minimal-api-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.minimal-api-tabs::-webkit-scrollbar { display: none; }

.minimal-api-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    font-size: 0.72rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.minimal-api-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.minimal-api-tab.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

/* On phones every API endpoint stays visible; no horizontal tab strip. */
@media (max-width: 600px) {
    .minimal-api-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .minimal-api-tab {
        flex: 1 1 100%;
        min-height: 38px;
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.3;
    }
}

.method-tag {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.14rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
    letter-spacing: 0.03em;
}
.method-tag.get {
    background: rgba(0, 255, 102, 0.12);
    color: #00ff66;
    border: 1px solid rgba(0, 255, 102, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}
.method-tag.post {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.minimal-api-body {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
    flex-grow: 1;
}

.minimal-api-url {
    font-size: 0.75rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    background: rgba(14, 17, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.minimal-api-path {
    word-break: break-all;
    min-width: 0;
    flex: 1;
    color: #e2e8f0;
}

.minimal-api-code {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Admin Panel Image Mockup Card */
.admin-preview-card {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: var(--font-mono);
    text-align: left;
    transition: border-color 0.3s ease;
}

.admin-preview-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.admin-preview-chrome {
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-preview-img-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #04060a;
}

.admin-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0 0 9px 9px;
    transition: transform 0.4s ease;
}

.admin-preview-card:hover .admin-preview-img {
    transform: scale(1.015);
}

/* CLI Terminal Session Mockup */
.cli-mockup {
    width: 100%;
    background: #05080e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    text-align: left;
    transition: all 0.3s ease;
}

.cli-mockup:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 240, 255, 0.06);
}

.cli-chrome {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cli-title {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.cli-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-readable);
    overflow-x: auto;
}

.cli-prompt {
    color: #64ff96;
    font-weight: bold;
}

.cli-command {
    color: #fff;
}

.cli-response {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-dim);
}

.cli-json-key {
    color: #7dd3fc;
    font-weight: 500;
}

.cli-json-val-str {
    color: #fde047;
}

.cli-json-val-num {
    color: #00ff66;
    font-weight: 600;
}

.cli-json-val-bool {
    color: #ff007a;
    font-weight: bold;
}

.cli-cursor {
    display: inline-block;
    width: 7px;
    height: 1.15em;
    background-color: var(--neon-green);
    animation: cli-blink 1s step-end infinite;
    vertical-align: sub;
    margin-left: 3px;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

@keyframes cli-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* CLI Tabs styling */
.cli-tab-container {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: 1rem;
}

.cli-tab-container::-webkit-scrollbar {
    display: none;
}

.cli-tab {
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
    font-weight: 500;
}

.cli-tab:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.03);
}

.cli-tab.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.15);
    font-weight: bold;
}

/* Telegram Desktop Client Mockup Styles */
.telegram-mockup {
    width: 100%;
    max-width: 440px;
    background: #0e1621;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #fff;
    height: 100%;
    min-height: 480px;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.telegram-mockup:hover {
    border-color: rgba(36, 161, 222, 0.3);
}

.tg-header {
    background: #17212b;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.tg-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tg-avatar {
    width: 36px;
    height: 36px;
    background: #0c0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-radius: 0 !important;
    padding: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.tg-title-area {
    display: flex;
    flex-direction: column;
}

.tg-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.tg-subtitle {
    font-size: 0.68rem;
    color: #7f91a4;
    line-height: 1.2;
}

.tg-header-right {
    display: flex;
    gap: 1rem;
    color: #7f91a4;
    font-size: 0.85rem;
}

.tg-chat-area {
    flex-grow: 1;
    background-color: #0b0d12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: none;
}

.tg-chat-area::-webkit-scrollbar {
    display: none;
}

.tg-date-divider {
    align-self: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.65rem;
    color: #7f91a4;
    margin: 0.2rem 0;
}

.tg-msg-admin {
    align-self: center;
    background: rgba(23, 33, 43, 0.6);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    color: #7f91a4;
    max-width: 90%;
    text-align: center;
    line-height: 1.35;
}

.tg-msg-admin a {
    color: #5288c1;
    text-decoration: none;
}

.tg-msg-out {
    align-self: flex-end;
    background: #2b5278;
    border-radius: 12px 12px 2px 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    max-width: 75%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.tg-msg-in {
    align-self: flex-start;
    background: #182533;
    border-radius: 12px 12px 12px 2px;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    max-width: 85%;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #e1e9f0;
}

.tg-msg-in pre {
    background: #0e1621;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.5rem 0.65rem;
    margin: 0.4rem 0 0.2rem 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.74rem;
    color: #fff;
    line-height: 1.45;
    white-space: pre;
    overflow-x: auto;
}

.tg-time {
    font-size: 0.62rem;
    color: #7f91a4;
    float: right;
    margin-top: 0.2rem;
    margin-left: 0.5rem;
}

.tg-msg-out .tg-time {
    color: #a0c5e8;
}

.tg-keyboard {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.tg-btn-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.tg-btn-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.tg-btn {
    background: #202b36;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.tg-btn:hover {
    background: #2b394a;
}

.tg-btn.btn-green {
    background: #2b8c3d;
}

.tg-btn.btn-green:hover {
    background: #35a84a;
}

.tg-btn.btn-red {
    background: #9c3e3e;
}

.tg-btn.btn-red:hover {
    background: #b54949;
}

.tg-footer {
    background: #17212b;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.tg-input-area {
    flex-grow: 1;
    font-size: 0.78rem;
    color: #7f91a4;
}

.tg-footer-icons {
    display: flex;
    gap: 0.85rem;
    color: #7f91a4;
    font-size: 0.95rem;
}

/* ==========================================
   AUTHENTIC MINECRAFT UI DEMO WIDGET STYLES
   (Literal copy of minecraft project style.css)
   ========================================== */
@font-face {
    font-family: 'Monocraft';
    src: url('/static/fonts/Monocraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --mc-text: #e0e0e0;
    --mc-yellow: #ffff55;
    --mc-green: #55ff55;
    --mc-red: #ff5555;
    --mc-blue: #55ffff;
    --mc-panel-bg: rgba(20, 20, 24, 0.92);
    --mc-panel-border: #555555;
    --mc-panel-glow: rgba(0, 0, 0, 0.8);
    --mc-btn-bg: #777777;
    --mc-btn-border-light: rgba(255, 255, 255, 0.4);
    --mc-btn-border-dark: rgba(0, 0, 0, 0.6);
    --mc-slot-bg: #444444;
    --mc-slot-border-dark: #222222;
    --mc-slot-border-light: #777777;
    --mc-tooltip-bg: rgba(16, 0, 16, 0.94);
    --mc-tooltip-border: #280068;
    --mc-bg-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABlBMVEUiIiIAAABKqb3UAAAAAnRSTlMAgJsrThgAAAA2SURBVDjLY2AYBaNgFIyCUUAKEAJiRgYwYEQDIIwMaICRAQ2AAaYAQwMMMDSAEQUjBgYw0AAAl34CQU72MxcAAAAASUVORK5CYII=');
}

.mc-demo-panel {
    background-color: rgba(20, 20, 24, 0.92) !important;
    background-image: var(--mc-bg-texture) !important;
    background-rendering: pixelated !important;
    border: 2px solid var(--mc-panel-border) !important;
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.15), inset -2px -2px 0 rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.8) !important;
    color: var(--mc-text) !important;
    text-shadow: 2px 2px 0 #000 !important;
    padding: 12px !important;
    border-radius: 0 !important;
    font-family: 'Monocraft', monospace !important;
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.mc-demo-panel * {
    font-family: 'Monocraft', monospace !important;
}

/* Override font-family for Font Awesome icons so hex glyph boxes never appear */
.mc-demo-panel i[class*="fa-"],
.mc-demo-panel .fa-solid,
.mc-demo-panel .fa-regular,
.mc-demo-panel .fa-brands,
.telegram-mockup i[class*="fa-"],
.telegram-mockup .fa-solid,
.telegram-mockup .fa-regular,
.telegram-mockup .fa-brands {
    font-family: "Font Awesome 6 Free" !important;
}

.mc-demo-panel .fa-brands,
.telegram-mockup .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.telegram-mockup {
    font-family: system-ui, -apple-system, sans-serif !important;
    text-shadow: none !important;
}

.telegram-mockup * {
    font-family: system-ui, -apple-system, sans-serif;
    text-shadow: none;
}

.telegram-mockup i[class*="fa-"],
.telegram-mockup .fa-solid,
.telegram-mockup .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
}

.telegram-mockup .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.mc-demo-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid var(--mc-panel-border) !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
}

.mc-demo-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-shadow: 2px 2px 0 #000 !important;
    font-weight: bold !important;
}

.mc-demo-badge {
    font-size: 10px !important;
    padding: 2px 7px !important;
    border: 1px solid var(--mc-green) !important;
    background: rgba(85, 255, 85, 0.15) !important;
    color: var(--mc-green) !important;
    text-shadow: 1px 1px 0 #000 !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    border-radius: 0 !important;
}

.mc-demo-btn, .mc-btn {
    background-color: var(--mc-btn-bg) !important;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzjwqUAqGwUSYAwwBmMABQAd6hKp5Xhy5wAAAABJRU5ErkJggg==') !important;
    background-size: cover !important;
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: inset 2px 2px 0 var(--mc-btn-border-light), inset -2px -2px 0 var(--mc-btn-border-dark) !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 0 #000 !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    font-family: 'Monocraft', monospace !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    user-select: none !important;
    image-rendering: pixelated !important;
    transition: filter 0.1s ease !important;
}

.mc-demo-btn:hover, .mc-btn:hover {
    filter: brightness(1.2) !important;
    color: #ffffa0 !important;
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset -2px -2px 0 rgba(0, 0, 0, 0.8) !important;
}

.mc-demo-btn:active, .mc-btn:active, .mc-demo-btn.active, .mc-btn.active {
    filter: brightness(0.8) !important;
    color: var(--mc-green) !important;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.9), inset -2px -2px 0 rgba(255, 255, 255, 0.3) !important;
}

.mc-inv-container {
    background: #8b8b8b !important;
    padding: 6px !important;
    border: 2px solid #000000 !important;
    box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #373737 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.mc-demo-slot, .inv-slot {
    width: 34px !important;
    height: 34px !important;
    background-color: var(--mc-slot-bg) !important;
    border-top: 2px solid var(--mc-slot-border-dark) !important;
    border-left: 2px solid var(--mc-slot-border-dark) !important;
    border-bottom: 2px solid var(--mc-slot-border-light) !important;
    border-right: 2px solid var(--mc-slot-border-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.1s ease, border-color 0.1s ease !important;
}

.mc-demo-slot:hover, .inv-slot:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.mc-demo-slot.is-selected, .inv-slot.is-selected {
    border: 3px solid #ffffff !important;
    box-shadow: inset 0 0 0 2px #000000, 0 0 10px rgba(255, 255, 255, 0.95) !important;
    z-index: 5 !important;
    transform: scale(1.06) !important;
}

.mc-demo-slot img, .inv-slot img {
    width: 24px !important;
    height: 24px !important;
    image-rendering: pixelated !important;
    pointer-events: none !important;
}

.mc-demo-slot .slot-count, .inv-slot .inv-count {
    position: absolute !important;
    bottom: 0px !important;
    right: 2px !important;
    font-size: 9px !important;
    font-family: 'Monocraft', monospace !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000 !important;
    font-weight: bold !important;
    pointer-events: none !important;
}

.mc-demo-box {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 2px solid var(--mc-panel-border) !important;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.85), inset -1px -1px 0 rgba(255,255,255,0.1) !important;
    padding: 10px !important;
    font-family: 'Monocraft', monospace !important;
    box-sizing: border-box !important;
}

.mc-input {
    background-color: #000000 !important;
    border: 2px solid var(--mc-panel-border) !important;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.85), inset -1px -1px 0 rgba(255,255,255,0.1) !important;
    color: var(--mc-yellow) !important;
    font-family: 'Monocraft', monospace !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 0 !important;
    outline: none !important;
    text-shadow: 1px 1px 0 #000 !important;
    box-sizing: border-box !important;
}

.mc-input:focus {
    border-color: #ffffff !important;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.9), 0 0 6px var(--mc-green) !important;
}

.mc-icon-img {
    width: 16px !important;
    height: 16px !important;
    image-rendering: pixelated !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.wp-card {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid var(--mc-panel-border) !important;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.8), inset -1px -1px 0 rgba(255,255,255,0.05) !important;
    padding: 6px 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-family: 'Monocraft', monospace !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.wp-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
}

.state-on { color: var(--mc-green) !important; font-weight: bold !important; }
.state-off { color: var(--mc-red) !important; font-weight: bold !important; }

/* MC Bot case: compact, task-oriented snapshots instead of generic technical mockups */
.mc-case-widget {
    width: 100%;
}

.mc-case-browser {
    border: 2px solid #555;
    background: #090d12;
    overflow: hidden;
}

.mc-case-browserbar {
    min-height: 30px;
    padding: 0 8px;
    border-bottom: 2px solid #555;
    background: rgba(0, 0, 0, 0.82);
    color: #cfcfcf;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.mc-case-browserbar > :nth-child(2) {
    flex: 1;
    color: var(--mc-yellow);
    text-align: center;
}

.mc-case-dots {
    color: #ff5555;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mc-case-browser img {
    display: block;
    width: 100%;
    max-height: 278px;
    object-fit: cover;
    object-position: top center;
}

.mc-case-screen-fit {
    display: flex;
    justify-content: center;
    background: #080b0e;
}

.mc-case-screen-fit img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.mc-case-caption {
    margin: 9px 0 0;
    color: #b7b7b7;
    font-size: 10px;
    line-height: 1.55;
}

.mc-route-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.mc-minimap {
    width: 156px;
    height: 156px;
    position: relative;
    overflow: hidden;
    border: 2px solid #555;
    background:
        linear-gradient(rgba(85, 255, 85, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 255, 85, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 35% 30%, #526c39 0 7%, transparent 8%),
        radial-gradient(circle at 75% 68%, #374f2f 0 9%, transparent 10%),
        #1d2b1d;
    background-size: 20px 20px, 20px 20px, auto, auto, auto;
}

.mc-minimap::before,
.mc-minimap::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
}

.mc-minimap::before { width: 1px; inset: 0 auto 0 50%; }
.mc-minimap::after { height: 1px; inset: 50% 0 auto 0; }

.mc-map-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-one { width: 80px; height: 80px; }
.ring-two { width: 138px; height: 138px; opacity: 0.75; }

.mc-map-label {
    position: absolute;
    z-index: 2;
    color: rgba(255, 255, 255, 0.75);
    font-size: 9px;
}

.mc-map-label.north { top: 4px; left: 50%; transform: translateX(-50%); }
.mc-map-label.east { right: 5px; top: 50%; transform: translateY(-50%); }
.mc-map-label.south { bottom: 4px; left: 50%; transform: translateX(-50%); }
.mc-map-label.west { left: 5px; top: 50%; transform: translateY(-50%); }

.mc-map-dot {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    border: 1px solid #0c0c0c;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.mc-map-dot.bot { left: 74px; top: 74px; color: #55ff55; background: #55ff55; }
.mc-map-dot.waypoint { right: 30px; top: 31px; color: #00e5ff; background: #00e5ff; border-radius: 0; transform: rotate(45deg); }
.mc-map-dot.hostile { left: 25px; bottom: 37px; color: #ff5555; background: #ff5555; }
.mc-map-dot.player { right: 36px; bottom: 44px; color: #55ffff; background: #55ffff; }

.mc-route-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #aaa;
    font-size: 10px;
}

.mc-route-info strong { color: #fff; font-size: 13px; }
.mc-case-kicker { color: #55ffff; font-size: 9px; letter-spacing: 0.08em; }

.mc-route-progress {
    height: 8px;
    overflow: hidden;
    border: 1px solid #111;
    background: #292929;
    box-shadow: inset 1px 1px 0 #050505;
}

.mc-route-progress span {
    display: block;
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, #2a9a2a, #55ff55);
}

.mc-case-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 11px;
    margin-top: 10px;
    color: #aaa;
    font-size: 9px;
}

.legend-bot { color: #55ff55; }
.legend-waypoint { color: #00e5ff; }
.legend-hostile { color: #ff5555; }
.legend-player { color: #55ffff; }

.mc-inventory-summary,
.mc-case-inventory-foot,
.mc-farm-switches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #aaa;
    font-size: 9px;
}

.mc-inventory-summary { margin-bottom: 8px; }
.mc-case-inventory { display: block !important; padding: 7px !important; }

.mc-case-slot-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 3px;
}

.mc-case-slot-grid .mc-demo-slot {
    width: 100% !important;
    aspect-ratio: 1;
    height: auto !important;
}

.mc-case-inventory-foot { margin-top: 8px; }
.mc-case-inventory-foot b { color: #fff; font-weight: normal; }

.mc-farm-flow {
    display: grid;
    gap: 6px;
}

.mc-farm-step {
    display: grid;
    grid-template-columns: 24px 1fr 16px;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid #454545;
    background: rgba(0, 0, 0, 0.45);
    color: #888;
    font-size: 9px;
}

.mc-farm-step > span { color: #777; }
.mc-farm-step b { display: block; color: #dadada; font-size: 11px; }
.mc-farm-step small { color: #999; font-size: 9px; }
.mc-farm-step i { color: #777; font-style: normal; }
.mc-farm-step.complete { border-color: rgba(85, 255, 85, 0.45); }
.mc-farm-step.complete > span, .mc-farm-step.complete i { color: #55ff55; }
.mc-farm-step.active { border-color: #ffff55; background: rgba(255, 255, 85, 0.06); }
.mc-farm-step.active > span, .mc-farm-step.active i { color: #ffff55; }

.mc-farm-switches {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.mc-farm-switches > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mc-telegram-log {
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 2px solid #444;
    background: #111820;
    color: #d2d9e1;
    font-family: 'Monocraft', monospace;
    font-size: 9px;
    line-height: 1.45;
}

.mc-telegram-log time { color: #728195; margin-right: 5px; }
.mc-tg-user { color: #55ffff; margin-right: 5px; }
.mc-telegram-log b { color: #ffff55; font-weight: normal; }
.mc-tg-reply { color: #b6eab6; }
.mc-tg-reply span { color: #55ff55; margin-right: 5px; }
.mc-tg-alert { color: #ffe48b; }
.mc-tg-alert span { color: #ffaa00; margin-right: 5px; }

@media (max-width: 520px) {
    .mc-case-browserbar { gap: 5px; font-size: 8px; }
    .mc-case-browserbar .state-on { display: none; }
    .mc-route-layout { grid-template-columns: 1fr; justify-items: center; }
    .mc-route-info { width: 100%; }
    .mc-case-slot-grid { gap: 2px; }
    .mc-case-slot-grid .mc-demo-slot img { width: 18px !important; height: 18px !important; }
    .mc-case-slot-grid .slot-count { font-size: 7px !important; right: 1px !important; }
}

/* RecSys Modern Cyberpunk Widget Styles */
.recsys-demo-panel {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
    box-sizing: border-box;
    position: relative;
}

.recsys-demo-panel.border-pink {
    border-color: rgba(255, 0, 122, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 122, 0.08);
}

.recsys-demo-panel.border-cyan {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.08);
}

.recsys-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recsys-demo-header.border-pink {
    border-bottom-color: rgba(255, 0, 122, 0.2);
}

.recsys-demo-header.border-cyan {
    border-bottom-color: rgba(0, 240, 255, 0.2);
}

.recsys-demo-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
    font-family: var(--font-mono);
}

.recsys-demo-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

.recsys-demo-badge.badge-pink {
    border: 1px solid rgba(255, 0, 122, 0.4);
    color: #ff007a;
    background: rgba(255, 0, 122, 0.12);
}

.recsys-demo-badge.badge-cyan {
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.12);
}

.recsys-demo-box {
    background: #06080d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

/* Market & RecSys module previews */
.market-widget {
    width: 100%;
    min-height: 250px;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(145deg, #0b0d14, #07090f);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.market-widget-header {
    min-height: 48px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.market-widget-header i { color: #ff4b9a; margin-right: 0.35rem; }

.market-live-dot,
.market-db-label {
    flex: 0 0 auto;
    padding: 0.22rem 0.48rem;
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 3px;
    color: #7dff70;
    background: rgba(57, 255, 20, 0.08);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
}

.market-live-dot::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
    animation: market-status-pulse 1.8s ease-in-out infinite;
}

.market-db-label {
    color: #6ee7ff;
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.07);
}

@keyframes market-status-pulse {
    50% { opacity: 0.35; }
}

.market-trainer-main {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
}

.market-model-orbit {
    width: 110px;
    height: 110px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 0, 122, 0.75);
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle, rgba(255, 0, 122, 0.21), transparent 66%);
    box-shadow: inset 0 0 24px rgba(255, 0, 122, 0.16), 0 0 22px rgba(255, 0, 122, 0.12);
    font-size: 0.86rem;
    font-weight: 800;
}

.market-model-orbit small { margin-top: 0.2rem; color: #ff73ae; font-size: 0.63rem; letter-spacing: 0.16em; }

.market-model-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.market-model-stats div { padding: 0.55rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025); }
.market-model-stats span { display: block; color: #8490a7; font-size: 0.61rem; text-transform: uppercase; }
.market-model-stats strong { display: block; margin-top: 0.28rem; color: #f8fafc; font-size: 0.8rem; }

.market-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.market-feature-grid span { padding: 0.7rem 0.8rem; border-right: 1px solid rgba(255, 255, 255, 0.07); color: #aeb8c9; font-size: 0.62rem; line-height: 1.55; }
.market-feature-grid span:last-child { border-right: 0; }
.market-feature-grid b { display: block; color: #ff70ae; font-size: 0.59rem; letter-spacing: 0.09em; }

.market-widget-footer { padding: 0.72rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #8490a7; font-size: 0.62rem; line-height: 1.5; }
.market-widget-footer strong { color: #d7e3f4; font-weight: 600; }

.market-sql-caption { padding: 0.8rem 1rem; color: #8090a8; background: rgba(0, 240, 255, 0.025); font-size: 0.62rem; }
.market-similarity-table { padding: 0 1rem 0.6rem; font-size: 0.7rem; }
.market-similarity-table > div { display: grid; grid-template-columns: 1.2fr 1.2fr 0.5fr 0.9fr; gap: 0.5rem; padding: 0.63rem 0.45rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.market-similarity-table .market-table-head { color: #778399; font-size: 0.57rem; letter-spacing: 0.07em; text-transform: uppercase; }
.market-similarity-table > div:not(.market-table-head) span:nth-child(1) { color: #b7c3d7; }
.market-similarity-table > div:not(.market-table-head) span:nth-child(2) { color: #e2e8f0; }
.market-similarity-table strong { color: #5ff3d1; font-weight: 700; }

.market-event-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 0.72fr)) 24px minmax(150px, 1.45fr); gap: 0.55rem; align-items: center; padding: 1.25rem 1rem; }
.market-event-source { min-height: 88px; padding: 0.65rem 0.35rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; border: 1px solid rgba(0, 240, 255, 0.16); background: rgba(0, 240, 255, 0.04); color: #dce7f5; font-size: 0.64rem; }
.market-event-source i { color: #65e9ff; font-size: 1rem; }
.market-event-source b { color: #65e9ff; font-size: 0.78rem; }
.market-flow-arrow { color: #69788e; text-align: center; }
.market-redis-queue { min-height: 88px; box-sizing: border-box; padding: 0.8rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255, 74, 155, 0.33); background: rgba(255, 0, 122, 0.06); }
.market-redis-queue span { color: #ff72b0; font-size: 0.59rem; text-transform: uppercase; letter-spacing: 0.08em; }
.market-redis-queue strong { margin: 0.3rem 0; color: #f4f7fb; font-size: 0.72rem; overflow-wrap: anywhere; }
.market-redis-queue small { color: #9ca9be; font-size: 0.59rem; }
.market-event-result { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #97a4b7; font-size: 0.62rem; }
.market-event-result span:first-child { color: #e0e8f4; }
.market-event-result i { color: #74f3c7; margin-right: 0.3rem; }

.market-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 1rem; }
.market-service-grid div { min-height: 78px; padding: 0.75rem; display: grid; grid-template-columns: 23px 1fr; grid-template-rows: auto auto; column-gap: 0.55rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.market-service-grid i { grid-row: span 2; align-self: center; color: #6fe8ff; font-size: 1rem; }
.market-service-grid div:nth-child(2) i { color: #ff70ae; }
.market-service-grid div:nth-child(3) i { color: #73f3ca; }
.market-service-grid div:nth-child(4) i { color: #ff7b76; }
.market-service-grid strong { color: #eef3f9; font-size: 0.73rem; }
.market-service-grid span { margin-top: 0.25rem; color: #96a3b7; font-size: 0.6rem; }

@media (max-width: 620px) {
    .market-trainer-main { grid-template-columns: 1fr; justify-items: center; }
    .market-model-stats { width: 100%; }
    .market-feature-grid { grid-template-columns: 1fr; }
    .market-feature-grid span { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
    .market-event-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-flow-arrow { display: none; }
    .market-redis-queue { grid-column: 1 / -1; }
    .market-similarity-table { overflow-x: auto; }
    .market-similarity-table > div { min-width: 410px; }
}
