:root {
    --elh-primary: #1e3a5f;
    --elh-primary-light: #2d5a8a;
    --elh-accent: #0d9488;
    --elh-review: #563d7c;
    --elh-know: #04a204;
    --elh-learn: #9c27b0;
    --elh-dark-bg: #0f1419;
    --elh-card-border: #563d7c;

    /* Premium home palette */
    --home-blue: #1a6dff;
    --home-blue-dark: #0d4fd4;
    --home-blue-light: #e8f1ff;
    --home-text: #1a2b4a;
    --home-text-muted: #5a6b85;
    --home-border: #e2e8f3;
    --home-shadow: 0 8px 32px rgba(26, 77, 180, 0.08);
    --home-shadow-hover: 0 16px 48px rgba(26, 77, 180, 0.14);
}

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
}

body.body-practice {
    background-color: #f7f8fc;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(26, 109, 255, .07) 0%, transparent 36%),
        radial-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px);
    background-size: auto, auto, 20px 20px;
    color: var(--home-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body.body-practice-vocab {
    background-color: #f3eef8;
    background-image: url("/img/qback.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body.body-practice .elh-footer {
    background: #fff;
    border-top-color: var(--home-border);
    color: var(--home-text-muted);
}

.practice-main {
    padding: 1.5rem 1rem 2.5rem;
    flex: 1;
}

/* Practice page */
.practice-page {
    max-width: 1180px;
    margin: 0 auto;
}

.practice-top-section {
    position: relative;
    margin-bottom: 1rem;
}

.practice-top-strip {
    position: relative;
}

.practice-page-toolbar {
    display: none;
}

.practice-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
    margin-bottom: .85rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .practice-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .practice-dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .65rem;
    }
}

.practice-points-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .65rem;
    padding: .45rem .85rem .45rem .55rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 55%, #ecfdf5 100%);
    box-shadow: 0 10px 28px rgba(22, 163, 74, .12);
    color: #14532d;
    overflow: hidden;
}

.practice-points-pill-glow {
    position: absolute;
    inset: -40% auto -40% -20%;
    width: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, transparent 70%);
    pointer-events: none;
}

.practice-points-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
    flex-shrink: 0;
}

.practice-points-pill-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.practice-points-pill-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #166534;
    opacity: .85;
}

.practice-points-pill-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
}

.practice-points-pill-pop {
    position: absolute;
    top: -.15rem;
    right: .75rem;
    font-size: .78rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    transform: translateY(6px) scale(.9);
    pointer-events: none;
}

.practice-points-pill-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-points-pill--pulse {
    animation: practice-points-pulse .45s ease;
}

@keyframes practice-points-pop {
    0% { opacity: 0; transform: translateY(8px) scale(.85); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(1.05); }
}

@keyframes practice-points-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.practice-dash-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.practice-dash-card--compact {
    min-height: 0;
    padding: .65rem .75rem;
}

.practice-dash-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.practice-dash-card--review {
    background: linear-gradient(135deg, #f8f5ff 0%, #f1ebff 52%, #ebe4ff 100%);
    border-color: #e4d9ff;
    color: var(--home-text);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .08);
}

.practice-dash-card--review:hover {
    color: var(--home-text);
    border-color: #d8c9ff;
    box-shadow: 0 14px 32px rgba(124, 58, 237, .12);
}

.practice-dash-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    flex-shrink: 0;
}

.practice-dash-icon--purple {
    background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .28);
}

.practice-dash-icon--purple i {
    color: #fff;
}

.practice-dash-icon--blue {
    background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
    color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .1);
}

.practice-dash-icon--blue i {
    color: #2563eb;
}

.practice-dash-card--mode {
    position: relative;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.practice-dash-card--mode:hover {
    border-color: #c7d7fe;
}

.practice-goal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .75rem;
    min-height: 0;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    overflow: hidden;
    text-align: left;
    color: inherit;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.practice-goal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.practice-goal-card--week {
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.practice-goal-card--month {
    background: linear-gradient(160deg, #fff 0%, #fafbff 100%);
    border-color: #e8edf5;
}

.practice-goal-card .practice-overall-track {
    height: 6px;
}

.practice-goal-card .practice-daily-hint,
.practice-goal-card .practice-streak-pill,
.practice-goal-card .practice-next-milestone {
    margin: 0;
    font-size: .72rem;
    line-height: 1.35;
}

.practice-goal-card-art {
    position: absolute;
    right: .15rem;
    bottom: .1rem;
    width: 72px;
    height: 64px;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: .9;
}

.practice-goal-card--month .practice-dash-art-img {
    max-height: 58px;
}

.practice-goal-card .practice-help-icon {
    top: .4rem;
    right: .4rem;
    width: 24px;
    height: 24px;
    font-size: .75rem;
}

.practice-goal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.practice-goal-copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
}

.practice-goal-title {
    font-size: .85rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.2;
}

.practice-goal-sub {
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}

.practice-goal-count {
    font-size: .8rem;
    font-weight: 800;
    color: #7c3aed;
    white-space: nowrap;
}

.practice-next-milestone i {
    margin-right: .2rem;
    color: #7c3aed;
}

.practice-dash-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.practice-dash-title {
    font-size: .85rem;
    font-weight: 800;
    color: inherit;
    line-height: 1.2;
}

.practice-dash-sub--action {
    color: #64748b;
    font-weight: 600;
}

.practice-dash-more {
    margin-left: auto;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: .95rem;
}

.practice-dash-card--mode:hover .practice-dash-more {
    background: #e8eef7;
    color: #334155;
}

.practice-dash-sub {
    font-size: .7rem;
    line-height: 1.3;
}

.practice-dash-sub--muted {
    color: var(--home-text-muted);
}

.practice-dash-count {
    margin-left: auto;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.practice-dash-count--purple {
    background: #fff;
    color: #7c3aed;
    border: 1px solid #e9ddff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .1);
}

.practice-dash-card--points {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 52%, #ecfdf5 100%);
    border-color: #bbf7d0;
    box-shadow: 0 10px 28px rgba(22, 163, 74, .08);
}

.practice-dash-icon--green {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
}

.practice-dash-icon--green i {
    color: #fff;
}

.practice-dash-count--green {
    background: #fff;
    color: #15803d;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .1);
}

.practice-dash-points-pop {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .72rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    pointer-events: none;
}

.practice-dash-points-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-dash-card--pulse {
    animation: practice-points-pulse .45s ease;
}

.practice-dash-art {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.practice-dash-art-glow {
    position: absolute;
    inset: 8% 0 8% 18%;
    background: radial-gradient(ellipse at center, rgba(237, 233, 254, .95) 0%, rgba(237, 233, 254, .35) 45%, transparent 72%);
    filter: blur(2px);
}

.practice-dash-art-img {
    position: relative;
    width: auto;
    height: 88%;
    max-height: 108px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 22px rgba(124, 58, 237, .12));
}

.practice-toast {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    background: #166534;
    color: #fff;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(22, 101, 52, .35);
    transition: opacity .35s ease, transform .35s ease;
}

.practice-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}

.practice-top-panel {
    display: none;
}

.practice-review-pill {
    display: none;
}

.practice-question-content img,
.practice-question-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 1rem;
}

.practice-answer-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.practice-module-select {
    min-width: 10rem;
}

.practice-top-row {
    display: none;
}

.practice-mode-wrap {
    display: none;
}

.practice-mode-icon {
    color: var(--home-blue);
    font-size: .9rem;
}

.practice-mode-select {
    border: none;
    background: transparent;
    color: var(--home-text);
    font-weight: 600;
    font-size: .9rem;
    padding: 0;
    box-shadow: none !important;
    cursor: pointer;
}

.practice-mode-select:focus {
    border: none;
    box-shadow: none;
}

.practice-overall-progress {
    min-width: 0;
}

.practice-overall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: .5rem;
}

.practice-overall-header strong {
    color: #7c3aed;
    font-size: .92rem;
}

.practice-overall-track {
    height: 8px;
    background: #eceff5;
    border-radius: 999px;
    overflow: hidden;
}

.practice-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #1a6dff);
    border-radius: 999px;
    transition: width .4s ease;
}

.practice-auth-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #334155;
    border-radius: 14px;
    padding: .8rem 1rem;
    font-size: .88rem;
    margin-bottom: 1rem;
}

.practice-auth-notice i {
    color: var(--home-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.practice-auth-notice > span {
    flex: 1;
    min-width: 180px;
}

.practice-auth-signin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--home-blue);
    background: #fff;
    color: var(--home-blue);
    font-weight: 700;
    font-size: .84rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, transform .15s;
}

.practice-auth-signin:hover {
    background: var(--home-blue);
    color: #fff;
    transform: translateY(-1px);
}

.practice-question-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 1.1rem 1.55rem 0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .07);
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.practice-question-card-main {
    padding-bottom: .35rem;
    background: #fff;
}

.practice-question-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed 0%, #6366f1 45%, #1a6dff 75%, #14b8a6 100%);
}

.practice-card-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.practice-card-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.practice-card-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.practice-card-loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

.practice-card-loader-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid #e9d5ff;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: practiceCardSpin .75s linear infinite;
}

.practice-card-loader-message {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: #4c1d95;
}

@keyframes practiceCardSpin {
    to {
        transform: rotate(360deg);
    }
}

.practice-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.practice-card-points {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .7rem .35rem .45rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 8px 22px rgba(22, 163, 74, .1);
    flex-shrink: 0;
}

.practice-card-points-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: .72rem;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .24);
}

.practice-card-points-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    text-align: center;
    min-width: 2.1rem;
}

.practice-card-points-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #166534;
    opacity: .85;
    width: 100%;
    text-align: center;
}

.practice-card-points-value {
    font-size: 1rem;
    font-weight: 800;
    color: #14532d;
    width: 100%;
    text-align: center;
}

.practice-card-points-pop {
    position: absolute;
    top: -.35rem;
    right: .5rem;
    font-size: .72rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    pointer-events: none;
}

.practice-card-points-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-card-points--pulse {
    animation: practice-points-pulse .45s ease;
}

.practice-item-progress--center {
    display: block;
    margin: .15rem auto 1rem;
    width: 62px;
    height: 62px;
}

.practice-question-prompt .practice-item-progress--center {
    margin: .85rem auto 1rem;
}

.practice-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    flex: 1;
    min-width: 0;
}

.practice-item-progress {
    position: relative;
    top: auto;
    right: auto;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.practice-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    padding: .34rem .68rem;
    border-radius: 999px;
    letter-spacing: .01em;
}

.practice-question-card .practice-meta-badge {
    font-size: .62rem;
    padding: .24rem .52rem;
    gap: .24rem;
}

.practice-question-card .practice-meta-badge i {
    font-size: .58rem;
}

.practice-question-card .practice-meta-tier {
    padding: .16rem .46rem .16rem .26rem;
    gap: .28rem;
}

.practice-question-card .practice-meta-tier-icon {
    width: 17px;
    height: 17px;
}

.practice-question-card .practice-meta-tier-label {
    font-size: .62rem;
}

