/* The Chamberlin C Group - Accenture-Inspired Design */

/* CSS Custom Properties */
:root {
    --primary: #0d0d0d;
    --primary-light: #1a1a1a;
    --accent: #2B7CB3;
    --accent-hover: #1e5a82;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --gray-800: #262626;
    --text-primary: #0d0d0d;
    --text-secondary: #525252;
    --gradient-start: #2B7CB3;
    --gradient-end: #5BA4D9;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography - Clean Professional Style */
.display-xl {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.display-lg {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.display-md {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.text-xl {
    font-size: 1.375rem;
    line-height: 1.6;
    font-weight: 400;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-sm {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.text-xs {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - Clean Minimal */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav-container.dark {
    background: transparent;
}

.nav-container.dark.scrolled {
    background: rgba(13, 13, 13, 0.95);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link::after {
    display: none;
}

/* Mobile Menu - Full Screen Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a2634 100%);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(43, 124, 179, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 164, 217, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 100px 24px 40px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.mobile-menu-link {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    padding: 20px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    color: #5BA4D9;
    padding-left: 8px;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Hero Section - Full Impact */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-dark {
    background: var(--primary);
    color: var(--white);
}

.hero-gradient-bg {
    background: linear-gradient(135deg, #0d0d0d 0%, #0f1419 50%, #1a2634 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(43, 124, 179, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 164, 217, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated gradient orb */
.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43, 124, 179, 0.15), rgba(91, 164, 217, 0.1));
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 0;
}

/* Buttons - Professional Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 4px;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 124, 179, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 28px;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Cards - Clean with Hover */
.card {
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-elevated:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.card-bordered {
    border: 1px solid var(--gray-200);
}

.card-bordered:hover {
    border-color: var(--primary);
}

.card-dark {
    background: var(--primary-light);
    color: var(--white);
}

/* Service Cards */
.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 2px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 24px;
}

/* Section Spacing */
.section {
    padding: 120px 0;
}

.section-sm {
    padding: 80px 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 80px;
    }
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

/* Stats */
.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-top: 8px;
}

/* Divider */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    margin: 24px 0;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-select {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.form-select:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-link {
    color: var(--gray-400);
    transition: color 0.2s ease;
}

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

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon styling */
.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
}

.icon-box-dark {
    background: var(--primary);
}

/* Utility classes */
.text-white { color: var(--white); }
.text-gray { color: var(--gray-600); }
.text-accent { color: var(--accent); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--primary); }
.bg-gray { background: var(--gray-50); }

/* Responsive utilities */
@media (max-width: 1024px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .display-xl {
        font-size: 2.5rem;
    }

    .display-lg {
        font-size: 2rem;
    }

    .display-md {
        font-size: 1.75rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .container {
        padding: 0 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   Enterprise Playground Styles
   ============================================ */

.playground-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #0f1419 100%);
    min-height: 100vh;
    padding: 40px 0 60px;
    position: relative;
}

.playground-canvas-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

@media (min-width: 1024px) {
    .playground-canvas-wrapper {
        padding: 0 40px;
    }
}

/* Scenario Dropdown - Refined */
.scenario-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.scenario-dropdown-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scenario-dropdown {
    position: relative;
    min-width: 320px;
}

.scenario-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.scenario-dropdown.open .scenario-dropdown-trigger {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.scenario-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.scenario-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #141419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.scenario-dropdown.open .scenario-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scenario-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.scenario-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.scenario-dropdown-item.threat:hover {
    background: rgba(239, 68, 68, 0.1);
}

.scenario-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.scenario-dropdown-item:hover svg {
    opacity: 0.8;
}

.scenario-dropdown-item .item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scenario-dropdown-item .item-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.scenario-dropdown-item .item-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* SVG Canvas */
.enterprise-canvas {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 85vh;
    background: rgba(13, 13, 13, 0.5);
    border: 1px solid rgba(43, 124, 179, 0.2);
    border-radius: 16px;
    overflow: visible;
}

@media (max-width: 768px) {
    .enterprise-canvas {
        min-height: 400px;
    }

    .scenario-dropdown {
        min-width: 260px;
    }

    .scenario-dropdown-trigger {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

/* Team Nodes */
.team-node {
    cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.team-node:hover {
    filter: brightness(1.2);
}

/* Flow animation states */
.team-node.flow-active {
    filter: brightness(1.4);
    transform: scale(1.08);
}

.team-node.flow-active .node-circle {
    stroke-width: 5;
    filter: url(#glow-strong);
}

.team-node.flow-complete {
    filter: brightness(1.1);
}

.team-node.flow-complete .node-circle {
    stroke: #22c55e;
}

@keyframes ticketPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

#ticket-indicator {
    animation: ticketPulse 0.8s ease-in-out infinite;
}

.team-node:hover .node-circle {
    filter: url(#glow);
}

.team-node.active .node-circle {
    stroke-width: 4;
    filter: url(#glow);
}

.team-node.active .node-ring {
    animation: pulse-ring 2s ease-out infinite;
}

.node-ring {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-node:hover .node-ring,
.team-node.active .node-ring {
    opacity: 1;
}

/* Pulse animation for rings */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulse-ring 3s ease-out infinite;
    transform-origin: center;
}

/* Connection lines */
.connection-line {
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.connection-line.active {
    stroke: rgba(43, 124, 179, 0.6);
    stroke-width: 3;
}

/* Activity dots */
.activity-dot {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Activity text */
.activity-text {
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Central Hub */
.central-hub {
    animation: hubPulse 4s ease-in-out infinite;
}

@keyframes hubPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Data flow particles */
.data-particle {
    animation: flowParticle 3s linear infinite;
}

@keyframes flowParticle {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* Team Detail Panel */
.team-panel {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43, 124, 179, 0.2);
    border-radius: 12px;
    padding: 32px;
    color: white;
    position: relative;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

@media (max-width: 1023px) {
    .team-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        z-index: 100;
        padding: 24px;
    }

    .team-panel.open {
        transform: translateY(0);
    }
}

.panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
    .panel-close {
        display: none;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 40px;
}

.panel-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-icon svg {
    width: 28px;
    height: 28px;
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.panel-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0;
}

.panel-content {
    margin-bottom: 24px;
}

.panel-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.panel-intro ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.panel-intro li {
    margin-bottom: 8px;
}

/* Panel sections */
.panel-section {
    margin-bottom: 24px;
}

.panel-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-weight: 600;
}

.panel-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.panel-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-section li:last-child {
    border-bottom: none;
}

.panel-section li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Tools/Tech badges */
.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-badge {
    background: rgba(43, 124, 179, 0.2);
    color: #5BA4D9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Panel metrics */
.panel-metrics {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.panel-metrics h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Panel actions */
.panel-actions {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Integrations list */
.integrations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.integration-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Playground Legend */
.playground-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-line {
    width: 24px;
    height: 0;
    border-top: 2px solid rgba(43, 124, 179, 0.5);
}

/* Mobile panel overlay */
.panel-overlay {
    display: none;
}

@media (max-width: 1023px) {
    .panel-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Workflow steps */
.workflow-steps {
    position: relative;
    padding-left: 24px;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(43, 124, 179, 0.2) 100%);
}

.workflow-step {
    position: relative;
    padding: 12px 0;
}

.workflow-step::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #1a1a1a;
}

.workflow-step h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.workflow-step p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================
   Team Modal Popup Styles
   ============================================ */

.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-modal {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.team-modal-overlay.active .team-modal {
    transform: scale(1) translateY(0);
}

.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.team-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.team-modal-content {
    padding: 32px;
    overflow-y: auto;
    max-height: 85vh;
}

.team-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.team-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.team-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.team-modal-header p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0;
}

.team-modal-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.team-modal-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .team-modal-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-metric {
    text-align: center;
}

.team-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.team-metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-modal-section {
    margin-bottom: 24px;
}

.team-modal-section h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-weight: 600;
}

.automation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.automation-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

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

.automation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.automation-name {
    font-weight: 600;
    color: white;
    font-size: 0.9375rem;
}

.automation-time {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.automation-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.team-modal-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

/* ============================================
   Interactive Terminal Simulation Styles
   ============================================ */

/* Simulation Button Container */
.simulation-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.sim-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 124, 179, 0.3);
}

.sim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 124, 179, 0.4);
}

.sim-btn.threat {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.sim-btn.threat:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.sim-btn.helpdesk {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.sim-btn.helpdesk:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.sim-btn svg {
    width: 20px;
    height: 20px;
}

/* Terminal Container */
.terminal-container {
    background: #0a0a0a;
    border: 1px solid rgba(43, 124, 179, 0.3);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    margin-top: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a1a, #252525);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Terminal Lines */
.terminal-line {
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 0.875rem;
    opacity: 0;
    animation: terminalFadeIn 0.3s ease forwards;
}

@keyframes terminalFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-line.header {
    color: #60a5fa;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.terminal-line.header:first-child {
    margin-top: 0;
}

.terminal-line.normal {
    color: rgba(255, 255, 255, 0.8);
}

.terminal-line.success {
    color: #4ade80;
}

.terminal-line.warning {
    color: #fbbf24;
}

.terminal-line.error {
    color: #f87171;
}

.terminal-line.muted {
    color: rgba(255, 255, 255, 0.4);
}

.terminal-line.highlight {
    color: #22d3ee;
}

.terminal-line.decision {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.terminal-line.decision.approved {
    background: rgba(74, 222, 128, 0.15);
    border-left: 3px solid #4ade80;
    color: #4ade80;
}

.terminal-line.decision.review {
    background: rgba(251, 191, 36, 0.15);
    border-left: 3px solid #fbbf24;
    color: #fbbf24;
}

/* Blinking cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #4ade80;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

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

/* Progress indicator */
.terminal-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.terminal-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Terminal Input Form */
.terminal-form {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.terminal-form-group {
    margin-bottom: 16px;
}

.terminal-form-group:last-child {
    margin-bottom: 0;
}

.terminal-form label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.terminal-form input,
.terminal-form select,
.terminal-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(43, 124, 179, 0.3);
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.875rem;
}

.terminal-form input:focus,
.terminal-form select:focus,
.terminal-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.terminal-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Simulation Modal */
.sim-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sim-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sim-modal {
    background: #111;
    border: 1px solid rgba(43, 124, 179, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.sim-modal-overlay.active .sim-modal {
    transform: scale(1);
}

.sim-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sim-modal-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.sim-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sim-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sim-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Reset/Restart button */
.terminal-restart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.terminal-restart:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.processing {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.status-badge.complete {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.escalated {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* ========================================
   Scenario Flow Modal
   ======================================== */

.scenario-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scenario-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.scenario-modal {
    width: 90%;
    max-width: 700px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(43, 124, 179, 0.15);
}

.scenario-modal-overlay.active .scenario-modal {
    transform: scale(1) translateY(0);
}

.scenario-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    z-index: 10;
}

.scenario-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.scenario-modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scenario-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(43, 124, 179, 0.2);
    border: 1px solid rgba(43, 124, 179, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.scenario-ticket-badge .ticket-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-ticket-badge .ticket-icon svg {
    stroke: #5BA4D9;
}

.scenario-ticket-badge .ticket-id {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5BA4D9;
}

.scenario-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.scenario-modal-content {
    padding: 32px;
}

/* Step Display - The main focus */
.scenario-step-display {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 20px currentColor;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.step-team {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
}

.step-action {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Progress Track */
.scenario-progress-track {
    position: relative;
    margin-bottom: 32px;
    padding: 0 20px;
}

.progress-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 16px;
}

.progress-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-node-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.progress-node.active .progress-node-dot {
    background: var(--node-color, #ec4899);
    border-color: var(--node-color, #ec4899);
    box-shadow: 0 0 20px var(--node-color, #ec4899);
    transform: scale(1.1);
}

.progress-node.complete .progress-node-dot {
    background: #22c55e;
    border-color: #22c55e;
}

.progress-node.complete .progress-node-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.progress-node-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.progress-node.active .progress-node-label,
.progress-node.complete .progress-node-label {
    color: rgba(255, 255, 255, 0.8);
}

.progress-line {
    position: absolute;
    top: 32px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #06b6d4);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Detail Panel */
.scenario-detail-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-status .status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-status .status-icon svg {
    flex-shrink: 0;
}

.detail-status .status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.detail-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    min-height: 48px;
}

.detail-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    animation: slideInAction 0.3s ease;
}

@keyframes slideInAction {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.detail-action-item .action-check {
    color: #22c55e;
    font-weight: bold;
}

.detail-action-item.pending .action-check {
    color: rgba(255, 255, 255, 0.3);
}

/* Modal Footer */
.scenario-modal-footer {
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elapsed-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elapsed-time .time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.elapsed-time .time-value {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: #06b6d4;
}

.scenario-status {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.scenario-status.complete {
    color: #22c55e;
    font-weight: 600;
}

.scenario-status.complete::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Color variations for different scenarios */
.scenario-modal.helpdesk .step-dot { background: #ec4899; box-shadow: 0 0 20px #ec4899; }
.scenario-modal.firewall .step-dot { background: #2B7CB3; box-shadow: 0 0 20px #2B7CB3; }
.scenario-modal.threat .step-dot { background: #ef4444; box-shadow: 0 0 20px #ef4444; }

.scenario-modal.threat .scenario-ticket-badge {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.scenario-modal.threat .ticket-id {
    color: #f87171;
}

/* Scenario Modal - Mobile Responsive */
@media (max-width: 768px) {
    .scenario-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .scenario-modal-header {
        padding: 20px 16px 16px;
    }

    .scenario-ticket-badge {
        padding: 6px 12px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .scenario-ticket-badge .ticket-icon svg {
        width: 14px;
        height: 14px;
    }

    .scenario-ticket-badge .ticket-id {
        font-size: 0.75rem;
    }

    .scenario-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .scenario-modal-content {
        padding: 16px;
    }

    .scenario-step-display {
        padding: 16px;
        margin-bottom: 16px;
    }

    .step-indicator {
        gap: 10px;
    }

    .step-dot {
        width: 10px;
        height: 10px;
    }

    .step-team {
        font-size: 0.625rem;
    }

    .step-action {
        font-size: 1rem;
    }

    .scenario-progress-track {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .progress-nodes {
        gap: 4px;
    }

    .progress-node-dot {
        width: 20px;
        height: 20px;
    }

    .progress-node-label {
        font-size: 0.5rem;
        max-width: 50px;
    }

    .scenario-detail-panel {
        padding: 16px;
    }

    .detail-status {
        gap: 8px;
        margin-bottom: 10px;
    }

    .detail-status .status-text {
        font-size: 0.8125rem;
    }

    .detail-description {
        font-size: 0.8125rem;
        margin-bottom: 12px;
    }

    .detail-action-item {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .scenario-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .scenario-elapsed {
        font-size: 0.75rem;
    }

    .scenario-status {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .scenario-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .scenario-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .scenario-modal-header {
        padding: 16px 12px 12px;
    }

    .scenario-title {
        font-size: 1rem;
    }

    .progress-node-label {
        display: none;
    }

    .progress-node-dot {
        width: 16px;
        height: 16px;
    }
}
