:root {
    --bg-color: #0d1117;
    --bglayer-color: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --accent-green: #3fb950;
    --accent-purple: #8957e5;
    --border: #30363d;

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--accent);
}

/* Background Blobs */
.blob {
    position: fixed;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.25;
    border-radius: 50%;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #1f6feb;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #8957e5;
    top: 300px;
    right: -50px;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #238636;
    bottom: 200px;
    left: 30%;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

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

.badge {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.badge i { color: #f85149; }

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.hero-text h1 span {
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(88, 166, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bglayer-color);
    border-color: var(--text-secondary);
}

/* Code Window */
.code-window {
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.window-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

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

.window-title {
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transform: translateX(-20px);
}

.code-window pre {
    margin: 0 !important;
    padding: 1.5rem !important;
    background: transparent !important;
    overflow-x: auto !important;
}

.code-window code {
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.dark-section {
    background: #010409;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
}

/* Glass Card */
.glass-card {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.glass-card h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.notice-card p {
    margin-bottom: 1rem;
}

/* Impact Metrics */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.impact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.4);
}

.impact-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.impact-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.impact-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Story Grid (What I Build) */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.story-block {
    text-align: center;
    padding: 1.5rem;
}

.story-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.story-block:hover .story-icon {
    transform: scale(1.1);
}

.story-block h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.story-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Project Cards */
.project-card {
    margin-bottom: 2rem;
}

.project-header {
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.25);
    color: var(--accent-green);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.project-header h3 {
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.project-header h3 i {
    color: var(--accent);
}

.project-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-highlights {
    margin-bottom: 1.5rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.highlight i {
    color: var(--accent-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Showcase Items */
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.showcase-item.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.showcase-item.reverse .showcase-content { order: 2; }
.showcase-item.reverse .showcase-code { order: 1; }

.showcase-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.showcase-content h3 i {
    color: var(--accent);
    font-size: 1.2rem;
}

.showcase-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 0.93rem;
}

.features-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Tech Stack Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stack-card {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 166, 255, 0.4);
}

.stack-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.stack-card h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.tag {
    background: rgba(88, 166, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(88, 166, 255, 0.15);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.text-green { color: #3fb950; }

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 850px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 900px) {
    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
    }

    .showcase-item.reverse .showcase-content { order: 1; }
    .showcase-item.reverse .showcase-code { order: 2; }
}

@media(max-width: 800px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media(max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-subtitle {
        margin-top: -1rem;
        margin-bottom: 2rem;
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .showcase-content h3 {
        font-size: 1.3rem;
    }

    .code-window {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .code-window pre {
        padding: 1rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .code-window code {
        font-size: 0.75rem !important;
        white-space: pre;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .stack-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .blob-1 {
        width: 250px;
        height: 250px;
        top: -50px;
        left: -50px;
    }

    .blob-2, .blob-3 {
        display: none;
    }

    .showcase-item {
        margin-bottom: 4rem;
        gap: 2rem;
    }

    .features-list li {
        font-size: 0.88rem;
    }

    .project-header h3 {
        font-size: 1.2rem;
    }
}

/* =========================================
   Demo Button
   ========================================= */
.btn-demo {
    margin-top: 1.2rem;
    background: linear-gradient(135deg, rgba(88,166,255,0.15), rgba(137,87,229,0.15));
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-demo:hover {
    background: linear-gradient(135deg, rgba(88,166,255,0.25), rgba(137,87,229,0.25));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.2);
}

/* =========================================
   Demo Modal
   ========================================= */
.demo-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.demo-overlay.active {
    display: flex;
}

.demo-modal {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: modalSlideIn 0.3s ease-out;
}

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

.demo-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bglayer-color);
}

.demo-modal-header h3 {
    color: #fff;
    font-size: 1.1rem;
    flex: 1;
}

.demo-badge {
    font-size: 0.7rem;
    color: var(--accent-green);
    background: rgba(63,185,80,0.1);
    border: 1px solid rgba(63,185,80,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.demo-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: color 0.2s;
}

.demo-close:hover { color: #fff; }

.demo-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* =========================================
   Mini App Shell
   ========================================= */
.mini-app {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: #0d1117;
    border-bottom: 1px solid var(--border);
}

.mini-logo {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-logo i { color: var(--accent); }

.mini-user {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mini-tag-green {
    background: rgba(63,185,80,0.15);
    color: #3fb950;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mini-body {
    display: flex;
    flex: 1;
    padding: 1rem;
}

/* Sidebar */
.mini-sidebar {
    width: 180px;
    border-right: 1px solid var(--border);
    padding-right: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.mini-nav-item {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.mini-nav-item.active {
    background: rgba(88,166,255,0.1);
    color: var(--accent);
}

.mini-nav-item:hover { background: rgba(88,166,255,0.05); }

/* Mini Content */
.mini-content {
    flex: 1;
    overflow-y: auto;
}

.mini-content h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* Form */
.mini-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.mini-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-field input {
    width: 100%;
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

/* Checkboxes */
.mini-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.mini-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.mini-checkbox:hover { background: rgba(88,166,255,0.05); }

.mini-checkbox input[type=checkbox] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
}

.mini-selected-count {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Buttons */
.mini-btn-primary {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.mini-btn-primary:hover { background: var(--accent-hover); }

.mini-btn-sm {
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.mini-btn-sm:hover { border-color: var(--accent); color: var(--accent); }

/* Success Screen */
.mini-success-screen {
    text-align: center;
    padding: 2rem 1rem;
}

.mini-success-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.mini-success-screen h3 {
    color: #fff;
    margin-bottom: 0.3rem;
}

.mini-success-screen > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mini-progress-bar {
    background: var(--bglayer-color);
    border-radius: 10px;
    height: 8px;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    border-radius: 10px;
    width: 10%;
    transition: width 1s ease;
}

.mini-progress-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.mini-envelope-list {
    margin-top: 1.5rem;
    text-align: left;
}

.mini-env-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.mini-env-item i { color: var(--accent); }

.mini-tag-pending {
    margin-left: auto;
    background: rgba(210,153,34,0.15);
    color: #d29922;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.5s;
}

.mini-tag-complete {
    margin-left: auto;
    background: rgba(63,185,80,0.15);
    color: #3fb950;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Stats Bar */
.mini-stats-bar {
    display: flex;
    gap: 1rem;
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
}

.mini-stat {
    flex: 1;
    text-align: center;
}

.mini-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.mini-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table */
.mini-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.mini-table th {
    background: var(--bglayer-color);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.mini-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(48,54,61,0.5);
    color: var(--text-primary);
}

.mini-table tr:hover td {
    background: rgba(88,166,255,0.03);
}

.mini-status {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.mini-status-complete { background: rgba(63,185,80,0.15); color: #3fb950; }
.mini-status-pending { background: rgba(210,153,34,0.15); color: #d29922; }
.mini-status-active { background: rgba(88,166,255,0.15); color: #58a6ff; }
.mini-status-scheduled { background: rgba(137,87,229,0.15); color: #8957e5; }
.mini-status-new { background: rgba(248,81,73,0.15); color: #f85149; }

/* Pipeline */
.mini-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.pipe-stage {
    text-align: center;
    flex: 1;
}

.pipe-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(88,166,255,0.1);
    border: 1px solid rgba(88,166,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.pipe-stage h5 {
    color: var(--text-primary);
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.pipe-count {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.pipe-arrow {
    color: var(--border);
    font-size: 0.8rem;
}

/* Routing Queue */
.route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-left: 3px solid #d29922;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: border-left-color 0.5s;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.mini-btn-route {
    background: rgba(88,166,255,0.1);
    border: 1px solid rgba(88,166,255,0.2);
    color: var(--accent);
}

/* Log */
.mini-log {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    max-height: 120px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.log-entry {
    padding: 0.2rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(48,54,61,0.3);
}

.log-time {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

/* E-Signature Demo */
.esign-doc-preview {
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.esign-doc-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.esign-doc-header strong {
    color: #fff;
    font-size: 0.9rem;
}

.esign-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.esign-field {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: rgba(88,166,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.field-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.field-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    flex: 1;
}

.signature-field {
    border: 2px dashed rgba(88,166,255,0.3);
    background: rgba(88,166,255,0.05);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
}

.sig-placeholder {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.sig-placeholder:hover {
    background: rgba(88,166,255,0.1);
}

.sig-placeholder.signed {
    border: none;
    cursor: default;
}

.sig-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sig-cursive {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #1a3a5c;
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sig-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* E-Sign Status Bar */
.esign-status-bar {
    display: flex;
    gap: 0.3rem;
}

.esign-step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--bglayer-color);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: all 0.5s;
}

.esign-step.done {
    background: rgba(63,185,80,0.1);
    border-color: rgba(63,185,80,0.3);
    color: #3fb950;
}

.esign-step i {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

/* =========================================
   Modal Responsive
   ========================================= */
/* Telehealth Pipeline */
.telehealth-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
}

.tele-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-left: 3px solid var(--border);
    margin-left: 1rem;
    opacity: 0.5;
    transition: all 0.5s;
}

.tele-step.active {
    border-left-color: var(--accent-green);
    opacity: 1;
}

.tele-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bglayer-color);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.tele-step.active .tele-step-num {
    background: rgba(63,185,80,0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tele-step-info {
    flex: 1;
}

.tele-step-info h5 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.tele-step-info p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 0;
}

.tele-step .mini-status {
    flex-shrink: 0;
}

@media(max-width:768px) {
    .demo-overlay { padding: 0.5rem; }
    .demo-modal { max-height: 95vh; border-radius: 12px; }
    .mini-sidebar { display: none; }
    .mini-form-grid { grid-template-columns: 1fr; }
    .mini-checkbox-grid { grid-template-columns: 1fr; }
    .mini-pipeline { flex-direction: column; }
    .pipe-arrow { transform: rotate(90deg); }
    .mini-stats-bar { flex-wrap: wrap; }
    .esign-status-bar { flex-wrap: wrap; }
    .route-info { flex-direction: column; gap: 0.3rem; }
    .tele-step { padding: 0.5rem 0.6rem; }
    .tele-step-info h5 { font-size: 0.78rem; }
}