.practice-meta-id {
    background: #ede9fe;
    color: #6d28d9;
}

.practice-meta-qno {
    background: #dcfce7;
    color: #15803d;
}

.practice-meta-level {
    background: #f1f5f9;
    color: #64748b;
}

.practice-meta-tier {
    margin-left: auto;
    flex-shrink: 0;
    text-transform: capitalize;
    gap: .38rem;
    padding: .22rem .62rem .22rem .32rem;
    cursor: pointer;
    border: none;
    font: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.practice-meta-tier:hover,
.practice-meta-tier:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    outline: none;
}

.practice-meta-tier-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.practice-meta-tier-label {
    line-height: 1.1;
}

.practice-meta-tier--learner,
.practice-meta-tier--learning {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .1);
}

.practice-meta-tier--familiar {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.practice-meta-tier--mastered {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.practice-meta-tier--expert {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    color: #a16207;
    border: 1px solid #fcd34d;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .12);
}

.practice-meta-custom {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.practice-tier-modal-body {
    padding-top: .25rem;
}

.practice-tier-modal-hero {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.practice-tier-modal-hero-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.practice-tier-modal-eyebrow {
    margin: 0 0 .15rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.practice-tier-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-text);
    text-transform: capitalize;
}

.practice-tier-modal-points {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: #64748b;
}

.practice-tier-modal-section-title {
    margin: 0 0 .45rem;
    font-size: .9rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-tier-modal-why {
    margin-bottom: 1rem;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: #f5f3ff;
    border: 1px solid #e9ddff;
}

.practice-tier-modal-why-text {
    margin: 0;
    font-size: .86rem;
    color: #475569;
    line-height: 1.55;
}

.practice-tier-modal-table-lead {
    margin: 0 0 .65rem;
    font-size: .82rem;
    color: #64748b;
    line-height: 1.45;
}

.practice-tier-modal-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e8edf5;
}

.practice-tier-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.practice-tier-modal-table th,
.practice-tier-modal-table td {
    padding: .65rem .75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.practice-tier-modal-table th {
    background: #f8fafc;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}

.practice-tier-modal-table tr:last-child td {
    border-bottom: 0;
}

.practice-tier-modal-table tr.is-current {
    background: #eff6ff;
}

.practice-tier-modal-table tr.is-current td {
    font-weight: 600;
}

.practice-tier-modal-badge-cell {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--home-text);
    text-transform: capitalize;
}

.practice-tier-modal-badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.practice-tier-modal-points-cell {
    white-space: nowrap;
    color: #334155;
    font-weight: 600;
}

.practice-tier-modal-meaning-cell {
    color: #64748b;
    line-height: 1.45;
}

.practice-tier-modal-you {
    font-size: .74rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: none;
}

.practice-tier-modal-hero--learner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.practice-tier-modal-hero--familiar {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.practice-tier-modal-hero--mastered {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #e9d5ff;
}

.practice-tier-modal-hero--expert {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.practice-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.practice-ring-bg {
    fill: none;
    stroke: #eef2f7;
    stroke-width: 6;
}

.practice-ring-fill {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    transition: stroke-dashoffset .5s ease;
}

.practice-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    color: #7c3aed;
}

.practice-question-content {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    min-height: 0;
    padding: 0 0 .25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    background: #fff;
}

.practice-question-content p {
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    text-align: left;
}

.practice-question-prompt {
    width: 100%;
    max-width: none;
}

.practice-question-text {
    width: 100%;
    text-align: left;
}

.practice-question-examples-heading {
    margin: .95rem 0 .4rem;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.practice-question-example-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    font-size: clamp(.96rem, 1.7vw, 1.08rem);
    font-weight: 500;
}

.practice-question-example-list li {
    position: relative;
    padding: .4rem 0 .4rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.practice-question-example-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.practice-question-example-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .82rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-blue);
}

.practice-word-blank {
    display: inline-block;
    min-width: 4.5rem;
    height: 0.85em;
    vertical-align: baseline;
    border: none;
    border-bottom: 2px solid #64748b;
    text-decoration: none !important;
    margin: 0 .15rem;
}

.practice-question-example-list u {
    text-decoration: none;
}

.practice-recall-hint {
    margin: 0 0 .65rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--home-text-muted);
    line-height: 1.4;
}

.practice-card-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 0 -1.55rem;
    padding: .7rem 1.55rem max(1rem, env(safe-area-inset-bottom));
    text-align: center;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.practice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: .75rem;
    text-align: left;
}

.practice-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .6rem;
    border: none;
    border-radius: 14px;
    padding: .58rem .85rem;
    font-weight: 800;
    text-align: left;
    transition: transform .15s, box-shadow .2s, background .2s;
    cursor: pointer;
    min-height: 62px;
}

.practice-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 46px at 82% 18%, rgba(255, 255, 255, .22) 0%, transparent 100%),
        radial-gradient(circle 34px at 94% 72%, rgba(255, 255, 255, .16) 0%, transparent 100%),
        radial-gradient(circle 22px at 68% 78%, rgba(255, 255, 255, .12) 0%, transparent 100%);
    pointer-events: none;
}

.practice-btn::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 14px;
    transform: rotate(28deg);
    background: rgba(255, 255, 255, .1);
    box-shadow:
        28px -14px 0 -8px rgba(255, 255, 255, .08),
        -18px 20px 0 -10px rgba(255, 255, 255, .06);
    pointer-events: none;
}

.practice-btn-know::before {
    background:
        radial-gradient(circle 50px at 84% 22%, rgba(255, 255, 255, .24) 0%, transparent 100%),
        radial-gradient(circle 30px at 72% 68%, rgba(255, 255, 255, .12) 0%, transparent 100%),
        radial-gradient(circle 18px at 92% 58%, rgba(255, 255, 255, .14) 0%, transparent 100%);
}

.practice-btn-learn::before {
    background:
        radial-gradient(circle 44px at 78% 28%, rgba(255, 255, 255, .2) 0%, transparent 100%),
        radial-gradient(circle 36px at 96% 64%, rgba(255, 255, 255, .15) 0%, transparent 100%),
        radial-gradient(circle 20px at 66% 42%, rgba(255, 255, 255, .1) 0%, transparent 100%);
}

.practice-btn-learn::after {
    right: 8%;
    border-radius: 50%;
    transform: none;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(255, 255, 255, .11);
    box-shadow:
        32px 10px 0 -12px rgba(255, 255, 255, .09),
        -24px -6px 0 -14px rgba(255, 255, 255, .07);
}

.practice-btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.practice-btn-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.practice-btn-text {
    font-size: .95rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.practice-btn-sub {
    font-size: .64rem;
    font-weight: 600;
    opacity: .88;
    line-height: 1.18;
}

.practice-btn-know {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #bbf7d0 100%);
    color: #047857;
    border: 1px solid #bbf7d0;
    box-shadow: 0 8px 22px rgba(16, 185, 129, .14);
}

.practice-btn-know .practice-btn-icon {
    color: #059669;
}

.practice-btn-know:hover {
    color: #065f46;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 55%, #86efac 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .18);
}

.practice-btn-know.glow-know,
.practice-btn-know.is-selected {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 55%, #86efac 100%);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .28), 0 12px 28px rgba(16, 185, 129, .2);
    transform: translateY(-2px) scale(1.01);
}

.practice-btn-learn {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 55%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #e9d5ff;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .12);
}

.practice-btn-learn .practice-btn-icon {
    color: #7c3aed;
}

.practice-btn-learn:hover {
    color: #5b21b6;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 55%, #c4b5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, .16);
}

.practice-btn-learn.glow-learn,
.practice-btn-learn.is-selected {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 55%, #c4b5fd 100%);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .28), 0 12px 28px rgba(124, 58, 237, .18);
    transform: translateY(-2px) scale(1.01);
}

.practice-choice-hint {
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: var(--home-blue);
    margin: -.15rem 0 .85rem;
}

.practice-actions .practice-btn {
    position: relative;
    z-index: 2;
}

.practice-show-answer-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.practice-btn-show-answer {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: min(100%, 320px);
    min-width: 200px;
    max-width: 100%;
    margin: 0;
    padding: .72rem 1.35rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 48%, #2563eb 100%);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
    transition: transform .15s, box-shadow .2s, filter .2s;
    cursor: pointer;
}

.practice-btn-show-answer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 34px at 78% 24%, rgba(255, 255, 255, .2) 0%, transparent 100%),
        radial-gradient(circle 24px at 92% 70%, rgba(255, 255, 255, .14) 0%, transparent 100%);
    pointer-events: none;
}

.practice-btn-show-answer::after {
    content: "";
    position: absolute;
    right: 12%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    box-shadow: 28px 8px 0 -10px rgba(255, 255, 255, .07);
    pointer-events: none;
}

.practice-btn-show-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    font-size: .82rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    flex-shrink: 0;
}

.practice-btn-show-text {
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.practice-btn-show-answer:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .34);
    filter: brightness(1.03);
}

.practice-footer-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1.15rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
}

.practice-feature-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}

.practice-feature-copy {
    min-width: 0;
    padding-top: .15rem;
}

.practice-feature-item strong {
    display: block;
    font-size: .84rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: .15rem;
    line-height: 1.25;
}

.practice-feature-desc {
    display: block;
    font-size: .74rem;
    color: var(--home-text-muted);
    line-height: 1.45;
}

.practice-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.practice-feature-icon i {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.practice-feature-icon--purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.practice-feature-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.practice-feature-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.practice-feature-icon--orange {
    background: #ffedd5;
    color: #ea580c;
}

/* Practice modal — compact modern answer layout */
.practice-modal .modal-backdrop.show {
    opacity: .5;
    backdrop-filter: blur(2px);
}

.practice-modal-dialog {
    max-width: min(860px, calc(100vw - 1.5rem));
    margin: .75rem auto;
    min-height: min(82vh, 760px);
}

.practice-modal-content {
    border: 1px solid rgba(226, 232, 243, .95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    background: #fff;
    max-height: min(92vh, 820px);
    display: flex;
    flex-direction: column;
}

.practice-modal-header {
    flex-shrink: 0;
    z-index: 5;
    padding: .85rem 1rem .75rem;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-bottom: 1px solid var(--home-border);
}

.practice-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -.01em;
}

.practice-modal-hero {
    flex-shrink: 0;
    padding: .35rem 1rem .25rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.practice-modal-rating {
    flex-shrink: 0;
    order: 3;
    padding: .65rem 1rem .85rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.practice-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    order: 4;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
}

.practice-modal-rating .practice-actions {
    margin-bottom: .45rem;
}

.practice-modal-rating .practice-already-know-wrap {
    margin: .55rem 0 0;
    display: flex;
    justify-content: center;
}

.practice-already-know-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.practice-already-know-btn:hover {
    transform: translateY(-1px);
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fff7d6 0%, #fde68a 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, .18);
    color: #78350f;
}

.practice-already-know-btn:active {
    transform: translateY(0);
}

.practice-already-know-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    flex-shrink: 0;
}

.practice-already-know-text {
    text-align: left;
}

.practice-modal-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.practice-modal-header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.practice-modal-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .82rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.practice-modal-icon-btn:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.practice-modal.is-maximized .practice-modal-dialog {
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
    margin: .5rem auto;
    min-height: calc(100vh - 1rem);
}

.practice-modal.is-maximized .practice-modal-content {
    max-height: calc(100vh - 1rem);
    min-height: calc(100vh - 1rem);
    border-radius: 14px;
}

.practice-modal.is-maximized .practice-modal-notes {
    min-height: 0;
}

.practice-modal-word-wrap {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: .25rem 0 .15rem;
}

.practice-answer-word-hero,
.practice-answer-word {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.55rem, 3.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.15;
    color: var(--home-text);
    background: linear-gradient(135deg, var(--home-blue), #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.practice-modal-close {
    opacity: .45;
    padding: .45rem;
    margin: 0;
    transition: opacity .2s;
    flex-shrink: 0;
}

.practice-modal-close:hover {
    opacity: .85;
}

.practice-header-btn-label {
    font-size: .78rem;
    font-weight: 700;
}

.btn-practice-schedule,
.btn-practice-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    padding: .5rem .75rem;
    min-height: 36px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    white-space: nowrap;
}

.btn-practice-schedule {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .32);
}

