.dashboard-page {
    padding: 110px 0 60px;
}

.dashboard-page .container {
    max-width: 960px;
}

.dashboard-auth-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.dashboard-auth-wall h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.dashboard-auth-wall p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
}

.dash-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dash-greet h1,
.dash-greet h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}

.dash-greet p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.dash-progress-ring-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.dash-progress-ring-wrap svg {
    display: block;
}

[data-theme="light"] .dash-progress-ring-wrap circle:first-child {
    stroke: rgba(0,0,0,0.06);
}

.dash-ring-info {
    text-align: left;
}

.dash-ring-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dash-ring-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dash-intro-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: rgba(99,102,241,0.05);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 12px;
    margin-bottom: 28px;
}

[data-theme="light"] .dash-intro-card {
    background: rgba(99,102,241,0.04);
    border-color: rgba(99,102,241,0.1);
}

.dash-intro-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(16,185,129,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-intro-icon svg {
    display: block;
}

.dash-intro-info {
    flex: 1;
    min-width: 0;
}

.dash-intro-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.dash-intro-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dash-intro-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
}

.dash-intro-link {
    font-size: 0.8rem;
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

.dash-intro-link:hover {
    text-decoration: underline;
}

.dash-practice-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.dash-format-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.dash-format-trigger:hover {
    opacity: 0.8;
}

.dash-format-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
}

.dash-format-title svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.dash-accordion-arrow {
    transition: transform 0.3s;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.dash-practice-card.expanded .dash-accordion-arrow {
    transform: rotate(180deg);
}

.dash-faq-panel {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.dash-practice-card.expanded .dash-faq-panel {
    display: block;
}

.dash-faq-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.dash-faq-item:last-child {
    margin-bottom: 0;
}

.dash-faq-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    margin-top: 2px;
    background: rgba(99,102,241,0.2);
    color: #818cf8;
}

[data-theme="light"] .dash-faq-num {
    background: rgba(99,102,241,0.1);
}

.dash-faq-content strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 3px;
    color: var(--text);
}

.dash-faq-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.dash-section {
    margin-bottom: 32px;
}

.dash-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.dash-section-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.dash-section-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-group {
    margin-bottom: 28px;
}

.dash-group:last-child {
    margin-bottom: 0;
}

.dash-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid rgba(16, 185, 129, 0.4);
}

.dash-group-svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

[data-theme="light"] .dash-group-svg {
    color: rgba(0, 0, 0, 0.45);
}

.dash-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

[data-theme="light"] .dash-group-label {
    color: rgba(0, 0, 0, 0.5);
}

.dash-modules-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-module-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.dash-module-row:hover {
    background: rgba(255,255,255,0.05);
}

[data-theme="light"] .dash-module-row {
    background: rgba(0,0,0,0.015);
}

[data-theme="light"] .dash-module-row:hover {
    background: rgba(0,0,0,0.04);
}

.dash-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.dash-m-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.dash-m-bar {
    width: 3px;
    height: 28px;
    border-radius: 2px;
    background: var(--module-accent, var(--accent));
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.dash-module-row:hover .dash-m-bar {
    opacity: 1;
}

.dash-m-info {
    flex: 1;
    min-width: 0;
}

.dash-m-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.dash-m-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.dash-m-lessons {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-m-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.dash-m-status svg {
    flex-shrink: 0;
}

.dash-m-status.premium {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}

[data-theme="light"] .dash-m-status.premium {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: #6b7280;
}

.dash-m-btn {
    padding: 6px 14px;
    background: rgba(129,140,248,0.12);
    color: #818cf8;
    border: 1px solid rgba(129,140,248,0.15);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.dash-m-btn:hover {
    background: rgba(129,140,248,0.2);
}

.dash-m-btn.dash-m-btn-done {
    background: rgba(16,185,129,0.1);
    color: #10b981;
    border-color: rgba(16,185,129,0.15);
}

.dash-m-btn.dash-m-btn-continue {
    background: rgba(129,140,248,0.18);
    color: #a5b4fc;
    border-color: rgba(129,140,248,0.25);
}

[data-theme="light"] .dash-m-btn {
    background: rgba(99,102,241,0.08);
    color: #6366f1;
    border-color: rgba(99,102,241,0.12);
}

[data-theme="light"] .dash-m-btn:hover {
    background: rgba(99,102,241,0.14);
}

[data-theme="light"] .dash-m-btn.dash-m-btn-done {
    background: rgba(16,185,129,0.08);
    color: #059669;
    border-color: rgba(16,185,129,0.12);
}

[data-theme="light"] .dash-m-btn.dash-m-btn-continue {
    background: rgba(99,102,241,0.12);
    color: #6366f1;
    border-color: rgba(99,102,241,0.18);
}

@media (max-width: 768px) {
    .dash-page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .dash-intro-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dash-intro-badge {
        order: 4;
    }

    .dash-intro-link {
        order: 5;
        margin-left: 0;
    }

    .dash-module-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }

    .dash-row-left {
        width: 100%;
    }

    .dash-m-desc {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dash-row-right {
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid var(--border);
        padding-top: 10px;
    }
}
