﻿/*
Theme Name: Chrono Singularity
Author: BlueGate Procure
Description: Custom enterprise AI procurement theme.
Version: 1.0
Text Domain: chrono-theme
*/
/* ==========================================================================
   BlueGate Procure - CSS Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-black: #05050A;
    --bg-darker: #020204;

    --blue-dark: #0A192F;
    --blue-mid: #112B50;
    --blue-light: #4A90E2;
    --blue-accent: #00F0FF;
    --blue-glow: rgba(0, 240, 255, 0.4);

    --text-main: #E2E8F0;
    --text-muted: #94A3B8;

    /* Layout Variables */
    --border-radius: 12px;
    --border-radius-lg: 20px;

    --glass-bg: rgba(10, 25, 47, 0.4);
    --glass-border: rgba(74, 144, 226, 0.2);
    --glass-border-hover: rgba(0, 240, 255, 0.5);

    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', -apple-system, sans-serif;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-mid: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #FFFFFF;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--blue-dark) 0%, transparent 60%);
    z-index: -2;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-mid), transparent);
    top: -100px;
    left: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 30px);
    }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.accent {
    color: var(--blue-accent);
    text-shadow: 0 0 10px var(--blue-glow);
}

.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Form Controls & Buttons
   ========================================================================== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--trans-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--trans-fast);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
    color: #FFF;
    border: 1px solid var(--blue-light);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    border-color: var(--blue-accent);
}

.ghost-btn {
    background: transparent;
    color: var(--text-muted);
}

.ghost-btn:hover {
    color: var(--text-main);
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background: rgba(2, 2, 4, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-btn.active {
    color: var(--blue-accent);
    position: relative;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue-accent);
    box-shadow: 0 -2px 10px var(--blue-accent);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
}

/* ==========================================================================
   Views Setup
   ========================================================================== */
#app-container {
    position: relative;
    min-height: calc(100vh - 73px);
    /* Minus header height approx */
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-mid), transform var(--trans-mid);
    transform: translateY(20px);
}

.view.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
    transform: translateY(0);
}

/* ==========================================================================
   Login View
   ========================================================================== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-panel {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans-fast);
}

.login-footer a:hover {
    color: var(--blue-accent);
}

/* ==========================================================================
   Dashboard View
   ========================================================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-bar-container {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-bottom: 3rem;
    border-radius: 100px;
}

.search-icon {
    color: var(--text-muted);
    margin-right: 1rem;
}

#module-search {
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 1.1rem;
    width: 100%;
}

#module-search:focus {
    box-shadow: none;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.module-card {
    padding: 2rem;
    transition: var(--trans-mid);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.module-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--blue-accent);
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.launch-text {
    color: var(--blue-light);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-card:hover .launch-text {
    color: var(--blue-accent);
}

.launch-text svg {
    transition: transform var(--trans-fast);
}

.module-card:hover .launch-text svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Module Tool View
   ========================================================================== */
.module-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.back-btn {
    margin-bottom: 1.5rem;
}

.module-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.module-layout.full-width {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .module-layout {
        grid-template-columns: 1fr;
    }
}

.module-config,
.results-panel {
    padding: 2.5rem;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--blue-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.module-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* File Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--trans-fast);
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--blue-light);
    background: rgba(74, 144, 226, 0.05);
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    pointer-events: none;
}