.btn-practice-schedule:hover,
.btn-practice-schedule.is-active {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(234, 88, 12, .4);
    transform: translateY(-1px);
}

.btn-practice-next {
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 109, 255, .32);
}

.btn-practice-next:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(26, 109, 255, .4);
    transform: translateY(-1px);
}

.btn-practice-schedule.pulse-hint {
    animation: scheduleBtnPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .35), 0 4px 14px rgba(234, 88, 12, .32);
}

.practice-answer-word {
    font-size: 1.4rem;
}

.practice-modal-notes {
    flex: 1;
    min-height: 320px;
    max-height: none;
    overflow-y: auto;
    padding: .9rem 1rem;
    background: #f8fafc;
}

.practice-modal-notes::-webkit-scrollbar {
    width: 5px;
}

.practice-modal-notes::-webkit-scrollbar-track {
    background: transparent;
}

.practice-modal-notes::-webkit-scrollbar-thumb {
    background: #c5d0e0;
    border-radius: 999px;
}

.practice-notes-content {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--home-text);
}

.practice-modal-footer {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: .85rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid var(--home-border);
}

.practice-modal-rating-title {
    margin: 0 0 .65rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--home-text);
    text-align: center;
}

.practice-modal-actions {
    margin-bottom: .5rem;
}

.practice-modal-actions--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-btn-already-know {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #fde68a;
    box-shadow: 0 8px 22px rgba(245, 158, 11, .12);
}

.practice-btn-already-know .practice-btn-icon {
    color: #d97706;
}

.practice-btn-already-know:hover {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, .16);
}

.practice-answer-pronunciation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: .45rem 0 0;
    flex-wrap: wrap;
}

.practice-answer-speak {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.practice-answer-speak:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .24);
}

.practice-answer-pronunciation-text {
    font-size: .92rem;
    line-height: 1.45;
    color: #475569;
}

.practice-answer-pronunciation-text mark.tm {
    background: #fef3c7;
    color: #92400e;
    padding: 0 .15rem;
    border-radius: 4px;
}

.practice-modal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.practice-modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
}

.practice-modal-footer .btn-practice-schedule,
.practice-modal-footer .btn-practice-next {
    padding: .55rem 1rem;
    min-height: 42px;
}

/* Section headers inside modal — premium blue collapsible */
.practice-modal .practice-section-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 243, .9);
    border-radius: 14px;
    margin-bottom: .65rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.practice-modal .practice-section-card.is-open {
    border-color: rgba(26, 109, 255, .18);
    box-shadow: 0 6px 20px rgba(26, 109, 255, .08);
}

.practice-modal .practice-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: none;
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: calc(.78rem + 2px);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 55%, #6366f1 100%);
    padding: .6rem .85rem;
    text-align: left;
    transition: filter .2s ease;
}

.practice-modal .practice-section-toggle:hover {
    filter: brightness(1.06);
}

.practice-modal .practice-section-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.practice-modal .practice-section-toggle-label i {
    opacity: .92;
    font-size: calc(.8rem + 2px);
    flex-shrink: 0;
}

.practice-modal .practice-section-chevron {
    font-size: .72rem;
    opacity: .9;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.practice-modal .practice-section-card.is-open .practice-section-chevron {
    transform: rotate(180deg);
}

.practice-modal .practice-section-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.practice-modal .practice-section-card.is-open .practice-section-panel {
    grid-template-rows: 1fr;
}

.practice-modal .practice-section-panel > .practice-section-body {
    overflow: hidden;
    padding: 0 .9rem;
}

.practice-modal .practice-section-card.is-open .practice-section-panel > .practice-section-body {
    padding: .75rem .9rem .85rem;
}

/* Legacy h2.tw support for general-english notes */
.practice-modal .tw {
    font-family: "Inter", system-ui, sans-serif;
    font-size: calc(.78rem + 2px);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 55%, #6366f1 100%);
    padding: .6rem .85rem;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 12px rgba(26, 109, 255, .2);
    margin: 0 0 .55rem;
    border: none;
}

.practice-modal .tw i {
    opacity: .92;
    font-size: calc(.8rem + 2px);
}

.practice-modal .tm,
.practice-modal mark.tm {
    background: #fef9c3;
    border: none;
    border-radius: 4px;
    padding: 0 4px;
    color: inherit;
}

.practice-modal .practice-translation,
.practice-modal .practice-translation-slot {
    display: block;
    margin-top: .5rem;
    color: #000;
    font-size: calc(1em + 1px);
    line-height: calc(1.65em + 1px);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.practice-modal .practice-translation--rtl,
.practice-modal .practice-translation-slot.practice-translation--rtl {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.practice-modal .practice-translation--ltr,
.practice-modal .practice-translation-slot.practice-translation--ltr {
    direction: ltr;
    text-align: left;
}

.practice-modal .practice-translation.lang-urdu,
.practice-modal .practice-translation-slot.lang-urdu {
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Urdu Typesetting", serif;
    font-size: calc(1.1em + 1px);
}

.practice-modal .practice-translation.lang-arabic,
.practice-modal .practice-translation-slot.lang-arabic {
    font-family: "Noto Naskh Arabic", "Traditional Arabic", "Segoe UI", serif;
    font-size: calc(1.05em + 1px);
}

.practice-modal .practice-translation.lang-hindi,
.practice-modal .practice-translation-slot.lang-hindi,
.practice-modal .practice-translation.lang-marathi,
.practice-modal .practice-translation-slot.lang-marathi {
    font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
    font-size: calc(1.05em + 1px);
}

.practice-modal .practice-translation.lang-bangla,
.practice-modal .practice-translation-slot.lang-bangla {
    font-family: "Noto Sans Bengali", "Vrinda", sans-serif;
    font-size: calc(1.05em + 1px);
}

.practice-modal .practice-translation.lang-tamil,
.practice-modal .practice-translation-slot.lang-tamil,
.practice-modal .practice-translation.lang-telugu,
.practice-modal .practice-translation-slot.lang-telugu {
    font-family: "Noto Sans Tamil", "Noto Sans Telugu", "Nirmala UI", sans-serif;
    font-size: calc(1.05em + 1px);
}

.practice-modal .practice-translation.lang-chinese,
.practice-modal .practice-translation-slot.lang-chinese {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: calc(1.05em + 1px);
}

.practice-modal .practice-translation .translation-script,
.practice-modal .practice-translation-slot .translation-script {
    display: inline;
    white-space: normal;
    color: #000;
}

.practice-translation-loading {
    display: inline-block;
    font-family: var(--bs-font-sans-serif, system-ui, sans-serif);
    font-style: italic;
    font-size: .9rem;
    color: var(--home-blue);
    direction: ltr;
    text-align: left;
}

.practice-modal-notes {
    position: relative;
}

.practice-translation-notice {
    margin-bottom: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    font-size: .88rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.practice-translation-notice--failed {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.practice-translation-notice--limit {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
}

.practice-translation-block {
    margin-top: .35rem;
}

.practice-report-translation-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .25rem;
    padding: .15rem .45rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.practice-report-translation-btn:hover,
.practice-report-translation-btn:focus-visible {
    color: #dc2626;
    background: #fef2f2;
    outline: none;
}

.practice-report-translation-btn i {
    font-size: .78rem;
}

.practice-report-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.practice-report-modal-lead {
    margin-bottom: .85rem;
    color: #64748b;
    font-size: .92rem;
}

.practice-report-reason {
    margin-bottom: 1rem;
    padding: .65rem .8rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.practice-report-reason-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-weight: 600;
    color: #b91c1c;
}

.practice-report-feedback {
    margin-top: .75rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .86rem;
}

.practice-report-feedback--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.practice-report-feedback--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

#reportTranslationSubmit.is-submitted {
    opacity: .7;
}

/* Legacy: full-panel overlay removed — loading shows per translation line only */

.practice-modal .practice-section-body {
    margin-bottom: 0;
}

.practice-modal .practice-section-body p {
    margin-bottom: .45rem;
    color: var(--home-text);
}

.practice-modal .practice-pronunciation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background: var(--home-blue-light);
    border-radius: 10px;
    padding: .65rem .8rem;
    border: 1px solid #d4e4ff;
}

.practice-modal .practice-speak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--home-blue);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 109, 255, .15);
    transition: transform .15s, box-shadow .2s, color .2s;
    flex-shrink: 0;
}

.practice-modal .practice-speak:hover {
    color: var(--home-blue-dark);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(26, 109, 255, .25);
}

.practice-modal .practice-speak-hint {
    color: var(--home-text-muted);
    font-size: .78rem;
    width: 100%;
    margin: 0;
    font-style: italic;
}

.practice-modal .practice-example-list,
.practice-modal .practice-meaning-list,
.practice-modal .practice-avoid-list,
.practice-modal .practice-word-list,
.practice-modal .practice-idiom-list,
.practice-modal .practice-wordforms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-modal .practice-example-list li,
.practice-modal .practice-meaning-list li,
.practice-modal .practice-avoid-list li,
.practice-modal .practice-word-list li,
.practice-modal .practice-idiom-list li,
.practice-modal .practice-wordforms-list li {
    position: relative;
    padding: .5rem 0 .5rem 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

.practice-modal .practice-example-list li:last-child,
.practice-modal .practice-meaning-list li:last-child,
.practice-modal .practice-avoid-list li:last-child,
.practice-modal .practice-word-list li:last-child,
.practice-modal .practice-idiom-list li:last-child,
.practice-modal .practice-wordforms-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.practice-modal .practice-example-list li::before,
.practice-modal .practice-meaning-list li::before,
.practice-modal .practice-wordforms-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-blue);
}

.practice-modal .practice-label-wrong {
    color: #dc2626;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-modal .practice-label-right {
    color: #059669;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-modal .practice-notes-empty {
    text-align: center;
    color: var(--home-text-muted);
    font-style: italic;
    padding: 2rem 1rem;
}

