
:root {
    --bg-dark: #0b0f19;
    --card-dark: #1e293b;
    --border-dark: #334155;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --success: #10b981;
}

.prto-portal-wrap {
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.prto-hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid #4338ca;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.prto-welcome-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.08em;
}
.prto-hero-banner h1 {
    margin: 0.4rem 0 0.6rem 0;
    font-size: 2rem;
    color: white;
}
.prto-hero-banner p {
    color: #c7d2fe;
    margin: 0;
    font-size: 1.05rem;
    max-width: 650px;
}
.prto-clb-badge {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #6366f1;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
}
.clb-label {
    display: block;
    font-size: 0.75rem;
    color: #a5b4fc;
    text-transform: uppercase;
    font-weight: 600;
}
.clb-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #34d399;
    margin-top: 4px;
}
.prto-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.prto-stat-box {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 1.5rem;
    border-radius: 12px;
}
.stat-num {
    font-size: 2rem;
    font-weight: bold;
    color: #818cf8;
}
.stat-lbl {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 2px;
}
.prto-progress-bar {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border-radius: 20px;
    transition: width 0.4s ease;
}
.prto-section-heading {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: white;
}
.prto-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.prto-course-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 1.8rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prto-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.3);
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.prto-badge {
    background: #312e81;
    color: #818cf8;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}
.prto-status-pill {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
}
.status-done { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.status-progress { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.status-pending { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid #475569; }

.prto-course-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: white;
}
.course-excerpt {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.course-meta-footer {
    border-top: 1px solid var(--border-dark);
    padding-top: 1rem;
}
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
}
.sets-count {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}
.prto-action-btn {
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}
.prto-action-btn:hover {
    background: var(--accent-hover);
}

.prto-auth-container {
    max-width: 480px;
    margin: 3rem auto;
}
.prto-auth-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.4);
}
.prto-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.prto-auth-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}
.prto-auth-header p {
    color: var(--text-dim);
    margin: 0;
}
.speed-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0.8rem 0;
    background: rgba(15, 23, 42, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}
.speed-btn {
    background: #334155;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}
.speed-btn.active {
    background: var(--accent);
    font-weight: bold;
}
.accent-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.accent-btn {
    background: #334155;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.accent-btn:hover {
    background: var(--accent);
}
