/* =========================================
   CINEMATIC DARK - APPLE PRO AESTHETIC
   ========================================= */

@font-face {
    font-family: 'SF Pro Display';
    src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-bold-webfont.woff2');
    font-weight: 700;
}

:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --brand-blue: #0A84FF;
    --brand-glow: rgba(10, 132, 255, 0.6);
}

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--bg-black);
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    color: white;
    user-select: none;
}

/* =========================================
   GLOBAL SCROLLBAR STYLES
   ========================================= */

/* Hide horizontal scrollbar globally */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 0;
    /* Hide horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Disable horizontal scroll on all containers */
.slide-content,
.principle-animation-panel,
.code-explanation-panel,
.teaching-grid,
.fullscreen-layout {
    overflow-x: hidden !important;
    max-width: 100vw;
}

#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* Vignette for cinematic focus */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* =========================================
   SLIDES INFRASTRUCTURE
   ========================================= */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ui-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    mix-blend-mode: exclusion;
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0;
    opacity: 0;
    transform: scale(0.9);
}

.hero-title .highlight {
    -webkit-text-stroke: 2px white;
    color: transparent;
    font-style: italic;
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.mono-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    display: block;
    margin-top: 1rem;
    text-transform: uppercase;
}

.loader-line {
    width: 0%;
    height: 2px;
    background: white;
    margin: 3rem auto 0;
    box-shadow: 0 0 20px white;
}

.enter-btn {
    pointer-events: auto;
    margin-top: 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 48px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.enter-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3em;
}

/* =========================================
   SLIDES INFRASTRUCTURE
   ========================================= */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Slide 1: Cover */
.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.tag {
    font-size: 0.8rem;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(10, 132, 255, 0.1);
}

.cover-title {
    font-size: 5rem;
    font-weight: 700;
    margin: 0 0 3rem 0;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cover-details {
    display: flex;
    gap: 4rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Slide 2: Internet Chart */
.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    overflow: hidden;
    box-sizing: border-box;
}

.slide-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.chart-container {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    min-height: 0;
}

/* Slide 2: Info Boxes */
.info-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 130px;
    max-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-blue);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.info-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    font-family: 'Courier New', monospace;
}

/* Slide 3: Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.server-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.6);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.server-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.server-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.server-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.server-use-case {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Slide 4: Code Demo */
.code-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e8e8e8;
}

.file-tree {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
}

/* Diagram containers */
.diagram-container {
    width: 100%;
    height: 500px;
    margin: 2rem 0;
}

/* Slide 7: Advanced Grid */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.advanced-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.advanced-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.adv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.adv-title {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: white;
}

.adv-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.adv-example {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--brand-blue);
}

/* Slide 8: Access Methods */
.access-methods {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
}

.access-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.access-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-blue);
}

.access-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.access-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: white;
    text-align: center;
}