/* Practice mode picker */
.practice-mode-modal {
    z-index: 1060;
}

.practice-mode-modal-dialog {
    max-width: min(440px, calc(100vw - 1.5rem));
    margin: .75rem auto;
}

.practice-mode-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .18);
    background: #fff;
}

.practice-mode-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem .35rem;
}

.practice-mode-modal-eyebrow {
    margin: 0 0 .2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c3aed;
}

.practice-mode-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-mode-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.practice-mode-modal-close:hover {
    background: #e2e8f0;
    color: var(--home-text);
}

.practice-mode-modal-body {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: .85rem 1.1rem 1.25rem;
}

.practice-mode-option {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .2s;
}

.practice-mode-option:hover {
    border-color: #c7d7fe;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .08);
}

.practice-mode-option.is-active {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .1);
}

.practice-mode-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.practice-mode-option-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.practice-mode-option-icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.practice-mode-option-icon--teal {
    background: #ecfeff;
    color: #0891b2;
}

.practice-mode-option-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.practice-mode-option-copy {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
    min-width: 0;
}

.practice-mode-option-copy strong {
    font-size: .92rem;
    color: var(--home-text);
}

.practice-mode-option-copy span {
    font-size: .76rem;
    color: var(--home-text-muted);
}

.practice-mode-option-check {
    color: #7c3aed;
    opacity: 0;
    font-size: .9rem;
}

.practice-mode-option.is-active .practice-mode-option-check {
    opacity: 1;
}

/* Schedule review popup */
.schedule-modal {
    z-index: 1065;
}

.schedule-modal-dialog {
    max-width: min(420px, calc(100vw - 1.5rem));
    margin: .75rem auto;
}

.schedule-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .22);
    background: #fff;
}

.schedule-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.15rem .85rem;
    background: linear-gradient(135deg, #1a6dff 0%, #6366f1 55%, #7c3aed 100%);
    color: #fff;
}

.schedule-modal-eyebrow {
    margin: 0 0 .2rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.schedule-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.schedule-modal-close {
    border: none;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.schedule-modal-close:hover {
    background: rgba(255, 255, 255, .28);
}

.schedule-modal-body {
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.schedule-day-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
}

.schedule-day-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    border: none;
    border-radius: 14px;
    padding: .75rem .85rem;
    text-align: left;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(26, 109, 255, .28);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.schedule-day-btn:nth-child(1) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, .28);
}

.schedule-day-btn:nth-child(2) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 16px rgba(14, 165, 233, .28);
}

.schedule-day-btn:nth-child(3) {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
}

.schedule-day-btn:nth-child(4) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .28);
}

.schedule-day-btn:nth-child(5) {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 6px 16px rgba(168, 85, 247, .28);
}

.schedule-day-btn:nth-child(6) {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 6px 16px rgba(236, 72, 153, .28);
}

.schedule-day-btn:nth-child(7) {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
}

.schedule-day-btn:nth-child(8) {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 6px 16px rgba(100, 116, 139, .28);
}

.schedule-day-btn-label {
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.schedule-day-btn-date {
    font-size: .72rem;
    font-weight: 600;
    opacity: .9;
}

.schedule-day-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.schedule-day-btn.active {
    transform: scale(.97);
    filter: brightness(.95);
}

@keyframes scheduleBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Schedule review toast — top right */
.schedule-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.schedule-toast-host.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.schedule-toast {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    display: flex;
    gap: .75rem;
    padding: .9rem 1rem .75rem;
}

.schedule-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.schedule-toast-content {
    flex: 1;
    min-width: 0;
}

.schedule-toast-title {
    margin: 0 0 .2rem;
    font-size: .82rem;
    font-weight: 800;
    color: var(--home-text);
}

.schedule-toast-message {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--home-text-muted);
}

.schedule-toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #e8edf5;
}

.schedule-toast-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--home-blue), #7c3aed);
    transform-origin: left center;
    animation: scheduleToastProgress linear forwards;
}

@keyframes scheduleToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
    .practice-modal-dialog,
    .practice-modal-content {
        min-height: min(88vh, 100%);
    }

    .practice-modal-notes {
        min-height: 240px;
    }

    .practice-modal-header-bar {
        flex-wrap: wrap;
    }

    .practice-modal-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .practice-modal-body {
        order: 3;
    }

    .practice-modal-rating {
        order: 4;
        position: sticky;
        bottom: 0;
        z-index: 6;
        border-bottom: none;
        border-top: 1px solid var(--home-border);
        padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 28px rgba(15, 23, 42, .1);
    }

    .practice-modal-actions--cards {
        grid-template-columns: 1fr;
    }

    .practice-modal-actions {
        grid-template-columns: 1fr;
    }

    .schedule-day-grid {
        grid-template-columns: 1fr;
    }

    .schedule-toast-host {
        top: .75rem;
        right: .75rem;
        left: .75rem;
        width: auto;
    }
}

.practice-modal .modal-footer {
    border-top: 1px solid var(--home-border);
    padding: 1rem 1.5rem;
    gap: .5rem;
}

.btn-practice-secondary {
    background: #eef2f7;
    color: var(--home-text-muted);
    font-weight: 700;
    border: 1px solid #e2e8f3;
    border-radius: 10px;
    padding: .55rem 1.25rem;
}

.btn-practice-secondary:hover {
    background: #e2e8f0;
    color: var(--home-text);
    border-color: #cbd5e1;
}

@media (min-width: 768px) {
    .practice-footer-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.5rem 1.65rem;
    }

    .practice-feature-item {
        align-items: flex-start;
        gap: .7rem;
    }

    .practice-question-card {
        padding: 1.5rem 1.7rem 1.55rem;
    }

    .practice-item-progress {
        width: 64px;
        height: 64px;
    }

    .practice-ring-label {
        font-size: .72rem;
    }

    .practice-main {
        padding: 2rem 1.5rem 3rem;
    }

    .practice-goal-card--month {
        padding-right: 5.75rem;
    }

    .practice-goal-card-art {
        width: 80px;
        height: 70px;
    }
}

@media (max-width: 767.98px) {
    .practice-item-progress {
        width: 52px;
        height: 52px;
    }

    .practice-ring-label {
        font-size: .62rem;
    }

    .practice-question-content {
        font-size: 1.02rem;
        min-height: 0;
        padding-top: 0;
        padding-bottom: .5rem;
        text-align: left;
        align-items: flex-start;
    }

    .practice-btn {
        padding: .75rem .8rem;
        min-height: 72px;
    }

    .practice-btn-icon {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }

    .practice-btn-text {
        font-size: .95rem;
    }

    .practice-actions {
        grid-template-columns: 1fr;
    }

    .practice-footer-features {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.15rem;
        padding: 1.15rem 1rem;
    }

    .practice-goal-card--month {
        padding-right: 4.75rem;
    }

    .practice-goal-card-art {
        width: 64px;
        height: 56px;
    }
}

.elh-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.elh-navbar .nav-menu-icon {
    font-size: .8rem;
    opacity: .85;
    width: 1rem;
    text-align: center;
}

.elh-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.btn-elh-primary {
    background: var(--elh-accent);
    border-color: var(--elh-accent);
    color: #fff;
}

.btn-elh-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, var(--elh-primary) 0%, #0f2744 60%, var(--elh-accent) 100%);
    border-radius: 0 0 1.5rem 1.5rem;
}

.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--elh-accent);
    margin-bottom: .75rem;
}

.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════
   Premium Auth (Login / Register)
   ═══════════════════════════════════════════ */

body.body-auth {
    background: #f7f8fc;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--home-text);
}

body.body-auth .auth-main {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-page {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
    min-height: calc(100vh - 76px);
}

.auth-page-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-page-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.auth-page-orb--purple {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(124, 58, 237, .18) 0%, transparent 68%);
}

.auth-page-orb--blue {
    width: 380px;
    height: 380px;
    right: -60px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, .14) 0%, transparent 70%);
}

.auth-page-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
}

.auth-card-premium {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 24px;
    padding: 2rem 1.85rem 1.75rem;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .1),
        0 0 0 1px rgba(255, 255, 255, .65) inset;
    backdrop-filter: blur(12px);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .9rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(99, 102, 241, .32);
}

.auth-card-title {
    margin: 0 0 .35rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--home-text);
}

.auth-card-sub {
    margin: 0;
    font-size: .9rem;
    color: var(--home-text-muted);
    line-height: 1.5;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: 100%;
    min-height: 48px;
    padding: .7rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f3;
    background: #fff;
    color: var(--home-text);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    transition: border-color .15s, box-shadow .2s, transform .15s;
}

.auth-google-btn:hover {
    color: var(--home-text);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.auth-google-btn--disabled,
.auth-google-btn--disabled:hover {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    background: #f8fafc;
}

.auth-google-hint {
    margin: .55rem 0 0;
    text-align: center;
    font-size: .72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.auth-google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.15rem 0 1.25rem;
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8edf5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-alert {
    padding: .7rem .85rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .84rem;
    margin: 0;
    list-style: none;
}

.auth-alert:empty {
    display: none;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.auth-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .92rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 48px;
    padding: .7rem 1rem .7rem 2.65rem;
    border: 1px solid #e2e8f3;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--home-text);
    font-size: .92rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.auth-field-error {
    color: #dc2626;
    font-size: .78rem;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: .84rem;
    color: var(--home-text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: #6366f1;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 50px;
    margin-top: .15rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(13, 148, 136, .32);
    transition: transform .15s, box-shadow .2s, filter .2s;
    cursor: pointer;
}

.auth-submit-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(13, 148, 136, .38);
    filter: brightness(1.02);
}

.auth-switch {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: .86rem;
    color: var(--home-text-muted);
}

.auth-switch a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.auth-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 1rem 0 0;
    font-size: .76rem;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1.5rem .85rem 2rem;
        min-height: calc(100vh - 68px);
    }

    .auth-card-premium {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 20px;
    }

    .auth-card-title {
        font-size: 1.35rem;
    }
}

/* ═══════════════════════════════════════════
   Premium Homepage
   ═══════════════════════════════════════════ */

body.body-home {
    background: #fff;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--home-text);
}

body.body-home .home-main {
    padding: 0;
    flex: 1;
}

/* ── Navbar ── */
.home-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--home-border);
}

.home-navbar {
    padding: .75rem 0;
    background: #fff !important;
}

.home-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--home-text) !important;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.home-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.home-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-brand-tagline {
    font-size: .72rem;
    font-weight: 500;
    color: var(--home-text-muted);
    margin-top: .12rem;
}

.home-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .2rem .35rem .2rem .2rem;
}

.home-user-chip-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s ease;
}

.home-user-chip-toggle:hover,
.home-user-dropdown.show .home-user-chip-toggle {
    background: #f5f3ff;
}

.home-user-chevron {
    font-size: .62rem;
    color: var(--home-text-muted);
    margin-left: .1rem;
    transition: transform .15s ease;
}

.home-user-dropdown.show .home-user-chevron {
    transform: rotate(180deg);
}

