.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    color: #475569; /* text-slate-600 */
    transition: all 0.15s;
}
.sidebar-item:hover {
    color: #4f46e5; /* text-indigo-600 */
    background-color: rgba(255, 255, 255, 0.5); /* bg-white/50 */
}
.sidebar-item--active,
.sidebar-item--active:hover {
    background-color: rgba(199, 210, 254, 0.6) !important; /* bg-indigo-100/60 */
    color: #4338ca !important; /* text-indigo-700 */
}
.nav-tab {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
    color: #64748b;
    transition: all 0.15s;
}
.nav-tab:hover {
    color: #0f172a;
    background-color: rgba(248, 250, 252, 0.5);
}
.nav-tab:active {
    transform: scale(0.95);
}
.nav-tab--active,
.nav-tab--active:hover {
    color: #4f46e5 !important;
    border-bottom: 2px solid #4f46e5 !important;
}
.sidebar-promo {
    display: block;
    text-align: center;
    padding: 0.75rem;
    margin: 0 0.5rem 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(30, 0, 169, 0.1); /* bg-primary/10 */
    color: #1b1b24; /* text-on-surface */
    transition: background-color 0.15s;
}
.sidebar-promo:hover {
    background-color: rgba(30, 0, 169, 0.2); /* hover:bg-primary/20 */
}
.upgrade-btn {
    display: block;
    width: 100%;
    background: white;
    color: #1b1b24; /* text-primary */
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.15s;
}
.upgrade-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.upgrade-btn:active {
    transform: scale(0.98);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0; /* border-outline-variant */
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    color: #1b1b24; /* text-primary */
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.15s;
}
.btn-outline:hover {
    background-color: #f1f5f9; /* hover:bg-surface-container-low */
}
.btn-outline:active {
    transform: scale(0.98);
}
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #1e00a9, #6d28d9);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.15s;
}
.btn-gradient:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.btn-gradient:active {
    transform: scale(0.98);
}
.header-icon-btn {
    color: #64748b; /* text-slate-500 */
    padding: 0.5rem;
    border-radius: 9999px;
    transition: color 0.15s, background-color 0.15s;
}
.header-icon-btn:hover {
    color: #0f172a; /* text-slate-900 */
    background-color: rgba(248, 250, 252, 0.5);
}
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    background: #1b1b24; /* bg-primary */
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background-color 0.15s;
    text-decoration: none;
}
.btn-primary-sm:hover {
    background-color: rgba(27, 27, 36, 0.9);
}
.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #ede9fe; /* bg-primary-container */
    color: #5b21b6; /* text-on-primary-container */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: #64748b; /* text-slate-500 */
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: background-color 0.2s;
    text-decoration: none;
}
.btn-ghost:hover {
    background-color: #f8fafc; /* hover:bg-slate-50 */
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2a00bd;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    transition: all 0.2s;
}
.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    transform: translateY(-0.125rem);
}
.btn-outline-indigo {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #4f46e5; /* border-indigo-600 */
    border-radius: 0.75rem;
    color: #4f46e5; /* text-indigo-600 */
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1rem;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-outline-indigo:hover {
    background-color: #eef2ff; /* hover:bg-indigo-50 */
}
.btn-filled-indigo {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    background: #4f46e5; /* bg-indigo-600 */
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-filled-indigo:hover {
    background-color: #4338ca; /* hover:bg-indigo-700 */
}
.btn-filled-indigo:active {
    transform: scale(0.95);
}
.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    background: #1b1b24;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-primary-action:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    background-color: rgba(27, 27, 36, 0.9);
}
/* ===== Category Card ===== */
.category-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(199, 196, 216, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}
.category-card-blob {
    position: absolute;
    right: -1.5rem;
    top: -1.5rem;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    background: rgba(30, 0, 169, 0.05);
    filter: blur(24px);
    transition: background-color 0.3s;
}
.category-card:hover .category-card-blob {
    background: rgba(30, 0, 169, 0.1);
}
.category-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}
.category-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #f0ecf9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e00a9;
    transition: all 0.3s;
}
.category-card:hover .category-card-icon {
    background: #1e00a9;
    color: white;
}
.category-card-arrow {
    color: #c7c4d8;
    transition: color 0.3s;
}
.category-card:hover .category-card-arrow {
    color: #1e00a9;
}
.category-card-body {
    position: relative;
    z-index: 10;
}
.category-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #1b1b24;
    transition: color 0.3s;
}
.category-card:hover .category-card-title {
    color: #1e00a9;
}
.category-card-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #464555;
    margin-top: 0.25rem;
}
.category-card-progress {
    margin-top: auto;
    position: relative;
    z-index: 10;
    padding-top: 0.5rem;
}
.category-card-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.category-card-progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: #464555;
}
.category-card-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1e00a9;
}
.category-card-progress-bar {
    width: 100%;
    height: 0.375rem;
    background: #e4e1ee;
    border-radius: 9999px;
    overflow: hidden;
}
.category-card-progress-fill {
    height: 100%;
    background: #1e00a9;
    border-radius: 9999px;
}
/* ===== Main Content Wrapper ===== */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
}
@media (min-width: 768px) {
    .main-content-wrapper {
        margin-left: 16rem;
    }
}
/* ===== List Row + Play Button ===== */
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    transition: background-color 0.15s;
}
.list-row:hover {
    background-color: #f5f2ff;
}
.play-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(30, 0, 169, 0.1);
    color: #1e00a9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
}
.list-row:hover .play-btn {
    background: #1e00a9;
    color: white;
}
/* ===== Submit Button ===== */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    background: #10B981;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-submit:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
/* ===== Question Step ===== */
.question-main {
    flex-grow: 1;
    padding: 100px 1.5rem 8rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.question-card {
    width: 100%;
    max-width: 56rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(199, 196, 216, 0.3);
    padding: 2.5rem;
    margin-top: 2rem;
    background: #ffffff;
}
.bookmark-btn {
    color: #777587;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.bookmark-btn:hover {
    color: #1e00a9;
}
/* Option radio label */
.option-label {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(199, 196, 216, 0.4);
    transition: all 0.15s;
    cursor: pointer;
}
.option-label:hover {
    border-color: rgba(30, 0, 169, 0.6);
    background-color: #f5f2ff;
}
.option-label:has(input:checked) {
    border-color: #1e00a9;
    background: rgba(30, 0, 169, 0.05);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.option-input {
    width: 1.25rem;
    height: 1.25rem;
    color: #1e00a9;
    border-color: #c7c4d8;
    margin-right: 1rem;
}
.option-text {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #1b1b24;
    transition: color 0.15s;
}
.option-label:hover .option-text {
    color: #1e00a9;
}
.option-label:has(input:checked) .option-text {
    color: #1e00a9;
    font-weight: 500;
}
.report-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #464555;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.report-btn:hover {
    color: #1e00a9;
}
/* ===== Danger Button ===== */
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #dc2626;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: #b91c1c;
}
/* ===== Hero Buttons ===== */
.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #1e00a9, #6d28d9);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-hero:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.3);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background-color 0.15s;
    text-decoration: none;
}
.btn-hero-ghost:hover {
    background: rgba(15, 23, 42, 0.2);
}
/* ===== Secondary Block Button ===== */
.btn-secondary-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #6d28d9;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.15s;
    text-decoration: none;
}
.btn-secondary-block:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
/* ===== Primary Full-Width Button ===== */
.btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: #2a00bd;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary-full:hover {
    background: #ede9fe;
    color: #2a00bd;
}
/* ===== Primary Container Full-Width Button ===== */
.btn-primary-container-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: #ede9fe;
    color: #2a00bd;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: background-color 0.15s;
    text-decoration: none;
}
.btn-primary-container-full:hover {
    background: #ddd6fe;
}