.access-port {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.access-security {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.access-desc {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.access-example,
.access-firewall {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #10b981;
    margin-bottom: 0.5rem;
}

/* Slide 9: Command Showcase */
.command-showcase {
    max-width: 800px;
    width: 100%;
}

.cmd-step {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cmd-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.cmd-step code {
    display: block;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--brand-blue);
}

/* Slide 10: Hands-On Runbook */
.hands-on-layout {
    padding: 1.75rem clamp(1.25rem, 2.6vw, 2.75rem) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.hands-on-layout .slide-title {
    font-size: clamp(1.9rem, 2.4vw, 2.35rem);
    margin: 0 0 1.1rem 0;
}

.slide-subtitle {
    font-size: clamp(0.98rem, 1.25vw, 1.12rem);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
    margin-bottom: 1.35rem;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hands-on-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 2vw, 2.1rem);
    max-width: 1280px;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.hands-on-grid > * {
    min-width: 0;
}

.demo-hero {
    background: linear-gradient(145deg, rgba(10, 20, 40, 0.6) 0%, rgba(0, 0, 0, 0.45) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: clamp(1.55rem, 2vw, 2.1rem);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    min-height: 0;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.demo-hero h3 {
    font-size: clamp(1.55rem, 2vw, 1.95rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.demo-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-tags span {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
}

.command-pills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-pill {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.command-pill:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.pill-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.command-pill code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: #f1f5f9;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.pill-copy {
    align-self: flex-start;
    margin-top: 0.3rem;
    border: 1px solid rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill-copy:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.hero-note {
    border-left: 3px solid rgba(14, 165, 233, 0.8);
    padding: 0.85rem 0 0.85rem 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(14, 165, 233, 0.05);
    border-radius: 0 12px 12px 0;
    font-size: clamp(0.82rem, 1vw, 0.92rem);
    line-height: 1.55;
}

.demo-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.95rem, 1.4vw, 1.25rem);
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    align-content: start;
    min-height: 0;
}

.demo-steps > * {
    min-width: 0;
}

.hands-on-step {
    background: linear-gradient(145deg, rgba(15, 25, 45, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
}

.hands-on-step:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(56, 189, 248, 0.15);
    transform: translateY(-4px);
}

.hands-on-step h4 {
    margin: 0;
    font-size: clamp(1.05rem, 1.25vw, 1.18rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hands-on-step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.step-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.step-number {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.step-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.code-block-wrapper {
    position: relative;
    margin: 0.5rem 0;
}

.step-code {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #e8eef5;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: pre-wrap;
    word-break: break-word;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    margin: 0;
}

.step-code code {
    white-space: inherit;
    word-break: inherit;
    overflow-wrap: anywhere;
    font-family: inherit;
}

.copy-code-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.copy-code-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.copy-code-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.6);
    color: #10b981;
}

.step-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.6;
}

.step-points li::before {
    content: '▹';
    margin-right: 0.6rem;
    color: #38bdf8;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .hands-on-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 2rem;
    }

    .demo-steps {
        grid-template-columns: 1fr;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .hands-on-layout {
        padding: 1.5rem !important;
    }
}

@media (max-height: 820px) {
    .hands-on-layout {
        padding: 1.25rem clamp(1.1rem, 2.2vw, 2.2rem) !important;
    }

    .hands-on-layout .slide-title {
        font-size: clamp(1.7rem, 2.2vw, 2.05rem);
        margin-bottom: 0.9rem;
    }

    .slide-subtitle {
        margin-top: 0.5rem;
        margin-bottom: 1.1rem;
        line-height: 1.55;
    }

    .hands-on-grid {
        gap: 1.25rem;
    }

    .demo-hero {
        padding: 1.35rem;
        gap: 0.9rem;
        border-radius: 26px;
    }

    .demo-hero h3 {
        font-size: 1.55rem;
    }

    .hero-tags {
        gap: 0.5rem;
    }

    .hero-tags span {
        padding: 0.28rem 0.75rem;
        font-size: 0.78rem;
    }

    .demo-steps {
        gap: 0.95rem;
    }

    .hands-on-step {
        padding: 1.05rem 1.15rem;
        border-radius: 20px;
        gap: 0.65rem;
    }

    .step-code {
        padding: 0.75rem 0.85rem;
        font-size: 0.74rem;
        line-height: 1.5;
        border-radius: 14px;
    }

    .step-points {
        font-size: 0.78rem;
        line-height: 1.5;
    }
}

/* Slide 10: Vertical Runbook Layout (Single Column + Scroll) */
#slide-10 .slide-content.hands-on-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#slide-10 .hands-on-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 980px;
    height: auto;
    flex: none;
    gap: 1.35rem;
}

#slide-10 .demo-hero {
    width: 100%;
}

#slide-10 .demo-steps {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.15rem;
}

#slide-10 .hands-on-step {
    width: 100%;
}

/* General pointer events for interactive elements */
.slide-content * {
    pointer-events: auto;
}

/* Enhanced Visualization Panels */
.viz-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.viz-panel:hover {
    border-color: rgba(10, 132, 255, 0.4);
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.15);
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-blue);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tree-node {
    cursor: pointer;
}

.tree-node:hover circle {
    r: 7;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Metric Cards for Performance Dashboard */
.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
    border-color: var(--brand-blue);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* BGP Stats - Frosted Glass */
.bgp-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 132, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bgp-stat:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.18) 0%, rgba(10, 132, 255, 0.08) 100%);
    box-shadow: 0 12px 40px rgba(10, 132, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bgp-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.bgp-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
    font-family: 'Courier New', monospace;
}

/* Crypto Steps for HTTPS Process */
.crypto-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.crypto-step:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.step-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Timeline for SSL Certificate Lifecycle */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0A84FF, #10b981);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.3);
    border: 3px solid #0A84FF;
}

.timeline-dot.active {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 15px #10b981;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--brand-blue);
    font-family: 'Courier New', monospace;
}

/* Security Score Circle */
.security-score {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(16, 185, 129, 0.2));
    border: 3px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.3);
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.score-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.score-bar {
    height: 6px;
    border-radius: 3px;
    transition: width 1s ease;
}