.home-user-menu {
    min-width: 220px;
    padding: .45rem;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    margin-top: .45rem !important;
}

.home-user-menu .dropdown-item {
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    padding: .55rem .75rem;
    color: var(--home-text);
}

.home-user-menu .dropdown-item:hover,
.home-user-menu .dropdown-item:focus {
    background: #f5f3ff;
    color: #6d28d9;
}

.home-user-menu .dropdown-item.active {
    background: #ede9fe;
    color: #6d28d9;
}

.home-user-logout-form {
    margin: 0;
}

.home-user-menu-logout {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.home-user-menu-logout:hover,
.home-user-menu-logout:focus {
    color: #dc2626;
    background: #fef2f2;
}

.home-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
}

.home-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-user-meta strong {
    font-size: .84rem;
    color: var(--home-text);
}

.home-user-meta small {
    font-size: .72rem;
    color: var(--home-text-muted);
}

.home-user-logout {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--home-border);
    background: #fff;
    color: var(--home-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.home-user-logout:hover {
    border-color: #c4b5fd;
    color: #7c3aed;
    background: #faf5ff;
}

.home-nav-links {
    align-items: center;
    gap: .2rem;
}

.home-nav-links .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-nav-links .nav-link {
    color: var(--home-text-muted) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .48rem .95rem !important;
    position: relative;
    transition: color .2s, background .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 10px;
}

.nav-menu-icon {
    font-size: .8rem;
    opacity: .75;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
    transition: opacity .2s, color .2s;
}

.home-nav-links .nav-link:hover .nav-menu-icon {
    opacity: 1;
}

.home-nav-links .nav-link.active .nav-menu-icon {
    opacity: 1;
    color: #7c3aed;
}

.dropdown-icon {
    width: 1.1rem;
    margin-right: .5rem;
    color: var(--home-blue);
    opacity: .8;
}

.home-nav-links .nav-link:hover {
    color: #7c3aed !important;
    background: #faf5ff;
}

.home-nav-links .nav-link.active {
    color: #7c3aed !important;
    font-weight: 600;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .1);
}

.home-nav-links .nav-item:has(.nav-link.active)::after {
    content: "";
    display: block;
    width: 62%;
    min-width: 2.5rem;
    height: 3px;
    margin-top: .2rem;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    border-radius: 999px;
}

.home-nav-actions {
    align-items: center;
    gap: .25rem;
}

.home-nav-dropdown .dropdown-toggle::after {
    margin-left: .35rem;
    vertical-align: .15em;
}

.home-nav-dropdown-menu {
    border: 1px solid var(--home-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: .4rem;
    min-width: 13rem;
}

.home-nav-dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .75rem;
}

.home-nav-dropdown-menu .dropdown-item.active,
.home-nav-dropdown-menu .dropdown-item:active {
    background: rgba(124, 58, 237, .1);
    color: var(--home-blue);
}

.home-nav-soon {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(148, 163, 184, .2);
    color: #64748b;
    vertical-align: middle;
}

.home-nav-dropdown.is-active-group > .nav-link {
    color: var(--home-blue);
    font-weight: 600;
}

.module-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 5rem);
    padding: 2rem 1rem;
}

.module-coming-soon-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--home-shadow);
}

.module-coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: var(--home-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.module-coming-soon-eyebrow {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--home-muted);
}

.module-coming-soon-title {
    margin: 0 0 .75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-text);
}

.module-coming-soon-lead {
    margin: 0 0 .75rem;
    color: var(--home-muted);
    line-height: 1.55;
}

.module-coming-soon-note {
    margin: 0 0 1.5rem;
    font-size: .9rem;
    color: var(--home-muted);
}

.module-coming-soon-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    align-items: stretch;
}

.module-coming-soon-actions .btn-link {
    color: var(--home-muted);
    text-decoration: none;
    font-size: .875rem;
}

.btn-home-signin {
    color: var(--home-text) !important;
    font-weight: 500;
    font-size: .875rem;
    padding: .45rem 1rem;
    border: none;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-home-signin:hover {
    color: var(--home-blue) !important;
}

.btn-home-register {
    background: var(--home-blue);
    color: #fff !important;
    font-weight: 600;
    font-size: .875rem;
    padding: .5rem 1.25rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .2s, box-shadow .2s;
}

.btn-home-register:hover {
    background: var(--home-blue-dark);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(26, 109, 255, .35);
}

.btn-home-outline {
    color: var(--home-text);
    border: 1.5px solid var(--home-border);
    background: #fff;
    font-weight: 500;
    padding: .45rem 1rem;
    border-radius: 8px;
}

.btn-home-outline:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
}

.home-navbar .navbar-toggler {
    border-color: var(--home-border);
}

.home-toggler-icon {
    filter: invert(30%);
}

/* ── Hero ── */
.home-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94) 0%, rgba(240, 247, 255, .88) 48%, rgba(255, 255, 255, .82) 100%),
        #fff url("/img/MainBack.png") no-repeat center right / cover;
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.home-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.5rem 2.5rem;
    align-items: center;
}

.home-hero-copy {
    max-width: 560px;
}

.home-hero-badge {
    display: inline-block;
    background: var(--home-blue-light);
    color: var(--home-blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.home-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-text);
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

.home-hero-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #1a6dff 55%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-subtitle {
    font-size: 1.05rem;
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: .85rem;
}

.home-hero-tagline {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .95rem;
    color: var(--home-text);
    line-height: 1.55;
    margin-bottom: 1.75rem;
    padding-left: .15rem;
}

.home-hero-tagline i {
    color: #6366f1;
    margin-top: .2rem;
    flex-shrink: 0;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-bottom: 0;
}

.btn-home-primary,
.btn-home-explore {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .58rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.5rem;
    letter-spacing: .01em;
}

.btn-home-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    flex-shrink: 0;
}

.btn-home-primary {
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 6px 18px rgba(26, 109, 255, .22);
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-home-primary .btn-home-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.btn-home-primary:hover {
    background: linear-gradient(135deg, #0d4fd4 0%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 109, 255, .28);
    transform: translateY(-1px);
}

.btn-home-explore {
    color: var(--home-text);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(203, 213, 225, .95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn-home-explore .btn-home-icon--muted {
    background: #f1f5f9;
    color: #6366f1;
    border: 1px solid #e2e8f0;
}

.btn-home-explore:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, .35);
    color: #4338ca;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .1);
}

.home-hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 2.25rem;
    position: relative;
}

.home-hero-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: .75rem;
    row-gap: .35rem;
    align-items: center;
    min-height: 7.5rem;
    padding: 1.15rem 1rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 243, .9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-hero-feature-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 54px;
    height: 62px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(145deg, rgba(99, 102, 241, .14) 0%, rgba(99, 102, 241, .05) 100%);
    pointer-events: none;
    z-index: 0;
}

.home-hero-feature-card::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -6px;
    width: 52px;
    height: 52px;
    opacity: .45;
    background-image: radial-gradient(rgba(99, 102, 241, .2) 1.5px, transparent 1.5px);
    background-size: 9px 9px;
    pointer-events: none;
    z-index: 0;
}

.home-hero-feature-card:nth-child(1) {
    background: linear-gradient(145deg, rgba(237, 233, 254, .5) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(224, 242, 254, .48) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(220, 252, 231, .42) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(255, 237, 213, .4) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card > * {
    position: relative;
    z-index: 1;
}

.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.home-hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 620px;
    line-height: 0;
}

.home-hero-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, .22);
    box-shadow: 0 14px 32px rgba(79, 70, 229, .1);
}

.home-hero-feature-icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
    align-self: center;
}

.home-hero-feature-icon--ai {
    background: linear-gradient(135deg, #ede9fe 0%, #e8f1ff 100%);
    color: #6366f1;
}

.home-hero-feature-icon--review {
    background: linear-gradient(135deg, #e0f2fe 0%, #e8f1ff 100%);
    color: #0284c7;
}

.home-hero-feature-icon--language {
    background: linear-gradient(135deg, #dcfce7 0%, #e8f1ff 100%);
    color: #059669;
}

.home-hero-feature-icon--progress {
    background: linear-gradient(135deg, #ffedd5 0%, #ede9fe 100%);
    color: #ea580c;
}

.home-hero-feature-title {
    grid-column: 2;
    grid-row: 1;
    font-size: .88rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
    line-height: 1.3;
    align-self: end;
}

.home-hero-feature-text {
    grid-column: 2;
    grid-row: 2;
    font-size: .74rem;
    color: var(--home-text-muted);
    line-height: 1.5;
    margin: 0;
    padding-right: 0;
}

.home-hero-feature-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    position: static;
    align-self: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--home-border);
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.home-hero-feature-card:hover .home-hero-feature-arrow {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.home-hero-image {
    display: block;
    width: 100%;
    max-width: 620px;
    max-height: min(460px, 52vh);
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 18px 36px rgba(79, 70, 229, .14));
}

/* ── Feature Cards ── */
.home-features {
    padding: 2rem 0 3.5rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.home-feature-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    height: 100%;
    position: relative;
    box-shadow: var(--home-shadow);
    transition: box-shadow .25s, transform .25s;
}

.home-feature-card:hover {
    box-shadow: var(--home-shadow-hover);
    transform: translateY(-4px);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--home-blue-light);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.home-feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--home-text);
    margin-bottom: .6rem;
}

.home-feature-card p {
    font-size: .875rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.home-feature-link {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--home-blue-light);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.home-feature-link:hover {
    background: var(--home-blue);
    color: #fff;
}

.home-feature-link-static {
    cursor: default;
}

/* ── Stats ── */
.home-stats {
    padding: 2.5rem 0;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    background: #fafbfd;
}

.home-stat-item {
    padding: .5rem;
}

.home-stat-icon {
    font-size: 1.5rem;
    color: var(--home-blue);
    margin-bottom: .5rem;
    opacity: .85;
}

.home-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.2;
}

.home-stat-label {
    font-size: .85rem;
    color: var(--home-text-muted);
    font-weight: 500;
    margin-top: .15rem;
}

/* ── Benefits ── */
.home-benefits {
    padding: 2rem 0 3.5rem;
    background: #fff;
}

.home-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1rem .5rem;
}

.home-benefit-item i {
    font-size: 1.6rem;
    color: var(--home-blue);
    opacity: .8;
}

.home-benefit-item span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--home-text-muted);
}

