/* =============== VISUAL PROGRAMMING PAGE =============== */

/* Hero */
#vp-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
#vp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.vp-hero-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.vp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fbbf24;
}
.vp-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}
.gradient-text {
    background: linear-gradient(90deg, #fbbf24, #f472b6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vp-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 32px;
}
.vp-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}
.vp-hero-actions .btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}
.vp-hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}
.vp-stat {
    text-align: center;
}
.vp-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}
.vp-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Features */
#vp-features {
    padding: 80px 0;
    background: #f8fafc;
}
.vp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.vp-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.vp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.vp-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #fff;
}
.vp-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}
.vp-feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Workspace */
#vp-playground {
    padding: 80px 0;
    background: #fff;
}
.vp-workspace {
    display: grid;
    grid-template-columns: 220px 1fr 420px;
    gap: 16px;
    margin-top: 32px;
    min-height: 520px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

/* Palette */
.vp-palette {
    background: #fff;
    border-right: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.vp-palette-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.vp-palette-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}
.vp-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
    text-align: left;
}
.vp-cat-btn:hover, .vp-cat-btn.active {
    background: var(--cat-color);
    color: #fff;
}
.vp-cat-btn i {
    width: 18px;
    text-align: center;
}
.vp-palette-blocks {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Block */
.vp-block {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    transition: transform 0.15s;
    white-space: nowrap;
}
.vp-block:active {
    cursor: grabbing;
    transform: scale(1.05);
}
.vp-block[data-category="events"] { background: #FFAB19; }
.vp-block[data-category="motion"] { background: #4C97FF; }
.vp-block[data-category="looks"] { background: #9966FF; }
.vp-block[data-category="control"] { background: #FFBF00; color: #333; }
.vp-block[data-category="sound"] { background: #CF63CF; }
.vp-block[data-category="sensing"] { background: #5CB1D6; }
.vp-block[data-category="operators"] { background: #59C059; }
.vp-block[data-category="variables"] { background: #FF8C1A; }
.vp-block[data-category="pen"] { background: #0fBD8C; }

.vp-block-input {
    width: 40px;
    padding: 2px 4px;
    border: none;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.3);
    color: inherit;
}
.vp-block-input:focus {
    outline: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.5);
}
.vp-block .vp-block-remove {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.vp-drop-zone .vp-block:hover .vp-block-remove {
    display: flex;
}

/* Coding area */
.vp-coding-area {
    display: flex;
    flex-direction: column;
    background: #fff;
}
.vp-coding-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-btn-clear {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}
.vp-btn-clear:hover { background: #fef2f2; }

.vp-drop-zone {
    flex: 1;
    padding: 16px;
    min-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.vp-drop-zone.drag-over {
    background: #eff6ff;
}
.vp-drop-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 12px;
    pointer-events: none;
}
.vp-drop-placeholder i { font-size: 48px; }
.vp-drop-placeholder p { font-size: 14px; }

/* Stage */
.vp-stage-panel {
    background: #fff;
    border-left: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.vp-stage-header {
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.vp-stage-controls {
    display: flex;
    gap: 6px;
}
.vp-btn-run, .vp-btn-stop, .vp-btn-reset {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.vp-btn-run { background: #22c55e; color: #fff; }
.vp-btn-run:hover { background: #16a34a; }
.vp-btn-stop { background: #ef4444; color: #fff; }
.vp-btn-stop:hover { background: #dc2626; }
.vp-btn-stop:disabled { opacity: 0.5; cursor: not-allowed; }
.vp-btn-reset { background: #e2e8f0; color: #475569; }
.vp-btn-reset:hover { background: #cbd5e1; }

.vp-stage {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a0533, #2d1b69 50%, #1e3a8a);
    overflow: hidden;
    min-height: 300px;
}
#vp-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
.vp-sprite {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: none;
}
.vp-sprite-img {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.vp-sprite-speech {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}
.vp-sprite-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.vp-sprite-info {
    padding: 10px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    background: #f8fafc;
    gap: 8px;
    flex-wrap: wrap;
}
.vp-sprite-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-sprite-selector select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}
.vp-sprite-coords {
    display: flex;
    gap: 16px;
    color: #64748b;
}

/* Levels Panel */
.vp-levels-panel {
    margin-top: 32px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}
.vp-levels-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-levels-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.vp-score-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
}
.vp-score-badge i { color: #fbbf24; }
.vp-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 20px;
}
.vp-level-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.vp-level-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}
.vp-level-card.active {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.vp-level-card.completed {
    border-color: #22c55e;
    background: #f0fdf4;
}
.vp-level-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.vp-level-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 10px;
    color: #64748b;
}
.vp-level-card.active .vp-level-number { background: #7c3aed; color: #fff; }
.vp-level-card.completed .vp-level-number { background: #22c55e; color: #fff; }
.vp-level-card.locked .vp-level-number { background: #cbd5e1; color: #94a3b8; }
.vp-level-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.vp-level-desc {
    font-size: 12px;
    color: #64748b;
}
.vp-level-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.vp-level-card.completed .vp-level-badge {
    background: #22c55e;
    color: #fff;
}
.vp-level-reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
}

/* Level mission overlay */
.vp-mission-bar {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.vp-mission-bar .vp-mission-title {
    font-weight: 700;
}
.vp-mission-bar .vp-mission-desc {
    opacity: 0.9;
    font-size: 13px;
}
.vp-mission-bar .vp-mission-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #fbbf24;
}

/* Success modal */
.vp-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.vp-success-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.vp-success-modal {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s;
}
.vp-success-overlay.show .vp-success-modal {
    transform: scale(1);
}
.vp-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.vp-success-modal h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}
.vp-success-modal p {
    color: #64748b;
    margin-bottom: 8px;
}
.vp-success-points {
    font-size: 36px;
    font-weight: 800;
    color: #f59e0b;
    margin: 16px 0;
}
.vp-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Register CTA with score */
.vp-register-cta {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.vp-register-cta-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.vp-register-cta-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: #e0e7ff;
}
.vp-register-cta .btn {
    white-space: nowrap;
}

/* How-to steps */
#vp-howto {
    padding: 80px 0;
    background: #f8fafc;
}
.vp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}
.vp-step {
    text-align: center;
    max-width: 240px;
}
.vp-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin: 0 auto 12px;
}
.vp-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #7c3aed;
}
.vp-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.vp-step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.vp-step-arrow {
    color: #cbd5e1;
    font-size: 24px;
}

/* Examples */
#vp-examples {
    padding: 80px 0;
    background: #fff;
}
.vp-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.vp-example-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.vp-example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.vp-example-preview {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
}
.vp-example-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 16px 16px 8px;
    color: #1e293b;
}
.vp-example-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 16px;
    line-height: 1.5;
}
.vp-example-card .btn {
    margin: 12px 16px 16px;
}

/* FAQ */
#vp-faq {
    padding: 80px 0;
    background: #f8fafc;
}

/* CTA */
#vp-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    text-align: center;
    color: #fff;
}
.vp-cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}
.vp-cta-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.vp-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.vp-cta-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.vp-cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Sprite Props */
.vp-sprite-props {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}
.vp-prop {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #475569;
}
.vp-prop label {
    font-weight: 600;
    white-space: nowrap;
}
.vp-prop-input {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.vp-prop-input:focus {
    border-color: #7c3aed;
}
.vp-prop-num {
    width: 60px;
}

/* Bottom Panels (Sprite & Stage) */
.vp-bottom-panels {
    display: flex;
    border-top: 1px solid #e2e8f0;
    flex: 0 0 auto;
}
.vp-sprite-panel,
.vp-stage-bg-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}
.vp-sprite-panel {
    border-right: 1px solid #e2e8f0;
}
.vp-panel-header {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp-panel-actions {
    display: flex;
    gap: 4px;
}
.vp-panel-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    transition: all 0.2s;
}
.vp-panel-btn:hover {
    background: #f1f5f9;
    color: #7c3aed;
}
.vp-sprite-list {
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}
.vp-sprite-thumb {
    width: 56px;
    height: 56px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    background: #fff;
    transition: border-color 0.2s;
}
.vp-sprite-thumb.active {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.vp-sprite-thumb:hover {
    border-color: #7c3aed;
}
.vp-bg-preview {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
}
.vp-bg-thumb {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
}
.vp-bg-thumb:hover {
    background: #f1f5f9;
}
.vp-bg-thumb.active {
    background: #7c3aed;
    color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
    .vp-workspace {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .vp-palette {
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
    }
    .vp-palette-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .vp-palette-blocks {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: 150px;
    }
    .vp-stage-panel {
        border-left: none;
        border-top: 2px solid #e2e8f0;
    }
    .vp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vp-examples-grid {
        grid-template-columns: 1fr;
    }
    .vp-steps {
        flex-direction: column;
    }
    .vp-step-arrow {
        transform: rotate(90deg);
    }
    .vp-levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vp-hero-content h1 { font-size: 32px; }
    .vp-hero-actions { flex-direction: column; align-items: center; }
    .vp-hero-stats { gap: 24px; }
    .vp-features-grid { grid-template-columns: 1fr; }
    .vp-cta-content h2 { font-size: 24px; }
    .vp-cta-actions { flex-direction: column; align-items: center; }
    .vp-register-cta { flex-direction: column; text-align: center; }
    .vp-mission-bar { flex-direction: column; gap: 8px; text-align: center; }
    .vp-levels-grid { grid-template-columns: 1fr; }
    .vp-project-toolbar { flex-direction: column; gap: 8px; }
}

/* ========== Project Toolbar ========== */
.vp-project-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.vp-project-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}
.vp-project-name i {
    color: #6366f1;
    font-size: 16px;
}
.vp-project-name input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 200px;
    max-width: 100%;
}
.vp-project-name input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.vp-project-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vp-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.vp-toolbar-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.vp-toolbar-btn i {
    font-size: 12px;
}