/* =========================================
   TEACHING LAYOUT STYLES
   ========================================= */

/* Teaching Grid Layout */
.teaching-layout {
    padding: 2rem 3rem !important;
}

.teaching-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 180px);
    margin: 0 auto;
}

/* Animation Panel */
.principle-animation-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.principle-animation-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 132, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* HTTP Flow Container */
.http-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
}

/* Flow Nodes */
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.flow-node .node-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.flow-node .node-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.flow-node .node-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

.browser-node {
    border-color: rgba(10, 132, 255, 0.5);
    background: rgba(10, 132, 255, 0.1);
}

.server-node {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

/* Server Process Steps */
.server-process {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: max-content;
}

.process-step {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.process-step.active {
    background: rgba(10, 132, 255, 0.3);
    border-color: #0A84FF;
    color: #fff;
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.4);
}

.process-step.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: rgba(16, 185, 129, 0.8);
}

/* Packets */
.packet {
    position: absolute;
    left: 140px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    opacity: 0;
    z-index: 5;
    min-width: 100px;
    text-align: center;
}

.request-packet {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.9), rgba(59, 130, 246, 0.9));
    border: 2px solid #0A84FF;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}

.response-packet {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.9));
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.packet-header {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.packet-content {
    display: flex;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.packet-content .method {
    color: #fbbf24;
}

.packet-content .path {
    color: #fff;
}

.packet-content .status {
    color: #a3e635;
}

.packet-content .content-type {
    color: rgba(255, 255, 255, 0.8);
}

/* Action Button */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0A84FF, #3b82f6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4);
}

.action-btn.primary-glow {
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.3);
}

.action-btn .btn-icon {
    font-size: 1.2rem;
}

/* Code Explanation Panel */
.code-explanation-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.explanation-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0.5;
    transform: translateX(10px);
    transition: all 0.4s ease;
}

.explanation-card.active {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(10, 132, 255, 0.4);
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.15);
}

.explanation-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #fff;
}

.code-block-modern {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
}