/* ── Home responsive ── */
@media (max-width: 991.98px) {
    .home-hero {
        background-position: center center;
        padding: 2rem 0 2.5rem;
    }

    .home-hero-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .home-hero-copy {
        max-width: none;
        margin: 0 auto;
    }

    .home-hero-tagline {
        justify-content: center;
        text-align: left;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-image-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-image {
        max-height: 320px;
    }

    .home-nav-links .nav-item:has(.nav-link.active)::after {
        display: none;
    }

    .home-nav-links .nav-link.active {
        background: #ede9fe;
    }

    .home-nav-actions {
        flex-direction: row;
        padding: .75rem 0;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 1.85rem;
    }

    .home-hero-features {
        grid-template-columns: 1fr;
    }

    .home-hero-actions .btn {
        width: auto;
        min-width: 10.5rem;
        justify-content: center;
    }

    .home-stat-value {
        font-size: 1.4rem;
    }
}

/* Global page loader */
html.elh-page-loading,
html.elh-page-loading body {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.page-loader.is-active,
html.elh-page-loading .page-loader {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.page-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-loader-card {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
        0 24px 60px rgba(26, 77, 180, .14),
        0 8px 24px rgba(109, 40, 217, .08);
    text-align: center;
    animation: pageLoaderCardIn .45s cubic-bezier(.22, 1, .36, 1);
}

.page-loader-visual {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}

.page-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.page-loader-ring-outer {
    border-top-color: var(--home-blue);
    border-right-color: rgba(26, 109, 255, .25);
    animation: pageLoaderSpin 1.1s linear infinite;
}

.page-loader-ring-inner {
    inset: 12px;
    border-bottom-color: #7c3aed;
    border-left-color: rgba(124, 58, 237, .25);
    animation: pageLoaderSpinReverse .9s linear infinite;
}

.page-loader-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--home-blue);
    animation: pageLoaderPulse 1.6s ease-in-out infinite;
}

.page-loader-brand {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--home-text);
}

.page-loader-message {
    margin: 0 0 1rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--home-text-muted);
}

.page-loader-dots {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.page-loader-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-blue), #7c3aed);
    animation: pageLoaderDot 1.2s ease-in-out infinite;
}

.page-loader-dots span:nth-child(2) {
    animation-delay: .15s;
}

.page-loader-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes pageLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes pageLoaderSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes pageLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .85; }
}

@keyframes pageLoaderDot {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-5px); opacity: 1; }
}

@keyframes pageLoaderCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.practice-language-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: var(--home-blue);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid #d4e4ff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
    transition: transform .15s, box-shadow .2s, border-color .2s;
    width: fit-content;
    white-space: nowrap;
}

.practice-language-pill--action {
    font-size: .95rem;
    padding: .65rem 1.1rem;
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.practice-language-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
    box-shadow: 0 4px 18px rgba(37, 99, 235, .08);
}

.practice-language-bar-text {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: min(100%, 280px);
}

.practice-language-bar-text > i {
    color: var(--home-blue);
    font-size: 1.25rem;
    margin-top: .15rem;
}

.practice-language-bar-text strong {
    display: block;
    color: var(--home-text);
    font-size: .95rem;
    margin-bottom: .15rem;
}

.practice-language-bar-text span {
    display: block;
    color: var(--home-text-muted);
    font-size: .82rem;
    line-height: 1.45;
    max-width: 520px;
}

.practice-nav-language {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.practice-language-pill:hover {
    color: var(--home-blue);
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}

.practice-lang-change-row {
    display: none;
}

.practice-lang-change-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: var(--home-text-muted);
    font-size: .84rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .1);
    transition: border-color .15s, color .15s, transform .15s, box-shadow .2s;
    justify-self: end;
    white-space: nowrap;
}

.practice-lang-change-link strong {
    color: #7c3aed;
    font-weight: 800;
}

.practice-lang-change-link:hover {
    color: var(--home-blue);
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.practice-language-main {
    min-height: calc(100vh - 80px);
    padding: 0;
}

.practice-language-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 45%);
}

.practice-language-card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5eefb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .practice-language-card {
        padding: 2.5rem 2.25rem;
    }
}

.practice-language-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.practice-language-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-blue);
    background: var(--home-blue-light);
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .85rem;
}

.practice-language-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: .65rem;
}

.practice-language-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--home-text-muted);
    line-height: 1.6;
}

.practice-language-alert {
    max-width: 520px;
    margin: 1rem auto 0;
    text-align: left;
}

.practice-lang-field {
    margin-bottom: 1.75rem;
}

.practice-lang-label {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: .35rem;
}

.practice-lang-hint {
    margin: 0 0 .85rem;
    color: var(--home-text-muted);
    font-size: .86rem;
}

.practice-lang-combobox {
    position: relative;
    max-width: 640px;
    margin: 0 auto 1rem;
}

.practice-lang-combobox-control {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .06);
    transition: border-color .15s, box-shadow .15s;
}

.practice-lang-combobox-control:focus-within {
    border-color: var(--home-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.practice-lang-combobox-control > .fa-magnifying-glass {
    color: var(--home-blue);
    font-size: .95rem;
}

.practice-lang-combobox-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--home-text);
    min-width: 0;
}

.practice-lang-combobox-clear {
    border: 0;
    background: #eff6ff;
    color: var(--home-blue);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.practice-lang-combobox-panel {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + .45rem);
    max-height: 320px;
    overflow: auto;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    padding: .45rem;
}

.practice-lang-combobox-group-label {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .55rem .75rem .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-blue);
    background: linear-gradient(180deg, #fff 75%, rgba(255, 255, 255, .85));
}

.practice-lang-combobox-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 0;
    background: transparent;
    text-align: left;
    padding: .7rem .75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background .12s;
}

.practice-lang-combobox-option:hover,
.practice-lang-combobox-option.is-active {
    background: #eff6ff;
}

.practice-lang-combobox-option.is-selected {
    background: #dbeafe;
}

.practice-lang-combobox-option-main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.practice-lang-combobox-option-name {
    font-weight: 700;
    color: var(--home-text);
    font-size: .95rem;
}

.practice-lang-combobox-option-native {
    font-size: .84rem;
    color: var(--home-text-muted);
}

.practice-lang-combobox-option-native.is-rtl,
.practice-lang-selected-preview .is-rtl {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

.practice-lang-combobox-option-check {
    color: var(--home-blue);
    font-size: .9rem;
    flex-shrink: 0;
}

.practice-lang-combobox-empty {
    padding: 1rem .75rem;
    text-align: center;
    color: var(--home-text-muted);
    font-size: .9rem;
}

.practice-lang-selected-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    max-width: 640px;
    margin: 0 auto;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px dashed #bfdbfe;
    color: var(--home-text);
    font-size: .92rem;
    font-weight: 600;
}

.practice-lang-selected-preview.is-empty {
    color: var(--home-text-muted);
    font-weight: 500;
}

.practice-lang-selected-preview > i {
    color: var(--home-blue);
}

.practice-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .85rem;
    margin-bottom: 1.75rem;
}

.practice-language-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.practice-language-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.practice-language-option-body {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 58px;
    padding: .85rem 1rem;
    border-radius: 14px;
    border: 2px solid #e5eefb;
    background: #fff;
    color: var(--home-text);
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}

.practice-language-option:hover .practice-language-option-body {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.practice-language-option input:checked + .practice-language-option-body,
.practice-language-option.is-selected .practice-language-option-body {
    border-color: var(--home-blue);
    background: var(--home-blue-light);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
}

.practice-language-option-body i {
    color: var(--home-blue);
    font-size: 1.05rem;
}

.practice-modal .practice-translation.lang-persian,
.practice-modal .practice-translation-slot.lang-persian,
.practice-modal .practice-translation.lang-pashto,
.practice-modal .practice-translation-slot.lang-pashto,
.practice-modal .practice-translation.lang-hebrew,
.practice-modal .practice-translation-slot.lang-hebrew {
    font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Arial", sans-serif;
    font-size: calc(1.05em + 1px);
}

.practice-language-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   Profile page (matches practice / vocab UI)
   ═══════════════════════════════════════════ */

body.body-profile {
    background-color: #f3eef8;
    background-image: url("/img/qback.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--home-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.profile-page {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-hero-card {
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.profile-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 10px 24px rgba(124, 58, 237, .28);
    flex-shrink: 0;
}

.profile-hero-eyebrow {
    margin: 0 0 .2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.profile-hero-name {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-text);
}

.profile-hero-email {
    margin: .25rem 0 0;
    font-size: .88rem;
    color: #64748b;
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .62rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .25);
}

.profile-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(124, 58, 237, .32);
}

.profile-btn--secondary {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.profile-btn--secondary:hover {
    color: #1e293b;
    border-color: #c7d2fe;
    background: #f8fafc;
}

.profile-btn--ghost {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}

.profile-btn--ghost:hover {
    background: #f8fafc;
    color: #334155;
}

.profile-btn--sm {
    padding: .4rem .7rem;
    font-size: .78rem;
    border-radius: 10px;
}

.profile-btn--block {
    width: 100%;
}

.profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

@media (min-width: 768px) {
    .profile-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .profile-hero-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.profile-hero-stat {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.profile-hero-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    line-height: 1;
}

.profile-hero-stat-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-size: inherit;
}

.profile-hero-stat-icon i::before {
    line-height: 1;
}

.profile-hero-stat-icon--img {
    padding: 0;
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    box-shadow: 0 6px 14px rgba(245, 158, 11, .18);
}

.profile-hero-stat-icon--img img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.profile-hero-stat--streak .profile-hero-stat-icon {
    background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(234, 88, 12, .25);
    font-size: .95rem;
}

.profile-hero-stat--best .profile-hero-stat-icon {
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(217, 119, 6, .22);
    font-size: .95rem;
}

.profile-hero-stat--library .profile-hero-stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
    font-size: .9rem;
}

.profile-hero-stat--mastered .profile-hero-stat-icon {
    background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(124, 58, 237, .25);
    font-size: .95rem;
}

.profile-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--home-text);
}

.profile-hero-stat > div > span {
    display: block;
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.profile-section-head {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.profile-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--home-text);
}

.profile-section-lead {
    margin: 0;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 62ch;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
}

