.cp-hero { padding: 100px 0 50px; }
.cp-hero-lead { max-width: 720px; }
.cp-page-top { padding-top: 110px !important; }

.cp-track-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.cp-track-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
    color: inherit;
}
.cp-track-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.cp-track-icon-lg { width: 56px; height: 56px; font-size: 1.5rem; }
.cp-track-body { flex: 1; min-width: 0; }
.cp-track-meta { font-size: 0.8rem; color: #94a3b8; }
.cp-track-arrow { color: #64748b; margin-top: 0.5rem; }

.cp-track-header { display: flex; gap: 1rem; align-items: flex-start; }

.cp-category-card {
    display: block;
    position: relative;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.cp-category-card:hover {
    background: rgba(99, 102, 241, 0.08);
    color: inherit;
}
.cp-cat-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.cp-info-panel {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.05));
}

.cp-filter-bar {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-problem-list { border-radius: 0.75rem; overflow: hidden; }
.cp-problem-item {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: inherit !important;
}
.cp-problem-item:hover { background: rgba(99, 102, 241, 0.1) !important; }
.cp-problem-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cp-problem-title { flex: 1; font-weight: 500; }

.cp-diff-easy { background: rgba(34, 197, 94, 0.2) !important; color: #4ade80 !important; }
.cp-diff-medium { background: rgba(245, 158, 11, 0.2) !important; color: #fbbf24 !important; }
.cp-diff-hard { background: rgba(239, 68, 68, 0.2) !important; color: #f87171 !important; }

.cp-panel {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.cp-panel-title { color: #e2e8f0; }
.cp-statement { line-height: 1.7; }
.cp-statement code { color: #fbbf24; }

.cp-editor {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    color: #e2e8f0;
    resize: vertical;
}
.cp-output {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: pre-wrap;
    min-height: 3rem;
    max-height: 240px;
    overflow: auto;
}

.cp-code-block {
    margin: 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #0f172a;
    overflow-x: auto;
    font-size: 0.82rem;
}
.cp-explanation { line-height: 1.75; font-size: 0.95rem; }

.cp-sidebar .sticky-top { top: 90px; }
.cp-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: #818cf8;
    font-size: 0.85rem;
}
.cp-nav-next { text-align: right; }
.cp-related-list li { margin-bottom: 0.5rem; }
.cp-related-list a { color: #818cf8; text-decoration: none; font-size: 0.9rem; }
.cp-related-list a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .cp-track-header { flex-direction: column; }
    .cp-sidebar .sticky-top { position: static !important; }
}