.code-block-modern code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-annotation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.annotation-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge.method {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.badge.path {
    background: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.badge.header {
    background: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}

.badge.status {
    background: rgba(163, 230, 53, 0.3);
    color: #a3e635;
}

.badge.type {
    background: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.badge.body {
    background: rgba(244, 114, 182, 0.3);
    color: #f472b6;
}

/* Key Points */
.key-points {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.key-points h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #10b981;
}

.point-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.point-item.highlight {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.point-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.point-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.point-text strong {
    color: #10b981;
}

/* =========================================
   SLIDE 4: URL MAPPING STYLES
   ========================================= */

.url-mapping-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.url-input-display,
.file-path-display {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.url-input-display {
    border-color: rgba(10, 132, 255, 0.4);
}

.file-path-display {
    border-color: rgba(16, 185, 129, 0.4);
}

.url-label,
.path-label,
.config-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.url-box,
.path-box {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.url-protocol {
    color: rgba(255, 255, 255, 0.4);
}

.url-domain {
    color: rgba(255, 255, 255, 0.8);
}

.url-path {
    color: #22d3ee;
    font-weight: 600;
}

.path-root {
    color: #f59e0b;
}

.path-separator {
    color: rgba(255, 255, 255, 0.3);
}

.path-file {
    color: #22d3ee;
    font-weight: 600;
}

/* Mapping Arrow */
.mapping-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.arrow-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    position: relative;
}

.arrow-line::after {
    content: '▼';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.arrow-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Config Box */
.config-box {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.config-code {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.config-code .highlight-root {
    color: #fbbf24;
    transition: all 0.3s ease;
}

/* URL Input Section */
.url-input-section {
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

.url-input-section label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.input-prefix {
    padding: 0.8rem 0.5rem 0.8rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.path-input {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #22d3ee;
    outline: none;
    min-width: 100px;
}

.path-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.action-btn.small {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 0;
}

/* Mapping Formula */
.mapping-formula {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.formula-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formula-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.formula-equals {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

.formula-plus {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.formula-part {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.root-part {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.url-part {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

/* Example Box */
.example-box {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.example-row {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.example-row code {
    color: #22d3ee;
}

.example-result {
    color: #10b981;
    font-weight: 600;
}

.example-result code {
    color: #10b981;
}

/* Warning Panel */
.warning-panel {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.warning-panel h4 {
    color: #ef4444 !important;
}

.warning-panel .point-num {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.warning-panel .point-text strong {
    color: #ef4444;
}

.warning-panel.warning-active {
    animation: warningPulse 0.5s ease-in-out 3;
}

@keyframes warningPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }

    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    }
}

/* Badge variants */
.badge.root {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.badge.index {
    background: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* =========================================
   SLIDE 5: REVERSE PROXY FLOW STYLES
   ========================================= */

.proxy-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    padding: 2rem;
}

.proxy-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    min-width: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.proxy-node .node-icon {
    font-size: 2.5rem;
}

.proxy-node .node-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.proxy-node .node-ip {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.client-node {
    border-color: rgba(139, 92, 246, 0.5);
}

.nginx-node {
    border-color: rgba(10, 132, 255, 0.5);
}

.backend-node {
    border-color: rgba(16, 185, 129, 0.5);
}

.proxy-action {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.6rem;
    background: rgba(10, 132, 255, 0.8);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    white-space: nowrap;
}

/* Flow Arrows */
.flow-arrow {
    display: flex;
    align-items: center;
    position: relative;
    width: 80px;
}

.arrow-body {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    position: relative;
}

.arrow-body::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.packet-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.6rem;
    background: rgba(10, 132, 255, 0.9);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.bubble-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.bubble-detail {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

.modified-arrow .packet-bubble {
    background: rgba(16, 185, 129, 0.9);
}

/* =========================================
   SLIDE 6: ROUTE MATCHING STYLES
   ========================================= */

.route-demo-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 550px;
}

.route-input-section {
    width: 100%;
}

.route-input-section label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.route-matcher {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.route-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.route-rule.matched {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.route-rule.skipped {
    opacity: 0.4;
}

.route-rule.checking {
    border-color: #0A84FF;
}

.rule-pattern {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #f59e0b;
    min-width: 120px;
}

.rule-target {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
}

.rule-result {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.route-result-display {
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.result-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #fff;
}

.tryfiles-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.step-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1) 0%, rgba(10, 132, 255, 0.03) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
}

.step-item:hover {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.06) 100%);
    transform: translateX(4px);
}

.step-item code {
    color: #22d3ee;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.info-note {
    font-size: 0.85rem;
    color: #10b981;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-note::before {
    content: '💡';
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =========================================
   SLIDE 7: LOAD BALANCING STYLES
   ========================================= */

.lb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
}

.request-queue {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 80px;
}

.queue-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 100px;
}

.queue-item {
    padding: 0.4rem 0.8rem;
    background: rgba(10, 132, 255, 0.8);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    text-align: center;
}

.lb-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem;
    background: rgba(10, 132, 255, 0.1);
    border: 2px solid rgba(10, 132, 255, 0.5);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.lb-algorithm {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: #0A84FF;
    padding: 0.2rem 0.5rem;
    background: rgba(10, 132, 255, 0.2);
    border-radius: 4px;
}

.backend-servers {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.server-item.active {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    transform: scale(1.05);
}

.server-name {
    font-size: 0.85rem;
    color: #fff;
}

.server-load {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #10b981;
}

.lb-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.algo-select {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.algo-select:focus {
    border-color: #0A84FF;
}

.action-btn.running {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* =========================================
   SLIDE 8 & 9: ACCESS & SSL STYLES
   ========================================= */

/* Network Layer Visualization */
.network-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: translateX(-20px);
}

.layer-item.active {
    opacity: 1;
    transform: translateX(0);
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.1);
}

.layer-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0A84FF;
}

.layer-info {
    flex: 1;
}

.layer-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.layer-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* TLS Handshake Animation */
.tls-handshake {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 550px;
}

.handshake-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0.4;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.handshake-step.active {
    opacity: 1;
    transform: translateY(0);
    background: rgba(10, 132, 255, 0.15);
    border-color: #0A84FF;
}

.handshake-step.completed {
    opacity: 1;
    transform: translateY(0);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
}

.step-arrow {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.step-arrow.right {
    color: #0A84FF;
}

.step-arrow.left {
    color: #10b981;
}

.handshake-content {
    flex: 1;
}

.handshake-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.handshake-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

/* Certificate Card */
.cert-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cert-icon {
    font-size: 2rem;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.cert-label {
    color: rgba(255, 255, 255, 0.6);
}

.cert-value {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

/* Command Steps */
.command-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cmd-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0A84FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cmd-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.cmd-body {
    padding: 1rem;
}

.cmd-body code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #10b981;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem;
    border-radius: 6px;
    overflow-x: auto;
}

/* Layer Badges */
.layer-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.layer-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.layer-badge.mid {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.layer-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Warning Info Note - Frosted Glass */
.info-note.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.info-note.warning::before {
    content: '⚠️';
}

/* Step Arrow Variants */
.step-arrow.both {
    color: #10b981;
}

/* Additional layer styling */
.layer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: translateX(-20px);
}

.layer-item.active {
    opacity: 1;
    transform: translateX(0);
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .teaching-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .principle-animation-panel {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .teaching-layout {
        padding: 1rem !important;
    }

    .slide-title {
        font-size: 1.8rem !important;
    }

    .proxy-flow-container,
    .lb-container {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        width: 40px;
    }
}

/* =========================================
   FULLSCREEN LAYOUT SYSTEM
   ========================================= */

.fullscreen-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 1.5rem 2rem !important;
    overflow: hidden;
}

.slide-title.centered {
    text-align: center;
    margin-bottom: 1rem;
}

/* =========================================
   SLIDE 3: HTTP FULLSCREEN DEMO
   ========================================= */

.http-fullscreen-demo {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 顶部代码条 */
.http-code-strip {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.code-panel {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.code-panel.active {
    border-color: #0A84FF;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.3);
}

.request-panel {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.05) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 132, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.request-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0A84FF, #3b82f6);
    border-radius: 12px 0 0 12px;
}

.response-panel {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.response-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #10b981, #22c55e);
    border-radius: 12px 0 0 12px;
}

.panel-header {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-live {
    margin: 0;
    padding: 0.8rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* 主动画区域 */
.http-main-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
    min-height: 250px;
    position: relative;
}

/* 端点节点 */
.endpoint-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.4s ease;
    z-index: 10;
}

.client-endpoint {
    border-color: rgba(10, 132, 255, 0.5);
}

.server-endpoint {
    border-color: rgba(16, 185, 129, 0.5);
}

.endpoint-node.active {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(10, 132, 255, 0.5);
}

.ep-icon {
    font-size: 3rem;
}

.ep-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.ep-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 连接区域 */
.connection-zone {
    flex: 1;
    max-width: 300px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conn-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
            rgba(10, 132, 255, 0.3),
            rgba(255, 255, 255, 0.1),
            rgba(16, 185, 129, 0.3));
    position: relative;
}

.conn-line::before,
.conn-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.conn-line::before {
    left: 0;
    background: #0A84FF;
}

.conn-line::after {
    right: 0;
    background: #10b981;
}

/* 飞行数据包 */
.flying-packet {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    opacity: 0;
    z-index: 20;
}

.request-fly {
    background: linear-gradient(135deg, #0A84FF, #3b82f6);
    left: 0;
    top: -30px;
}

.response-fly {
    background: linear-gradient(135deg, #10b981, #22c55e);
    right: 0;
    bottom: -30px;
}

.pkt-icon {
    font-size: 1rem;
}

.pkt-text {
    color: #fff;
    font-weight: 500;
}

/* 服务器区域 */
.server-zone {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* 服务器处理时间线 */
.server-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 280px;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0.4;
    transform: translateX(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-step.active {
    opacity: 1;
    transform: translateX(0);
    background: rgba(10, 132, 255, 0.15);
    border-color: #0A84FF;
}

.timeline-step.completed {
    opacity: 1;
    transform: translateX(0);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
}

.ts-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ts-content {
    flex: 1;
}

.ts-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.ts-detail {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.ts-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #0A84FF, #10b981);
    transition: width 0.3s ease;
}

.timeline-step.active .ts-progress {
    width: 100%;
}

/* 控制区域 */
.http-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.action-btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 洞察筹码 */
.key-insights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.insight-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.insight-chip.active {
    opacity: 1;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
}

.chip-icon {
    font-size: 1rem;
}

/* =========================================
   SLIDE 5: PROXY FULLSCREEN DEMO
   ========================================= */

.proxy-fullscreen-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 域名选择器 */
.domain-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.selector-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.domain-tabs {
    display: flex;
    gap: 0.5rem;
}

.domain-tab {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.domain-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.domain-tab.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0A84FF;
    color: #fff;
}

/* 主流程 */
.proxy-main-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex: 1;
    padding: 1rem 0;
}

/* 流程端点 */
.flow-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(10, 132, 255, 0.4);
    border-radius: 16px;
    min-width: 180px;
}

.fe-icon {
    font-size: 2.5rem;
}

.fe-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.fe-request {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fe-request code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #22d3ee;
}

/* 连接器 */
.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    position: relative;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(10, 132, 255, 0.5), rgba(16, 185, 129, 0.5));
}

.connector-arrow {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Nginx 路由器 */
.nginx-router {
    display: flex;
    flex-direction: column;
    background: rgba(10, 132, 255, 0.1);
    border: 2px solid rgba(10, 132, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
    min-width: 220px;
}

.router-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(10, 132, 255, 0.2);
    font-weight: 600;
}

.router-icon {
    font-size: 1.2rem;
}

.route-rules {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem;
}

.route-rule-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.route-rule-item.active {
    opacity: 1;
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.rule-domain {
    color: #f59e0b;
}

.rule-arrow {
    color: rgba(255, 255, 255, 0.5);
}

.rule-target {
    color: #10b981;
}

/* 后端服务集群 */
.backend-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.backend-service {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.backend-service.active {
    opacity: 1;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.svc-icon {
    font-size: 1.5rem;
}

.svc-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.svc-port {
    font-size: 0.75rem;
    color: #10b981;
    font-family: 'JetBrains Mono', monospace;
}

/* 配置条 */
.proxy-config-strip {
    display: flex;
    gap: 1.5rem;
}

.config-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.config-title {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-code-full {
    margin: 0;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
    overflow-x: hidden;
}

.insights-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 300px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.insight-item.active {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.insight-icon {
    font-size: 1.1rem;
}

/* 控制按钮 */
.proxy-controls {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

/* =========================================
   SLIDE 7: LOAD BALANCING FULLSCREEN
   ========================================= */

.lb-fullscreen-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 控制面板 */
.lb-control-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.strategy-tabs {
    display: flex;
    gap: 0.5rem;
}

.strategy-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.strategy-tab.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0A84FF;
    color: #fff;
}

.tab-icon {
    font-size: 1rem;
}

.concurrency-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.concurrency-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0A84FF;
    border-radius: 50%;
    cursor: pointer;
}

.concurrency-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A84FF;
    min-width: 24px;
    text-align: center;
}

/* 主视觉区域 */
.lb-main-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
    padding: 1rem;
}

/* 请求来源 */
.request-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(10, 132, 255, 0.1);
    border: 2px solid rgba(10, 132, 255, 0.4);
    border-radius: 16px;
    position: relative;
}

.source-icon {
    font-size: 2.5rem;
}

.source-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.request-burst {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}

/* 负载均衡核心 */
.lb-core {
    display: flex;
    flex-direction: column;
    background: rgba(10, 132, 255, 0.15);
    border: 2px solid rgba(10, 132, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
    min-width: 200px;
}

.lb-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(10, 132, 255, 0.2);
    font-weight: 600;
}

.lb-icon {
    font-size: 1.5rem;
}

.lb-title {
    font-size: 1rem;
}

.strategy-display {
    padding: 1rem;
    text-align: center;
}

.strategy-display .strategy-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A84FF;
    margin-bottom: 0.3rem;
}

.strategy-display .strategy-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 服务器集群 */
.server-cluster {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.server-node {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.server-node.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.srv-icon {
    font-size: 1.3rem;
}

.srv-info {
    flex: 1;
}

.srv-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.srv-addr {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.srv-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-bar {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #22c55e);
    transition: width 0.3s ease;
}

.stat-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    min-width: 20px;
}

/* 信息条 */
.lb-info-strip {
    display: flex;
    gap: 1rem;
}

.strategy-cards {
    display: flex;
    gap: 0.6rem;
    flex: 1;
}

.strat-card {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.strat-card.active {
    opacity: 1;
    background: rgba(10, 132, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.4);
}

.strat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.strat-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.config-mini {
    min-width: 200px;
}

.config-code-mini {
    margin: 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: #e2e8f0;
    line-height: 1.4;
}

/* 动作栏 */
.lb-action-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.action-btn.stop-mode {
    background: rgba(255, 59, 48, 0.2) !important;
    border-color: #FF3B30 !important;
    color: #FF3B30 !important;
}

.action-btn.stop-mode:hover {
    background: rgba(255, 59, 48, 0.3) !important;
}

/* =========================================
   SLIDE 9: TLS HANDSHAKE FULLSCREEN
   ========================================= */

.tls-fullscreen-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 主视觉区域 */
.tls-main-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex: 1;
    padding: 1rem;
}

/* TLS 端点 */
.tls-endpoint {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
    min-width: 180px;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.client-side {
    background: rgba(10, 132, 255, 0.1);
    border: 2px solid rgba(10, 132, 255, 0.4);
}

.server-side {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.tls-endpoint.active {
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.5);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.endpoint-header .ep-icon {
    font-size: 1.5rem;
}

.endpoint-header .ep-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.crypto-state {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.state-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
}

.state-label {
    color: rgba(255, 255, 255, 0.6);
}

.state-value {
    font-family: 'JetBrains Mono', monospace;
    color: #22d3ee;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cert-badge.active {
    background: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* 握手流程 */
.handshake-flow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    min-width: 280px;
}

.hs-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.hs-message.active {
    opacity: 1;
    transform: scale(1);
    background: rgba(10, 132, 255, 0.15);
    border-color: #0A84FF;
}

.hs-message.completed {
    opacity: 1;
    transform: scale(1);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
}

.hs-message[data-direction="right"] .msg-arrow {
    color: #0A84FF;
}

.hs-message[data-direction="left"] .msg-arrow {
    color: #10b981;
}

.hs-message[data-direction="both"] .msg-arrow {
    color: #f59e0b;
}

.msg-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.msg-content {
    flex: 1;
}

.msg-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.msg-data {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 信息条 */
.tls-info-strip {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 250px;
    transition: all 0.4s ease;
}

.security-indicator.secure {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.indicator-icon {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.indicator-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cert-info-card {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cert-mini-header {
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-mini-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.certbot-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #22d3ee;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.encryption-card {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 200px;
}

.enc-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.enc-suite {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #10b981;
}

.enc-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.strength-bar {
    width: 60px;
    height: 6px;
    background: linear-gradient(to right, #10b981, #22c55e);
    border-radius: 3px;
}

.strength-label {
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 600;
}

/* 控制区 */
.tls-controls {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}
/* =========================================
   TLS ANIMATION ENHANCED STYLES
   ========================================= */

/* Step Explanation Styles */
.security-indicator {
    min-width: 350px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
}

.step-explain-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.step-explain-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.step-explain-tip {
    font-size: 0.8rem;
    color: #22d3ee;
    padding: 0.5rem 0.8rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Flying TLS Packet */
.flying-tls-packet {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flying-tls-packet.right {
    background: linear-gradient(135deg, #0A84FF, #3b82f6);
    border: 2px solid rgba(10, 132, 255, 0.8);
}

.flying-tls-packet.left {
    background: linear-gradient(135deg, #10b981, #22c55e);
    border: 2px solid rgba(16, 185, 129, 0.8);
}

.flying-tls-packet .packet-icon {
    font-size: 1.1rem;
}

.flying-tls-packet .packet-text {
    color: #fff;
}

/* Handshake Flow Container */
.handshake-flow {
    position: relative;
}

/* Enhanced State Value Animation */
.state-value {
    transition: all 0.3s ease;
}

.crypto-state {
    transition: box-shadow 0.3s ease;
}

/* Code Panel Position Fix */
.code-panel {
    position: relative;
}