@media (min-width: 640px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.profile-library-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .75rem;
    min-height: 0;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.profile-library-card {
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}

.profile-goal-count--month { color: #2563eb; }
.profile-goal-count--library { color: #475569; }

.profile-fill-month { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.profile-fill-library { background: linear-gradient(90deg, #64748b, #94a3b8); }
.profile-fill-milestone { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.profile-fill-word { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.profile-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .65rem;
}

.profile-tier-card {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.profile-tier-card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.profile-tier-card-label {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: var(--home-text);
    text-transform: capitalize;
}

.profile-tier-card-count {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    margin: .1rem 0 .25rem;
    color: var(--home-text);
}

.profile-tier-card-copy p {
    margin: 0;
    font-size: .74rem;
    color: #64748b;
    line-height: 1.4;
}

.profile-tier-card--learner { background: linear-gradient(160deg, #fff 0%, #ecfdf5 100%); border-color: #a7f3d0; }
.profile-tier-card--familiar { background: linear-gradient(160deg, #fff 0%, #eff6ff 100%); border-color: #bfdbfe; }
.profile-tier-card--mastered { background: linear-gradient(160deg, #fff 0%, #f3e8ff 100%); border-color: #e9d5ff; }
.profile-tier-card--expert { background: linear-gradient(160deg, #fff 0%, #fef9c3 100%); border-color: #fcd34d; }

.profile-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .profile-two-col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.profile-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.profile-panel-head {
    margin-bottom: 1rem;
}

.profile-targets-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-targets-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 520px) {
    .profile-targets-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.profile-field > span {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
}

.profile-field-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.profile-field-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .65rem .75rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--home-text);
    min-width: 0;
}

.profile-field-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .2);
}

.profile-field-suffix {
    padding: 0 .75rem;
    font-size: .78rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.profile-target-presets-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-target-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.profile-target-preset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: .45rem .7rem;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.profile-target-preset:hover {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.profile-target-preset strong {
    font-size: .92rem;
    color: var(--home-text);
}

.profile-target-preset span {
    font-size: .72rem;
    color: #64748b;
    margin-left: .15rem;
}

.profile-next-milestone {
    padding: .9rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 1rem;
}

.profile-next-milestone-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .65rem;
}

.profile-next-milestone-head i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
}

.profile-next-milestone-head span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9a3412;
}

.profile-next-milestone-head strong {
    display: block;
    font-size: .95rem;
    color: #7c2d12;
}

.profile-next-milestone-progress {
    margin: .45rem 0 0;
    font-size: .78rem;
    color: #9a3412;
}

.profile-milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .65rem;
}

.profile-milestone-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .85rem .55rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    text-align: center;
}

.profile-milestone-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
    font-size: 1rem;
}

.profile-milestone-badge-title {
    font-size: .78rem;
    font-weight: 700;
    color: #7c2d12;
    line-height: 1.25;
}

.profile-milestone-badge-date {
    font-size: .68rem;
    color: #9a3412;
    opacity: .85;
}

.profile-panel--words {
    padding: 1.2rem;
}

.profile-words-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.profile-words-head-copy {
    flex: 1 1 220px;
    min-width: 0;
}

.profile-search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.profile-search-wrap {
    position: relative;
    width: min(280px, 42vw);
    min-width: 200px;
}

.profile-search-wrap i {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

.profile-search-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .6rem .75rem .6rem 2.15rem;
    font-size: .86rem;
    background: #f8fafc;
}

.profile-search-input:focus {
    outline: none;
    border-color: #c4b5fd;
    background: #fff;
}

@media (max-width: 720px) {
    .profile-words-head {
        align-items: stretch;
    }

    .profile-search-form {
        width: 100%;
        margin-left: 0;
    }

    .profile-search-wrap {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

.profile-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}

.profile-filter-tab {
    padding: .42rem .82rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    color: #475569;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.profile-filter-tab:hover {
    color: #334155;
    border-color: #c7d2fe;
    background: #eef2ff;
}

.profile-filter-tab.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .22);
}

.profile-word-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.profile-word-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.profile-word-table th,
.profile-word-table td {
    padding: .75rem .85rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.profile-word-table th {
    background: #f8fafc;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.profile-word-table tr:last-child td {
    border-bottom: 0;
}

.profile-words-body {
    position: relative;
    min-height: 14rem;
}

.profile-words-content {
    transition: opacity .15s ease;
    min-height: 10rem;
}

.profile-words-body.is-loading .profile-words-content {
    opacity: .35;
    pointer-events: none;
}

.profile-words-loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.profile-words-loading[hidden] {
    display: none !important;
}

.profile-words-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: 1rem;
    text-align: center;
}

.profile-words-loading-inner p {
    margin: 0;
    font-size: .86rem;
    font-weight: 600;
    color: #4c1d95;
}

.profile-word-table tbody tr:hover {
    background: #fafbff;
}

.profile-word-cell-word strong {
    display: block;
    font-size: .92rem;
    color: var(--home-text);
}

.profile-word-level {
    display: inline-block;
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .12rem .4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.profile-word-table .practice-meta-tier {
    cursor: default;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.profile-word-progress-bar {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 140px;
}

.profile-word-progress-bar span {
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

.profile-word-cell-date {
    font-size: .78rem;
    color: #64748b;
    white-space: nowrap;
}

.profile-word-cell-action {
    text-align: right;
}

.profile-restore-form {
    margin: 0;
}

.profile-pagination,
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}

.profile-page-link,
.admin-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    border-radius: 8px;
    border: 0;
    background: #f1f5f9;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
}

.profile-page-link.is-active,
.admin-page-link.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}

.profile-empty-state {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: .86rem;
    text-align: center;
}

.profile-empty-state--large {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.profile-empty-state--large i {
    font-size: 2rem;
    color: #c4b5fd;
}

.profile-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    background: #0f172a;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
    transition: opacity .3s ease, transform .3s ease;
}

.profile-toast--hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.practice-help-trigger { cursor: pointer; position: relative; }
.practice-help-icon {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 2;
    border: 0;
    background: rgba(255,255,255,.92);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: var(--home-blue);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.practice-monthly-header { margin-top: .65rem; }
.practice-monthly-fill { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.practice-daily-hint { display: block; color: var(--home-text-muted); font-size: .75rem; }
.practice-auth-notice--trial {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #4c1d95;
}

.practice-auth-notice--trial i {
    color: #7c3aed;
}

.practice-signin-lead {
    margin-bottom: 1rem;
    color: var(--home-text-muted);
}

.practice-signin-benefits {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.practice-signin-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .9rem;
    color: var(--home-text);
}

.practice-signin-benefits i {
    width: 1.25rem;
    color: #7c3aed;
    margin-top: .15rem;
    flex-shrink: 0;
}

.practice-signin-actions {
    display: grid;
    gap: .75rem;
}

.practice-signin-google {
    width: 100%;
    justify-content: center;
}

.practice-signin-email {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.practice-signin-register {
    text-align: center;
    font-size: .88rem;
    color: var(--home-text-muted);
    text-decoration: none;
}

.practice-signin-register:hover {
    color: var(--home-blue);
}

.practice-help-modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(15,23,42,.18); }

/* Skip word confirmation modal */
.practice-skip-modal-dialog {
    max-width: min(420px, calc(100vw - 1.5rem));
}

.practice-skip-modal-content {
    position: relative;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .2);
    text-align: center;
}

.practice-skip-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.practice-skip-modal-close:hover {
    background: #fff;
    color: #334155;
    transform: scale(1.04);
}

.practice-skip-modal-hero {
    position: relative;
    padding: 1.75rem 1rem .5rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 72%);
}

.practice-skip-modal-icon-ring {
    position: absolute;
    top: 1.35rem;
    left: 50%;
    width: 5.5rem;
    height: 5.5rem;
    margin-left: -2.75rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 191, 36, .22) 0%, rgba(251, 191, 36, 0) 70%);
}

.practice-skip-modal-icon {
    position: relative;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, .35);
}

.practice-skip-modal-body {
    padding: .35rem 1.35rem 1rem;
}

.practice-skip-modal-eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d97706;
}

.practice-skip-modal-title {
    margin: 0 0 .55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -.02em;
}

.practice-skip-modal-lead {
    margin: 0 0 1rem;
    font-size: .9rem;
    line-height: 1.55;
    color: #64748b;
}

.practice-skip-modal-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
    text-align: left;
}

.practice-skip-modal-points li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .7rem .85rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    font-size: .84rem;
    line-height: 1.45;
    color: #475569;
}

.practice-skip-modal-point-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #fff;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .72rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.practice-skip-modal-footer {
    display: flex;
    gap: .65rem;
    padding: 0 1.35rem 1.35rem;
}

