html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

:root {
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --dark-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

.ip-sim-page {
    --dark-bg: #020617;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-color: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

.ip-sim-page {
    background:
        radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        #020617;
    background-attachment: fixed;
    color: var(--text-main);
    position: relative;
    /* Lock for PhET scaling */
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: none;
    overscroll-behavior: none;
}

/* PhET Stage — the scalable container */
#phet-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    overflow-y: auto;   /* Scroll inside the scaled stage */
    overflow-x: hidden;
    box-sizing: border-box;
}


.ip-sim-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.ip-sim-page #bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

#sim-app {
    position: relative;
    z-index: 10;
    padding-top: 120px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.sim-header {
    text-align: center;
    margin-bottom: 40px;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ip-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Input Section */
.input-card {
    margin-bottom: 30px;
}

.octet-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.input-dot {
    font-size: 2rem;
    font-weight: 800;
    color: #475569;
}

/* IP Analyzer Input Section */
.ip-input-row {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.ip-main-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--input-bg);
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-main-input i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    opacity: 0.8;
}

.ip-main-input input {
    background: transparent;
    border: none;
    color: var(--input-color);
    padding: 15px 0;
    width: 100%;
    outline: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.ip-main-input:focus-within {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.input-card label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    background: var(--input-bg);
    padding: 8px 8px 8px 20px;
    border-radius: 12px;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.input-wrapper i {
    color: var(--text-muted);
}

.input-wrapper input {
    background: none;
    border: none;
    color: var(--input-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    width: 100%;
    outline: none;
}

.btn-primary-cyan {
    background: var(--accent-cyan);
    color: white;
    padding: 0.5rem 1.5rem;
}

.btn-primary-cyan:hover {
    background: #22d3ee;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.error-msg {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 10px;
    height: 1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card.full-width {
    grid-column: span 2;
}

.decider-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-icon.version-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.stat-icon.ipv6-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

/* Port Chips */
.port-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.port-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.port-chip.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.port-chip i {
    font-size: 0.75rem;
}

/* IPv6 Breakdown */
.ipv6-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.ipv6-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    border-bottom: 2px solid var(--accent-cyan);
}

.ipv6-block-label {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.ipv6-block-val {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-weight: 600;
}

.rule-text {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #cbd5e1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.class-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #3b82f6;
}

.mask-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.viz-card {
    grid-column: span 2;
}

.viz-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #94a3b8;
}

.ip-visualization {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.octet-group {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.octet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.octet {
    padding: 15px 20px;
    min-width: 80px;
    text-align: center;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.octet-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
}

.octet.network-part {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
}

.network-part+.octet-label {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.octet.host-part {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
    color: var(--accent-pink);
}

.host-part+.octet-label {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
}

.dot {
    font-size: 2rem;
    color: #475569;
    margin-top: 10px;
}

.viz-legend {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.network-box {
    background: var(--accent-cyan);
}

.host-box {
    background: var(--accent-pink);
}

.detail-card {
    grid-column: span 2;
    padding: 1.5rem 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.detail-label {
    color: #94a3b8;
    font-weight: 600;
}

.detail-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.highlight-cyan {
    color: var(--accent-cyan);
}

.highlight-pink {
    color: var(--accent-pink);
}

.binary-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.binary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-outline-cyan {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 15px;
    background: transparent;
    font-size: 0.8rem;
}

.btn-outline-cyan:hover {
    background: rgba(6, 182, 212, 0.1);
}

.binary-explanation {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #94a3b8;
}

.conv-step {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.conv-step h4 {
    color: var(--accent-cyan);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.math-logic {
    font-family: monospace;
    color: #e2e8f0;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.binary-display {
    width: 100%;
    background: #020617;
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1rem;
    color: #64748b;
    letter-spacing: 2px;
    word-break: break-all;
}

.binary-octet {
    color: var(--accent-cyan);
}

.binary-octet.host {
    color: var(--accent-pink);
}

/* Tabs */
.sim-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: var(--accent-cyan);
    color: white;
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* DNS Simulation Layout */
.domain-input-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.domain-input {
    flex: 1;
}

.dns-simulation-area {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.visualization-card {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.dns-viz {
    width: 100%;
    height: 100%;
    position: relative;
}

.connection-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.conn-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3;
    stroke-dasharray: 8, 8;
    transition: all 0.5s ease;
}

.conn-line.active {
    stroke: var(--accent-cyan);
    stroke-width: 4;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.node-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.5s ease;
    z-index: 5;
}

.node {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.node-container span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.node-container.active .node {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.1);
}

#node-computer {
    left: 2%;
    top: 45%;
}

#node-dns {
    left: 24%;
    top: 12%;
}

#node-router {
    left: 50%;
    top: 75%;
}

#node-webserver {
    right: 2%;
    top: 45%;
}

.node-ip {
    font-size: 0.65rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
    color: #64748b;
}

/* Packet wrapper and dot */
.packet-wrapper {
    position: absolute;
    z-index: 10;
    display: none;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.packet-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
}

.packet-label {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: bounceY 1s ease infinite alternate;
}

.packet-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: white;
}

@keyframes bounceY {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Indicators */
.search-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: #fbbf24;
    border-radius: 50%;
    display: none;
    border: 2px solid #111;
}

.node-container.searching .search-indicator {
    display: block;
    animation: rotate 1s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ping-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--accent-cyan);
    opacity: 0;
    z-index: -1;
}

.node-container.active .ping-ring {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.dns-cache-status {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dns-cache-status.searching {
    color: #fbbf24;
    border-color: #fbbf24;
}

.dns-cache-status.miss {
    color: #ef4444;
    border-color: #ef4444;
}

.dns-cache-status.hit {
    color: #10b981;
    border-color: #10b981;
}

/* Logs and Steps */
.log-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #94a3b8;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    color: #64748b;
    border-left: 3px solid transparent;
}

.step-item.active {
    background: rgba(6, 182, 212, 0.05);
    color: white;
    border-left-color: var(--accent-cyan);
}

.step-item.completed {
    color: #94a3b8;
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
}

.current-info-box {
    margin-top: 40%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #cbd5e1;
    min-height: 80px;
}

/* Website Mockup */
.website-mockup-wrapper {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.website-mockup-wrapper {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.browser-header {
    background: #e2e8f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #cbd5e1;
}

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

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.address-bar {
    background: #ffffff;
    flex: 1;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: #475569;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-bar::before {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10b981;
    font-size: 0.75rem;
}

.browser-body {
    background: #f8fafc;
    min-height: 450px;
    position: relative;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

/* Mock Website Content Styles */
.mock-page {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

.mock-logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.mock-search-box {
    width: 100%;
    max-width: 580px;
    height: 45px;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: none;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;
    transition: box-shadow 0.2s;
}

.mock-search-box:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    border-color: rgba(223, 225, 229, 0);
}

.mock-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    color: #4b5563;
    font-size: 0.9rem;
}

.mock-hero {
    text-align: center;
    max-width: 800px;
}

.mock-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111827;
}

.mock-hero p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .dns-simulation-area {
        grid-template-columns: 1fr;
    }

    .visualization-card {
        height: 300px;
    }
}

/* Info Button Positioning */
.relative-pos {
    position: relative;
}

.hub-info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hub-info-btn:hover {
    background: var(--accent-cyan);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: scale(1.1);
}

/* Knowledge Hub Overlay */
.knowledge-hub-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

.knowledge-hub-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hub-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--accent-cyan);
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

/* Knowledge Hub Styling */
.knowledge-hub {
    margin: 30px 0;
    padding: 25px;
    border-left: 5px solid var(--accent-cyan);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hub-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-term {
    display: block;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hub-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}