/* ===================================
   Order Flow Knowledge Base Styles
   =================================== */

/* ===================================
   Bookmap Heatmap Styles
   =================================== */

.bookmap-wrapper {
    margin: 2rem 0;
    background: rgba(10, 14, 26, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.bookmap-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.bookmap-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.control-value {
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-live {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-animation 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

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

.bookmap-container {
    position: relative;
    background: #0a0e1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 1.5rem 0;
}

.bookmap-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.legend-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.intensity-scale {
    display: flex;
    gap: 2px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.scale-box {
    flex: 1;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.legend-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-items li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-marker {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.legend-marker.current-price {
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.legend-marker.high-volume {
    background: rgb(255, 255, 100);
}

.legend-marker.absorption {
    background: rgb(0, 212, 255);
}

.bookmap-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insight-card.premium {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.insight-card.premium:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.insight-card.premium .insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-card.premium .insight-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.insight-card.premium .insight-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.article-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid #00d4ff;
    border-radius: 8px;
}

/* Featured Visual Card */
.article-card.featured-visual {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(31, 41, 55, 0.4));
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

/* Footprint Container */
.footprint-container {
    margin: 2rem 0;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.footprint-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group label {
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.footprint-select {
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.footprint-select:hover {
    border-color: var(--color-electric-blue);
}

.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-option {
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-option:hover {
    border-color: var(--color-electric-blue);
    color: var(--color-electric-blue);
}

.toggle-option.active {
    background: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    color: var(--color-bg);
}

/* Footprint Chart */
.footprint-chart {
    min-height: 500px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.footprint-grid {
    display: grid;
    grid-template-columns: 80px repeat(10, 1fr);
    gap: 2px;
    font-family: var(--font-mono);
    min-width: 900px;
}

.footprint-header {
    display: contents;
}

.price-label-fp {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.time-label-fp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footprint-cell {
    min-height: 60px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.footprint-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: brightness(1);
    transition: filter 0.3s;
}

.footprint-cell:hover::before {
    filter: brightness(1.3);
}

.footprint-cell:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.cell-buy {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cell-sell {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cell-delta {
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Dynamic background colors based on delta */
.footprint-cell.strong-buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.6));
    border: 1px solid rgba(16, 185, 129, 0.8);
}

.footprint-cell.buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.footprint-cell.neutral {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.footprint-cell.sell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.footprint-cell.strong-sell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.6));
    border: 1px solid rgba(239, 68, 68, 0.8);
}

/* Footprint Legend */
.footprint-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.legend-group h4 {
    color: var(--color-electric-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-scale {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scale-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.scale-mid {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 0 0.5rem;
}

.gradient-bar {
    width: 100px;
    height: 12px;
    border-radius: 6px;
}

.sell-gradient {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.3), rgba(239, 68, 68, 0.8));
}

.buy-gradient {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.8));
}

.legend-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.red {
    background: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.legend-dot.green {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.legend-dot.intense {
    background: radial-gradient(circle, rgba(0, 212, 255, 1), rgba(0, 212, 255, 0.3));
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

/* Footprint Insights */
.footprint-insights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.insight-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 14, 26, 0.6);
    border-left: 4px solid var(--color-electric-blue);
    border-radius: 12px;
    align-items: flex-start;
}

.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.insight-text strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* ===================================
   Order Flow Knowledge Base Styles
   =================================== */

.orderflow-main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* Hero Section */
.orderflow-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.orderflow-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.orderflow-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orderflow-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-electric-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-mono);
}

.orderflow-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Table of Contents */
.toc-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.toc-container {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    margin-bottom: 2.5rem;
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.toc-item {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.toc-item:hover {
    border-color: var(--color-electric-blue);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.toc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.toc-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.toc-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Knowledge Container */
.knowledge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.knowledge-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--color-electric-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

/* Article Cards */
.article-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.article-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.article-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h4 {
    color: var(--color-electric-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-electric-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--color-electric-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.insight-callout {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.key-point {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid #F97316;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.formula-box {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-family: var(--font-mono);
    text-align: center;
}

.formula-box code {
    font-size: 1.1rem;
    color: var(--color-electric-blue);
}

/* Indicators */
.positive-indicator {
    color: #10B981;
    font-weight: 600;
}

.negative-indicator {
    color: #EF4444;
    font-weight: 600;
}

.neutral-indicator {
    color: #F59E0B;
    font-weight: 600;
}

.strong-indicator {
    color: #3B82F6;
    font-weight: 600;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-item {
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid;
    border-radius: 12px;
    padding: 2rem;
}

.comparison-item.aggressive {
    border-color: #EF4444;
}

.comparison-item.passive {
    border-color: #10B981;
}

.comparison-item h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.comparison-item p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.comparison-item.aggressive ul li::before {
    color: #EF4444;
}

.comparison-item.passive ul li::before {
    color: #10B981;
}

/* Order Book Visual */
.orderbook-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    background: rgba(10, 14, 26, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.orderbook-side {
    padding: 1rem;
    border-radius: 8px;
}

.orderbook-side.asks {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.orderbook-side.bids {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.orderbook-side h4 {
    margin-bottom: 1rem;
    text-align: center;
}

.orderbook-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orderbook-row:last-child {
    border-bottom: none;
}

.orderbook-spread {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.orderbook-spread span {
    display: block;
    font-size: 1.5rem;
    color: var(--color-electric-blue);
    margin-top: 0.5rem;
}

/* Spread Analysis */
.spread-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.spread-scenario {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
}

.spread-scenario.tight {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
}

.spread-scenario.wide {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

.spread-scenario h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Pattern Visual */
.pattern-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pattern-step {
    flex: 1;
    min-width: 200px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--color-electric-blue);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.pattern-arrow {
    font-size: 2rem;
    color: var(--color-electric-blue);
    font-weight: 700;
}

/* Characteristics Grid */
.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.char-item {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.char-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.char-item h5 {
    color: var(--color-electric-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.char-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Order Types Grid */
.order-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.order-type-card {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.order-type-card h4 {
    color: var(--color-electric-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.order-desc {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.order-type-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Tools List */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-item {
    background: rgba(10, 14, 26, 0.6);
    border-left: 4px solid var(--color-electric-blue);
    border-radius: 8px;
    padding: 1.5rem;
}

.tool-item h4 {
    color: var(--color-electric-blue);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.tool-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-link {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.resource-link h4 {
    color: var(--color-electric-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.resource-link ul {
    list-style: none;
    padding: 0;
}

.resource-link ul li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-link ul li:last-child {
    border-bottom: none;
}

.external-link {
    display: inline-block;
    color: var(--color-electric-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.external-link:hover {
    color: var(--color-teal);
    transform: translateX(5px);
}

.resource-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-teal));
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.toc-item.active {
    border-color: var(--color-electric-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .orderflow-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .toc-section {
        padding: 2rem 1.5rem;
    }

    .toc-container {
        padding: 2rem;
    }

    .knowledge-container {
        padding: 1.5rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .comparison-grid,
    .characteristics-grid,
    .order-types-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .pattern-visual {
        flex-direction: column;
    }

    .pattern-arrow {
        transform: rotate(90deg);
    }
}
