/* ==========================================================================
   PREMIUM NEON-RAINBOW GLASSMORPHISM STYLING - CEREBRISENSUS
   ========================================================================== */

/* CSS Reset & Variable Definitions */
:root {
    --bg-dark: #04060b;
    --bg-darker: #020306;
    --bg-card: rgba(12, 16, 28, 0.6);
    --bg-card-hover: rgba(18, 24, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.2);
    
    /* Neon Colors */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-yellow: #adff2f;
    --neon-green: #00ff66;
    --neon-red: #ff3b30;
    --neon-purple: #9d4edd;
    
    /* Rainbow Gradient Config */
    --rainbow-grad: linear-gradient(90deg, #00f0ff 0%, #00ff66 25%, #adff2f 50%, #ff9900 75%, #ff00c8 100%);
    --rainbow-grad-angle: linear-gradient(135deg, #00f0ff 0%, #00ff66 25%, #adff2f 50%, #ff9900 75%, #ff00c8 100%);
    
    /* Text colors */
    --text-white: #f3f4f6;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* Subtle Cyber Grid overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

/* Scanlines Effect overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.18) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.12;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: #1a2238;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Interactive Network Canvas Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Headings Tech Underline */
h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--rainbow-grad);
    border-radius: 2px;
}

p {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

/* Helper Gradients & Neon Text */
.title-grad {
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.neon-text-magenta {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

/* Containers & Sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

section {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Header & Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition-speed);
}

nav a:hover {
    color: var(--text-white);
}

.nav-portal-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.nav-portal-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--border-glow);
    background: rgba(0, 240, 255, 0.05);
}

/* Button Styling */
.btn-cyber {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-darker);
    background: var(--rainbow-grad);
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
    text-align: center;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 200, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.02);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Hero Information Badge */
.hero-badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.badge-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.badge-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.25));
}

.badge-heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.badge-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

.badge-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
}

.badge-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
}

/* Science Section & Signal List */
.science-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.science-visual {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.science-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-dark);
    padding: 0 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    border-left: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

.signal-list {
    margin-top: 2rem;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.signal-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
}

.signal-icon {
    color: var(--neon-magenta);
}

/* App Simulator Layout */
.simulator-intro-text {
    text-align: center;
}

.simulator-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.sim-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-panel-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.sim-panel-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.state-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.state-btn {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-speed);
}

.state-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.state-btn.active {
    background: rgba(0, 240, 255, 0.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.state-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.state-dot.green { background-color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.state-dot.blue { background-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.state-dot.purple { background-color: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); }
.state-dot.red { background-color: var(--neon-red); box-shadow: 0 0 8px var(--neon-red); }

.state-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.state-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.state-desc {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Smartphone Frame Mockup */
.phone-frame {
    width: 340px;
    height: 680px;
    background: #000;
    border: 12px solid #1c2135;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1c2135;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #070913;
    padding: 1.2rem;
    padding-top: 2.2rem;
}

/* App Header inside Screen */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-gray);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 800;
    color: var(--text-white);
}

.app-logo-svg {
    width: 16px;
    height: 16px;
}

.app-signals {
    display: flex;
    gap: 0.4rem;
}

/* App Body Inside Screen */
.app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    padding-top: 0.8rem;
}

/* Hide scrollbar for device simulator body */
.app-body::-webkit-scrollbar {
    display: none;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.8rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.app-card-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.sim-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.sim-badge.green { background: rgba(0, 255, 102, 0.1); border: 1px solid var(--neon-green); color: var(--neon-green); }
.sim-badge.blue { background: rgba(0, 240, 255, 0.1); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
.sim-badge.purple { background: rgba(157, 78, 221, 0.1); border: 1px solid var(--neon-purple); color: var(--neon-purple); }
.sim-badge.red { background: rgba(255, 59, 48, 0.1); border: 1px solid var(--neon-red); color: var(--neon-red); }

.stability-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.stability-val {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    line-height: 1;
}

.stability-unit {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Live EEG Canvas Container */
.eeg-canvas-container {
    height: 60px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

#sim-eeg-canvas {
    width: 100%;
    height: 100%;
}

.eeg-frequency-label {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
}

/* BSI History Graph Simulator */
.sim-graph-container {
    height: 70px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

#sim-trend-chart {
    width: 100%;
    height: 100%;
}

.time-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Vitals Grid simulator */
.app-vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.vital-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
}

.vital-lbl {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 700;
}

.vital-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-top: 0.1rem;
}

/* Cyber cards for Roadmap */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-speed);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cyber-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: var(--transition-speed);
}

.cyber-card:hover {
    border-color: rgba(255, 0, 200, 0.25);
    box-shadow: 0 15px 30px rgba(255, 0, 200, 0.1);
    transform: translateY(-4px);
}

.cyber-card:hover::after {
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}