.practice-skip-modal-cancel,
.practice-skip-modal-confirm {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.practice-skip-modal-cancel {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.practice-skip-modal-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.practice-skip-modal-confirm {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 22px rgba(234, 88, 11, .28);
}

.practice-skip-modal-confirm:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(234, 88, 11, .34);
}

@media (max-width: 575.98px) {
    .practice-skip-modal-footer {
        flex-direction: column-reverse;
    }
}
.practice-help-body { padding-top: .35rem; }
.practice-help-topic-focus {
    margin: 0 0 .85rem;
    padding: .7rem .85rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: .84rem;
    color: #1e3a8a;
    line-height: 1.5;
}
.practice-help-rules {
    margin: 0 0 1rem;
    padding: .9rem .95rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.practice-help-rules-title {
    margin: 0 0 .65rem;
    font-size: .92rem;
    font-weight: 800;
    color: var(--home-text);
}
.practice-help-rules-list {
    margin: 0 0 .65rem;
    padding-left: 1.15rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-rules-list li + li {
    margin-top: .55rem;
}
.practice-help-rules-warn {
    color: #9a3412;
}
.practice-help-rules-goal {
    margin: 0;
    padding-top: .55rem;
    border-top: 1px solid #e8edf5;
    font-size: .82rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-lead {
    margin: 0 0 .85rem;
    font-size: .9rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .85rem;
}
@media (min-width: 480px) {
    .practice-help-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.practice-help-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem .5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.practice-help-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
.practice-help-tab.is-active {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    border-color: #c4b5fd;
    color: #5b21b6;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .12);
}
.practice-help-tab i {
    font-size: .72rem;
    opacity: .9;
}
.practice-help-panel {
    padding: .9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 14px;
}
.practice-help-panel-title {
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 800;
    color: var(--home-text);
}
.practice-help-panel p {
    margin: 0;
    font-size: .86rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-panel p + p {
    margin-top: .55rem;
}

.practice-help-change-target {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6366f1;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}

.practice-help-change-target:hover,
.practice-help-change-target:focus-visible {
    color: #4f46e5;
    text-decoration: underline;
    outline: none;
}

.practice-target-edit-modal .modal-dialog {
    max-width: 420px;
}

.practice-target-edit-content {
    position: relative;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.practice-target-edit-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}

.practice-target-edit-close:hover {
    background: rgba(255, 255, 255, .34);
}

.practice-target-edit-header {
    padding: 1.35rem 1.25rem 1.1rem;
    color: #fff;
    text-align: center;
}

.practice-target-edit-header--week {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
}

.practice-target-edit-header--month {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
}

.practice-target-edit-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto .65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.practice-target-edit-title {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.practice-target-edit-lead {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    opacity: .92;
}

.practice-target-edit-body {
    padding: 1rem 1.15rem 1.1rem;
}

.practice-target-edit-current {
    margin: 0 0 .85rem;
    font-size: .84rem;
    color: #64748b;
    text-align: center;
}

.practice-target-edit-current strong {
    color: #1e293b;
    font-size: 1rem;
}

.practice-target-edit-presets-label {
    margin: 0 0 .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.practice-target-edit-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .9rem;
}

.practice-target-edit-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 62px;
    padding: .55rem .35rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.practice-target-edit-preset strong {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.1;
}

.practice-target-edit-preset span {
    font-size: .68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-target-edit-preset:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.practice-target-edit-preset.is-active {
    border-color: #818cf8;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 8px 22px rgba(99, 102, 241, .16);
    transform: translateY(-1px);
}

.practice-target-edit-custom-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.practice-target-edit-input-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.practice-target-edit-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
}

.practice-target-edit-input-suffix {
    font-size: .82rem;
    font-weight: 600;
    color: #94a3b8;
}

.practice-target-edit-footer {
    display: flex;
    gap: .55rem;
    padding: 0 1.15rem 1.15rem;
}

.practice-target-edit-cancel,
.practice-target-edit-save {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.practice-target-edit-cancel {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.practice-target-edit-cancel:hover {
    background: #f8fafc;
}

.practice-target-edit-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
}

.practice-target-edit-save:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.practice-target-edit-save:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}
.practice-dash-card#practicePointsCard {
    cursor: pointer;
}

.practice-points-body {
    padding-top: .25rem;
}

.practice-points-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    margin-bottom: .75rem;
}

.practice-points-stat--total {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #bbf7d0;
}

.practice-points-stat-label {
    font-size: .88rem;
    font-weight: 600;
    color: #166534;
}

.practice-points-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1;
}

.practice-points-target-card {
    padding: .8rem .95rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    margin-bottom: .65rem;
}

.practice-points-target-title {
    margin: 0 0 .35rem;
    font-size: .88rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-points-target-words {
    margin: 0 0 .35rem;
    font-size: .82rem;
    color: #64748b;
}

.practice-points-target-needed {
    margin: 0;
    font-size: .86rem;
    color: #334155;
}

.practice-points-target-needed strong {
    color: #7c3aed;
    font-size: 1rem;
}

.practice-points-footnote {
    margin: .35rem 0 0;
    font-size: .78rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.practice-help-list li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .85rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8edf5;
}
.practice-help-list li strong {
    font-size: .9rem;
    color: var(--home-text);
}
.practice-help-list li span {
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-note {
    padding: .75rem .85rem;
    background: #f5f3ff;
    border-radius: 12px;
    border: 1px solid #e9ddff;
}
.practice-help-note p {
    margin: 0;
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-note p + p { margin-top: .5rem; }
.practice-help-example {
    margin: 0 0 1rem;
    padding: .85rem .95rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8edf5;
}
.practice-help-example-title {
    margin: 0 0 .45rem;
    font-size: .88rem;
    color: var(--home-text);
}
.practice-help-example p {
    margin: 0 0 .5rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-example-steps {
    margin: 0 0 .55rem;
    padding-left: 1.15rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-example-steps li + li {
    margin-top: .35rem;
}
.practice-help-example-note {
    margin: 0 !important;
    font-size: .8rem !important;
    color: #64748b !important;
    font-style: italic;
}
.practice-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.practice-help-card { background: #f8fafc; border-radius: 14px; padding: 1rem; }
.practice-help-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.target-setup-modal-dialog {
    max-width: 34rem;
}

.target-setup-modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.target-setup-modal-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.target-setup-modal-icon-ring {
    position: absolute;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
}

.target-setup-modal-icon {
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.2));
}

.target-setup-modal-body {
    padding: 1.1rem 1.35rem 1.35rem;
}

.target-setup-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.target-setup-title {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.target-setup-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.target-setup-explainer {
    background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
}

.target-setup-explainer-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.target-setup-explainer-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.target-setup-explainer-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
}

.target-setup-explainer-text {
    margin: 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.55;
}

.target-setup-explainer-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.target-setup-explainer-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.target-setup-pick-label {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.target-setup-options {
    display: grid;
    gap: 0.65rem;
}

.target-setup-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.target-setup-btn:hover {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.target-setup-btn--recommended {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.1);
}

.target-setup-btn--recommended:hover {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #fff 0%, #f3e8ff 100%);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.16);
}

.target-setup-recommended-badge {
    position: absolute;
    top: -0.55rem;
    right: 0.85rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
}

.target-setup-btn-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.target-setup-btn-main strong {
    font-size: 1rem;
    color: #0f172a;
}

.target-setup-btn-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.target-setup-btn-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.target-setup-btn-emoji {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.target-setup-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.16);
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
}

.target-setup-profile-note-emoji {
    font-size: 1rem;
    line-height: 1.2;
}

.practice-streak-pill { margin: .5rem 0 0; font-size: .82rem; color: #ea580c; font-weight: 600; }
.practice-streak-pill i { margin-right: .25rem; }
.practice-next-milestone { font-size: .78rem; color: var(--home-text-muted); }

.my-vocab-browse-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.my-vocab-browse-loading-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.my-vocab-browse-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.my-vocab-col-actions {
    min-width: 22rem;
}

.my-vocab-word-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.my-vocab-word-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.my-vocab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.my-vocab-badge--learn {
    background: rgba(30, 58, 95, 0.1);
    color: var(--elh-primary);
}

.my-vocab-badge--skip {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.my-vocab-badge--schedule {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.my-vocab-action-modal--learn .practice-skip-modal-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.my-vocab-action-modal--learn .practice-skip-modal-confirm {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.my-vocab-action-modal--skip .practice-skip-modal-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.my-vocab-action-modal--skip .practice-skip-modal-confirm {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.my-vocab-col-id {
    width: 4.5rem;
    white-space: nowrap;
}

/* My Vocabulary page */
.my-vocab-page {
    max-width: 1180px;
}

.my-vocab-hero {
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.my-vocab-hero-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.my-vocab-hero-title {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--elh-primary);
    line-height: 1.15;
}

.my-vocab-hero-sub {
    font-size: 0.92rem;
    color: #64748b;
    max-width: 42rem;
}

.my-vocab-add-btn {
    border: 0;
    background: linear-gradient(135deg, var(--elh-primary) 0%, #2d5a8a 100%);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
    font-weight: 600;
    padding: 0.55rem 1.1rem;
}

.my-vocab-add-btn:hover {
    background: linear-gradient(135deg, #2d5a8a 0%, var(--elh-primary) 100%);
    color: #fff;
}

.my-vocab-tabs {
    border-bottom: 0;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 0.35rem;
}

.my-vocab-tabs .nav-item {
    margin-bottom: 0;
}

.my-vocab-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #64748b;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.my-vocab-tabs .nav-link i {
    opacity: 0.85;
}

.my-vocab-tabs .nav-link:hover {
    color: var(--elh-primary);
    background: rgba(30, 58, 95, 0.06);
}

.my-vocab-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--elh-primary) 0%, #2d5a8a 100%);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.2);
}

.my-vocab-tabs .nav-link.active i {
    opacity: 1;
}

.my-vocab-search-form .my-vocab-search-input {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.my-vocab-search-form .my-vocab-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.my-vocab-search-btn {
    border-radius: 12px;
    font-weight: 600;
    padding-inline: 1.1rem;
}

.my-vocab-yours-card,
.my-vocab-browse-card {
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    overflow: hidden;
}

.my-vocab-table-wrap {
    border-radius: 0 0 16px 16px;
}

.my-vocab-yours-table,
.my-vocab-browse-table {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.my-vocab-yours-table thead th,
.my-vocab-browse-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.8rem 1rem;
}

.my-vocab-yours-table tbody td,
.my-vocab-browse-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.my-vocab-yours-table tbody tr:last-child td,
.my-vocab-browse-table tbody tr:last-child td {
    border-bottom: 0;
}

.my-vocab-yours-table tbody tr:hover,
.my-vocab-browse-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.my-vocab-yours-word strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.my-vocab-yours-date {
    color: #64748b;
    font-size: 0.84rem;
}

.my-vocab-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e2e8f0;
    color: #475569;
}

.my-vocab-level-badge[data-level^="A"],
.my-vocab-level-badge[data-level^="a"] {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.my-vocab-level-badge[data-level^="B"],
.my-vocab-level-badge[data-level^="b"] {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.my-vocab-level-badge[data-level^="C"],
.my-vocab-level-badge[data-level^="c"] {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
}

.my-vocab-action-btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.78rem;
}

.my-vocab-action-btn--view {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

.my-vocab-action-btn--view:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.my-vocab-action-btn--generate {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #6d28d9;
}

.my-vocab-action-btn--generate:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.my-vocab-action-btn--edit {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.22);
    color: #475569;
}

.my-vocab-action-btn--edit:hover {
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

.my-vocab-footer-note {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 500;
}

.my-vocab-success-alert {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(240, 253, 250, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.my-vocab-success-alert__text {
    line-height: 1.5;
}

.my-vocab-success-alert__btn {
    border: 1px solid #059669;
    color: #047857;
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
}

.my-vocab-success-alert__btn:hover,
.my-vocab-success-alert__btn:focus {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.my-vocab-add-layout {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.my-vocab-add-center {
    width: 100%;
    max-width: 42rem;
}

.my-vocab-add-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.my-vocab-add-divider::before,
.my-vocab-add-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.my-vocab-generating-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-vocab-generating-card {
    text-align: center;
    max-width: 22rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Learn — Phrases */
.learn-main { padding-top: 1rem; }
.learn-page { max-width: 1100px; margin: 0 auto; padding: 1rem 0 2.5rem; }
.learn-page-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.learn-page-eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--home-muted); margin-bottom: .35rem; }
.learn-page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .5rem; color: var(--home-text); }
.learn-page-lead { color: var(--home-muted); margin: 0; max-width: 42rem; }
.learn-breadcrumb { color: inherit; text-decoration: none; }
.learn-breadcrumb:hover { color: var(--home-blue); }
.learn-search-form, .learn-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.learn-search-form .form-control, .learn-filter-bar .form-control { min-width: 200px; }
.learn-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.learn-category-card { display: block; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.learn-category-card:hover { border-color: var(--home-blue); box-shadow: 0 8px 24px rgba(37, 99, 235, .08); color: inherit; }
.learn-category-icon { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 10px; background: rgba(37, 99, 235, .1); color: var(--home-blue); margin-bottom: .65rem; }
.learn-category-title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.learn-category-count { font-size: .85rem; color: var(--home-muted); margin: 0; }
.learn-page-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.learn-phrase-list { display: grid; gap: .75rem; }
.learn-phrase-card { display: block; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; text-decoration: none; color: inherit; }
.learn-phrase-card:hover { border-color: var(--home-blue); color: inherit; }
.learn-phrase-card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.learn-phrase-text { font-size: 1.05rem; font-weight: 700; margin: 0; }
.learn-phrase-meaning { margin: .5rem 0 0; color: var(--home-muted); font-size: .9rem; }
.learn-level-badge { font-size: .75rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: rgba(15, 23, 42, .06); color: var(--home-text); white-space: nowrap; }
.learn-list-meta, .learn-empty { color: var(--home-muted); font-size: .9rem; }
.learn-pager { display: flex; gap: .5rem; margin-top: 1rem; }
.learn-detail-card { background: #fff; border-radius: 16px; border: 1px solid rgba(15, 23, 42, .08); padding: 1.5rem; }
.learn-detail-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.learn-detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 0; }
.learn-detail-section { margin-bottom: 1.25rem; }
.learn-detail-section-title { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--home-muted); margin-bottom: .5rem; }
.learn-detail-meaning { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.learn-example-list { margin: 0; padding-left: 1.2rem; }
.learn-example-list li { margin-bottom: .35rem; }
.learn-detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.practice-phrase-quote { margin: .75rem 0 0; padding: .75rem 1rem; border-left: 4px solid var(--home-blue); background: rgba(37, 99, 235, .06); font-size: 1.1rem; font-weight: 600; }
.practice-phrase-examples { margin: 0; padding-left: 1.2rem; }
.body-practice-phrases .practice-top-section { /* inherits general practice layout */ }