.upload-content svg {
    color: var(--blue-light);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-text span {
    color: var(--blue-accent);
    text-decoration: underline;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.file-name-display {
    margin-top: 1rem;
    color: var(--blue-accent);
    font-weight: 500;
    word-break: break-all;
}

.execute-btn {
    margin-top: auto;
    position: relative;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results Area */
.results-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.results-content {
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-sans);
}

.results-content.empty {
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 1rem;
}

/* Result Simulation Styles */
.result-block {
    animation: fadeIn 0.5s ease forwards;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 3px solid var(--blue-accent);
}

.result-block h4 {
    margin-bottom: 1rem;
    color: var(--blue-light);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-muted);
}

.result-value {
    font-weight: 500;
    color: #FFF;
}

.highlight-value {
    color: var(--blue-accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Public Marketing Pages Styles
   ========================================================================== */

/* Public Nav Specifics */
.public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.public-nav .nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--trans-fast);
}

.public-nav .nav-btn:hover,
.public-nav .nav-btn.active {
    color: var(--text-main);
}

.public-nav .nav-btn.active {
    color: var(--blue-accent);
}

.small-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Page Containers */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.text-center {
    text-align: center;
}

.page-header {
    margin-bottom: 4rem;
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Hero Section (Home) */
.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@media (max-width: 1024px) {
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .hero-cta {
        justify-content: center;
    }
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-video-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
}

/* Public Solutions Grid */
.public-solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.public-solutions-grid .module-card:hover {
    transform: translateY(-5px);
    cursor: default;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-pricing {
    border-color: var(--blue-light);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 144, 226, 0.2);
    z-index: 10;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-accent);
    color: #000;
    border: none;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.featured-pricing h3 {
    color: #FFF;
}

.price {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: 'âœ“';
    color: var(--blue-accent);
    margin-right: 10px;
    font-weight: bold;
}

/* Case Studies */
.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.case-card {
    display: flex;
    padding: 3rem;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .case-card {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
}

.case-stats {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stat .accent {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.case-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-methods p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-form-panel {
    padding: 3rem;
}

/* ==========================================================================
   Expanded Marketing Pages (Hubs, Squares, Articles)
   ========================================================================== */

/* Home Sub-Page Links Container */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hub-card {
    padding: 2rem 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: var(--trans-mid);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-accent);
    background: rgba(74, 144, 226, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1);
}

.hub-card h4 {
    color: var(--blue-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Solution Squares Layout */
.square-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.square-card {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.square-card .module-icon-wrap {
    margin: 0 auto 1.5rem auto;
}

.square-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.square-card p {
    font-size: 0.9rem;
}

/* Deep Dive Articles */
.article-layout {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.article-content {
    padding: 4rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h3 {
    font-size: 1.75rem;
    color: var(--blue-light);
    margin: 2.5rem 0 1rem 0;
}

.article-content h3:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.article-content li strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .article-content {
        padding: 2rem;
    }

    .article-header h2 {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Long Scroll & Case Study Styles (Phase 4)
   ========================================================================== */

.long-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.long-section.alt-bg {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.5) 0%, rgba(5, 5, 10, 1) 100%);
}

.case-style-neon {
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, rgba(5, 5, 10, 1) 100%);
}

.case-style-clean {
    border-left: 5px solid var(--blue-accent);
}

.case-style-heavy-glass .glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Native Animated Demo */
#native-demo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.8);
}

.demo-body {
    flex: 1;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.demo-map {
    width: 80%;
    height: 60%;
    border: 1px solid var(--blue-accent);
    border-radius: 8px;
    position: relative;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 20px,
            rgba(0, 240, 255, 0.05) 20px,
            rgba(0, 240, 255, 0.05) 21px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 20px,
            rgba(0, 240, 255, 0.05) 20px,
            rgba(0, 240, 255, 0.05) 21px);
}

.demo-node {
    width: 12px;
    height: 12px;
    background: var(--blue-accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px var(--blue-accent);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease-out;
}

.demo-node.active {
    opacity: 1;
    transform: scale(1);
    animation: pulseNode 2s infinite;
}

.demo-node.error {
    background: #ff4757;
    box-shadow: 0 0 15px #ff4757;
    animation: alertPulse 1s infinite relative;
}

.demo-line {
    position: absolute;
    background: var(--blue-light);
    height: 2px;
    transform-origin: left center;
    opacity: 0;
    transition: all 1s ease-in-out;
}

.demo-line.active {
    opacity: 0.5;
}

.demo-terminal {
    margin-top: 2rem;
    width: 80%;
    background: #000;
    border-radius: 6px;
    padding: 1rem;
    font-family: monospace;
    color: #00ff00;
    height: 100px;
    overflow: hidden;
    text-align: left;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-log {
    margin: 5px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.demo-log.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseNode {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

@keyframes alertPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   Custom Intake Tables (Tariff Impact Module)
   ========================================================================== */
.tariff-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.tariff-input,
.tariff-select {
    width: 100%;
    min-width: 120px;
    padding: 0.4rem;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 0.8rem;
    box-sizing: border-box;
}

.tariff-input.item-desc {
    min-width: 160px;
}

.tariff-input.lane-supplier {
    min-width: 140px;
}

.tariff-input.item-hs6,
.tariff-input.item-qty,
.tariff-input.item-cost,
.tariff-input.item-sell,
.tariff-input.item-margin,
.tariff-input.lane-origin,
.tariff-input.lane-destination,
.tariff-input.lane-alloc,
.tariff-input.lane-lead {
    min-width: 80px;
}

.tariff-input:focus,
.tariff-select:focus {
    outline: none;
    border-color: var(--blue-accent);
}

.btn-remove-row {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--trans-fast);
}

.btn-remove-row:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* ==========================================================================
   Home Page: Dark Theme Module Pills (Phase 20 Refinement)
   ========================================================================== */

.home-modules-dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .home-modules-dark-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-modules-dark-grid {
        grid-template-columns: 1fr;
    }
}

.home-module-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.home-module-pill:hover {
    border-color: rgba(0, 240, 255, 0.5);
    /* var(--blue-accent) but translucent */
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.home-module-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--blue-accent);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--blue-accent);
}

.home-module-pill .pill-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Dark search bar */
.home-modules-dark-search {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-modules-dark-search:focus-within {
    border-color: var(--blue-accent) !important;
    box-shadow: 0 0 0 1px var(--blue-accent);
}

.home-modules-dark-search input {
    border: none;
    background: transparent;
    width: 100%;
    color: var(--text-light) !important;
    font-size: 0.95rem;
    outline: none;
}

.home-modules-dark-search input::placeholder {
    color: var(--text-muted) !important;
}

.home-modules-dark-btn {
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* =========================================================================
   BLUEGATE SENTINELâ„¢ DASHBOARD & WIZARD STYLES
   ========================================================================= */

.sentinel-tab.hidden {
    display: none !important;
}

.sentinel-tab-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent !important;
}

.sentinel-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-light) !important;
}

.sentinel-tab-btn.active {
    background: rgba(0, 240, 255, 0.1) !important;
    color: var(--blue-accent) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.wizard-section.hidden {
    display: none;
}

.sentinel-table th,
.sentinel-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sentinel-table input,
.sentinel-table select {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    width: 100%;
}

.sentinel-table input:focus,
.sentinel-table select:focus {
    border-color: var(--blue-accent) !important;
    outline: none;
}

.sentinel-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentinel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.sentinel-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   PROCUREGUARD STYLES
   ========================================================================= */

.pg-tab-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent !important;
    background: transparent;
    color: var(--text-muted);
}

.pg-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-light) !important;
}

.pg-tab-btn.active {
    background: rgba(0, 240, 255, 0.1) !important;
    color: var(--blue-accent) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.pg-tab-content.hidden {
    display: none !important;
}