.card-num {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    opacity: 0.04;
    color: var(--neon-cyan);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.phase-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-magenta);
    border: 1px solid rgba(255, 0, 127, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: rgba(255, 0, 127, 0.05);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

/* VP Shunt Highlight Box */
.shunt-highlight-box {
    margin-top: 5rem;
    background: linear-gradient(135deg, rgba(16, 12, 28, 0.85) 0%, rgba(8, 10, 18, 0.6) 100%);
    border: 1px solid var(--neon-magenta);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(255, 0, 127, 0.08);
    border-top: 1.5px solid rgba(255, 255, 255, 0.15);
}

.shunt-highlight-box::before {
    content: "CRITICAL CLINICAL PIPELINE";
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--bg-dark);
    padding: 0 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--neon-magenta);
    letter-spacing: 1.5px;
}

.shunt-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.shunt-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.shunt-feature-item {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.shunt-feature-icon {
    color: var(--neon-cyan);
    font-weight: bold;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.service-card {
    height: 100%;
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* General Guest Terminal */
.terminal-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-top: 3rem;
}

.terminal-header {
    background: rgba(16, 20, 36, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-bullets {
    display: flex;
    gap: 6px;
}

.terminal-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-bullet.red { background-color: var(--neon-red); }
.terminal-bullet.yellow { background-color: var(--neon-yellow); }
.terminal-bullet.green { background-color: var(--neon-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-gray);
}

.terminal-body {
    padding: 1.5rem;
    height: 350px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--neon-green);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.terminal-output {
    white-space: pre-wrap;
    line-height: 1.5;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.terminal-prompt {
    color: var(--neon-cyan);
    font-weight: 700;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    width: 100%;
}

/* Secure Employee Portal CSS */
.portal-header-box {
    text-align: center;
}

.portal-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-card-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.portal-lock-icon {
    font-size: 3rem;
    display: inline-block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.3));
}

.portal-card-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.portal-card-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-speed);
}

.form-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.form-error {
    font-size: 0.8rem;
    color: var(--neon-red);
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--text-gray);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    align-self: center;
}

.btn-text-link:hover {
    color: var(--text-white);
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Mock Email Inbox Notification Card */
.mock-notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    padding: 1.2rem;
    z-index: 1000;
    backdrop-filter: blur(20px);
    animation: slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notif-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

.notif-icon {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.notif-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.notif-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
}

.notif-close:hover {
    color: var(--text-white);
}

.notif-body {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.notif-sender, .notif-subject {
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}

.notif-code-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(0, 255, 102, 0.3);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    margin: 0.8rem 0;
}

.notif-code-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.notif-code {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 1px;
}

.notif-footer {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Restricted Employee Dashboard layout */
.restricted-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
}

.restricted-sidebar {
    background: rgba(8, 10, 18, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.employee-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.badge-avatar {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.emp-email {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-white);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.emp-role {
    font-size: 0.72rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: 800;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.menu-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-speed);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
}

.menu-btn.active {
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--neon-red);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-speed);
    text-align: center;
    margin-top: 2rem;
}

.btn-logout:hover {
    background: rgba(255, 59, 48, 0.05);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.1);
}

.restricted-main-content {
    padding: 2.2rem;
}

.tab-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tab-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Secured Table Data view */
.table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.secure-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

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

.secure-table th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.tb-bsi {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.tb-bsi.green { color: var(--neon-green); text-shadow: 0 0 8px rgba(0, 255, 102, 0.3); }
.tb-bsi.yellow { color: var(--neon-yellow); text-shadow: 0 0 8px rgba(173, 255, 47, 0.3); }
.tb-bsi.red { color: var(--neon-red); text-shadow: 0 0 8px rgba(255, 59, 48, 0.3); }

.tb-stat-ok { color: var(--neon-green); }
.tb-stat-trans { color: var(--neon-yellow); }
.tb-stat-warn { color: var(--neon-red); }

/* Configurations & Controls tab */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.config-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.config-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.config-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin-bottom: 1rem;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.config-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.config-card-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.config-actions {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.save-status {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-green);
    font-weight: 600;
}

/* Logging Tab details */
.log-card {
    margin-top: 1rem;
}

.log-body {
    height: 280px;
    background: #030407;
}

.log-output {
    color: var(--text-gray);
    text-shadow: none;
}

/* Contact Box Details */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--neon-cyan);
    text-decoration: none;
    margin: 2rem 0;
    display: inline-block;
    font-weight: 800;
    transition: transform 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.contact-email:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
    transform: scale(1.03);
}

footer {
    padding: 3rem 0;
    text-align: center;
    background: rgba(4, 5, 8, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 10;
    position: relative;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .science-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .shunt-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 0 1rem;
    }
    nav {
        display: none;
    }
    section {
        padding: 4rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .restricted-container {
        grid-template-columns: 1fr;
    }
    .restricted-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}
