/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-x: hidden;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(10deg); }
    66% { transform: translateY(-15px) rotate(-10deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
.scale-in { animation: scaleIn 0.5s ease-out; }

/* ==================== ANIMATED BACKGROUND ==================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.float-emoji {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.float-1 { top: 10%; right: 10%; animation-delay: 0s; }
.float-2 { bottom: 20%; left: 15%; animation-delay: 1s; }
.float-3 { top: 50%; right: 25%; animation-delay: 2s; }
.float-4 { bottom: 10%; right: 30%; animation-delay: 3s; }
.float-5 { top: 30%; left: 20%; animation-delay: 1.5s; }

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 800;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-teacher {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-activity {
    background: white;
    color: #333;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-back {
    background: white;
    color: #333;
    border: 3px solid #e5e7eb;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background: #f3e8ff;
    transform: translateX(5px);
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    max-width: 1200px;
    width: 100%;
}

.public-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(15, 23, 42, 0.12);
}

.public-topnav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-topnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 900;
}

.public-topnav__name {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.public-topnav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
}

.public-topnav__links a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    border-radius: 9999px;
}

.public-topnav__links a:hover {
    background: rgba(124, 58, 237, 0.12);
}

.public-topnav__cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.public-topnav__btn {
    text-decoration: none;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    border: 2px solid #0f172a;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.35);
}

.public-topnav__btn--teacher {
    background: #7c3aed;
    border-color: #7c3aed;
}

.public-topnav__btn:hover {
    transform: translateY(-1px);
}

.public-sections {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.public-card {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.public-card__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.public-card__text {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.public-card__link {
    display: inline-block;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 2px solid rgba(15, 23, 42, 0.25);
    padding-bottom: 0.1rem;
}

.public-card__link:hover {
    border-bottom-color: rgba(124, 58, 237, 0.75);
    color: #7c3aed;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.logo-emoji {
    font-size: 4rem;
}

.logo-circle--brand {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    animation: none;
}

.logo-circle--brand .brand-mark-aiaischool {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(91, 79, 207, 0.2);
}

.login-brand-name {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle-gujarati {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.role-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: scaleIn 0.6s ease-out;
}

.role-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.student-card:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #ddd6fe 100%);
}

.teacher-card:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #dbeafe 100%);
}

.card-emoji {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.card-description {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    line-height: 2;
    margin-bottom: 2rem;
}

.login-footer {
    text-align: center;
    margin-top: 3rem;
}

.footer-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ==================== STUDENT HOME ==================== */
.student-home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fef3c7 0%, #ddd6fe 50%, #fce7f3 100%);
}

.page-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: rotate 3s linear infinite;
}

.header-icon-phonics {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.icon-emoji {
    font-size: 3.5rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
}

.page-subtitle-gujarati {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
}

/* ==================== STATS ==================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 4px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
}

/* ==================== ACTIVITIES ==================== */
.activities-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.activity-card {
    position: relative;
    border-radius: 2rem;
    padding: 2rem;
    border: 4px solid white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.card-pink { background: linear-gradient(135deg, #fce7f3 0%, #fecaca 100%); }
.card-blue { background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%); }
.card-yellow { background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%); }
.card-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.card-purple { background: linear-gradient(135deg, #e9d5ff 0%, #f3e8ff 100%); }
.card-orange { background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%); }

.activity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.activity-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.activity-title {
    font-size: 1.75rem;
    font-weight: 900;
    text-align: center;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.activity-title-gujarati {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.activity-description {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* ==================== STUDENT HOMEWORK ==================== */
.student-homework-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 35%, #fce7f3 70%, #fef3c7 100%);
    position: relative;
}

.student-homework-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(1000px 520px at 90% 15%, rgba(236, 72, 153, 0.16), transparent 55%),
        radial-gradient(900px 520px at 50% 95%, rgba(245, 158, 11, 0.12), transparent 55%);
    pointer-events: none;
}

.student-homework-page__inner.container {
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

.student-homework-page__header-icon {
    background: linear-gradient(145deg, #c4b5fd 0%, #a78bfa 45%, #818cf8 100%);
    animation: none;
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
}

.student-homework-page__body {
    margin-top: 0.35rem;
}

.student-homework-page .student-dashboard-nav {
    margin-bottom: 1.25rem;
}

.student-hw-flash {
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.student-hw-flash--success {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #86efac;
    color: #166534;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.12);
}

.student-hw-flash--error {
    background: #fff;
    border: 3px solid #fecaca;
    color: #b91c1c;
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.1);
}

.student-hw-empty-msg {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4b5563;
    width: 100%;
    margin: 2rem 0;
    line-height: 1.55;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 4px solid rgba(229, 231, 235, 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.student-hw-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem 1rem;
    width: 100%;
    margin: 0 0 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(233, 213, 255, 0.95);
    box-shadow:
        0 14px 34px rgba(124, 58, 237, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.student-hw-toolbar__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 1rem;
    background: rgba(249, 250, 251, 0.95);
    border: 2px solid #e5e7eb;
}

.student-hw-toolbar__stat--action {
    background: rgba(254, 243, 199, 0.55);
    border-color: #fde68a;
}

.student-hw-toolbar__stat--done {
    background: rgba(219, 234, 254, 0.55);
    border-color: #bfdbfe;
}

.student-hw-toolbar__value {
    font-size: 1.65rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.1;
}

.student-hw-toolbar__stat--action .student-hw-toolbar__value {
    color: #b45309;
}

.student-hw-toolbar__stat--done .student-hw-toolbar__value {
    color: #1d4ed8;
}

.student-hw-toolbar__label {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.student-hw-toolbar__sep {
    align-self: center;
    width: 1px;
    height: 2.25rem;
    background: linear-gradient(180deg, transparent, #e5e7eb, transparent);
}

.student-hw-list__heading {
    margin: 0 0 0.5rem;
    padding: 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.student-hw-list__lede {
    margin: 0 0 0.85rem;
    padding: 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
}

.student-hw-details {
    position: relative;
    margin: 0;
}

.student-hw-details--action::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, #7c3aed 0%, #a855f7 55%, #ec4899 100%);
    border-radius: 0;
}

.student-hw-details__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.85rem 1rem 0.85rem 0.95rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.student-hw-details--action .student-hw-details__summary {
    padding-left: 1.1rem;
}

.student-hw-details__summary::-webkit-details-marker {
    display: none;
}

.student-hw-details__summary::marker {
    content: "";
}

.student-hw-details__summary-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 10rem;
    min-width: 0;
}

.student-hw-details__icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.student-hw-details__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 0;
    text-align: left;
}

.student-hw-details__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
}

.student-hw-details__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.25;
    word-break: break-word;
}

.student-hw-details__due {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.student-hw-details__chevron {
    margin-left: auto;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    flex-shrink: 0;
}

.student-hw-details__chevron::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.2rem;
}

.student-hw-details[open] .student-hw-details__chevron::before {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.student-hw-details__panel {
    padding: 0 0.85rem 1rem;
    border-top: 1px dashed #e5e7eb;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.student-hw-card--nested {
    padding-top: 0.75rem;
    margin-top: 0;
    background: transparent;
}

.student-hw-card--nested::before,
.student-hw-card--nested::after {
    display: none;
}

.student-hw-list {
    width: 100%;
    margin: 0;
    padding: 0 0 2rem;
}

/* Full-width homework layout: responsive card grid */
.student-hw-list--grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .student-hw-list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.student-hw-list__item {
    border-bottom: none;
}

.student-hw-list__item:last-child {
    border-bottom: none;
}

/* Make each grid item look like its own card stack */
.student-hw-list--grid .student-hw-details {
    border-radius: 1.35rem;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.student-hw-list--grid .student-hw-details__panel {
    border-top: 1px dashed #e5e7eb;
}

.student-hw-card {
    width: 100%;
    border-radius: 1.6rem;
    padding: 1.35rem 1.35rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(229, 231, 235, 0.95);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    text-align: left;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    position: relative;
    overflow: hidden;
}

.student-hw-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.06));
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.student-hw-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 10px;
    background: linear-gradient(180deg, #7c3aed 0%, #ec4899 55%, #f59e0b 100%);
    opacity: 0.85;
    pointer-events: none;
}

.student-hw-card > * {
    position: relative;
    z-index: 1;
}

.student-hw-card--action::after {
    opacity: 1;
    width: 12px;
    box-shadow: 4px 0 18px rgba(124, 58, 237, 0.25);
}

.student-hw-card:hover {
    border-color: rgba(196, 181, 253, 0.95);
    transform: translateY(-1px);
    box-shadow:
        0 22px 50px rgba(124, 58, 237, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.student-hw-card:focus-within {
    border-color: rgba(167, 139, 250, 0.95);
    box-shadow:
        0 24px 54px rgba(124, 58, 237, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.student-hw-card:hover::before,
.student-hw-card:focus-within::before {
    opacity: 1;
}

.student-hw-card--list {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

.student-hw-card--list:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.student-hw-card--list:hover::before {
    opacity: 0.5;
}

.student-hw-card--list:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.student-hw-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

@media (min-width: 540px) {
    .student-hw-card__header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.65rem 1rem;
    }
}

.student-hw-card__header-text {
    flex: 1;
    min-width: 0;
}

.student-hw-card__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
}

.student-hw-card__title {
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.student-hw-card__status-badge-wrap {
    margin: 0;
    flex-shrink: 0;
}

.student-hw-card__status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.student-hw-card__status-pill--pending {
    background: #fef3c7;
    color: #b45309;
}

.student-hw-card__status-pill--submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.student-hw-card__status-pill--reviewed {
    background: #d1fae5;
    color: #047857;
}

.student-hw-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.student-hw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
    background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
    border: 2px solid #f3e8ff;
}

.student-hw-card__instructions-box {
    margin: 0 0 1.15rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.75) 0%, rgba(249, 250, 251, 0.95) 100%);
    border: 2px solid rgba(233, 213, 255, 0.65);
}

.student-hw-card__instructions-label {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.student-hw-card__instructions {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.55;
    text-align: left;
}

.student-hw-card__submitted-note {
    margin: 0;
    padding: 1.25rem 1rem;
    border-radius: 1.1rem;
    text-align: center;
}

.student-hw-card__submitted-note--reviewed {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #bbf7d0;
}

.student-hw-card__submitted-note--waiting {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 2px solid #c7d2fe;
}

.student-hw-card__submitted-note-icon {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    line-height: 1;
}

.student-hw-card__submitted-note--reviewed p:not(.student-hw-card__submitted-note-icon) {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    line-height: 1.5;
}

.student-hw-card__submitted-note--waiting p:not(.student-hw-card__submitted-note-icon) {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #3730a3;
    line-height: 1.5;
}

.student-hw-card__form-title {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7c3aed;
}

.student-hw-card__form {
    text-align: left;
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 2px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.student-hw-card__form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 720px) {
    .student-hw-card__form-grid {
        display: grid;
        grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.1fr);
        gap: 1rem 1.25rem;
        align-items: start;
    }
}

.student-hw-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.student-hw-card__field--stretch {
    min-width: 0;
}

.student-hw-card__field--stretch .student-hw-card__textarea {
    min-height: 8.5rem;
}

.student-hw-card__label {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1f2937;
}

.student-hw-card__label-hint {
    font-weight: 700;
    color: #6b7280;
}

.student-hw-card__file-wrap {
    width: 100%;
}

.student-hw-card__file {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

.student-hw-card__file::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    border: 2px solid #e9d5ff;
    background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
    font-weight: 800;
    font-size: 0.875rem;
    color: #5b21b6;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-hw-card__file::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.2);
}

.student-hw-card__textarea {
    width: 100%;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
    resize: vertical;
    min-height: 6.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.student-hw-card__textarea::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.student-hw-card__textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35);
}

.student-hw-card__hint {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.45;
    text-align: center;
}

.student-hw-card__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-hw-card__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.4);
}

.student-hw-card__submit:active {
    transform: translateY(0);
}

.student-hw-card__submit-icon {
    font-size: 1.15rem;
    font-weight: 900;
    color: #bbf7d0;
}

@media (min-width: 480px) {
    .student-hw-card {
        padding: 1.5rem 1.65rem 1.65rem;
    }
}

/* ==================== STUDENT PRACTICE PRONUNCIATION ==================== */
.student-pronunciation-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f9ff 0%, #eef2ff 50%, #faf5ff 100%);
    position: relative;
}

.student-pronunciation-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.35), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(167, 139, 250, 0.35), transparent 50%),
        radial-gradient(circle at 55% 85%, rgba(244, 114, 182, 0.22), transparent 52%);
    pointer-events: none;
    z-index: 0;
}

.student-pronunciation-page__inner {
    position: relative;
    z-index: 1;
}

.student-pronunciation-page .student-dashboard-nav {
    margin-bottom: 1.25rem;
}

.student-pronunciation-page__header-icon {
    background: linear-gradient(145deg, #a78bfa 0%, #818cf8 50%, #38bdf8 100%);
    animation: none;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
}

.student-pronunciation-spec {
    width: 100%;
    max-width: none;
    margin: 0 0 3rem;
    padding: 0;
}

.student-pronunciation-spec__intro {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.1);
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.6;
    text-align: left;
}

.student-pronunciation-page__inner .student-pronunciation-spec__intro,
.student-pronunciation-page__inner .student-pronunciation-tips,
.student-pronunciation-page__inner .student-pronunciation-spec__branches,
.student-pronunciation-page__inner .student-pronunciation-spec__footnote {
    max-width: none;
}

.student-pronunciation-tips {
    margin: 0 0 1.35rem;
    padding: 1.05rem 1.15rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.12);
}

.student-pronunciation-tips__title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.student-pronunciation-tips__list {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
    font-weight: 700;
    line-height: 1.55;
}

.student-pronunciation-tips__list li + li {
    margin-top: 0.35rem;
}

.student-pronunciation-spec__intro-lead {
    margin: 0 0 1rem;
}

.student-pronunciation-spec__intro-follow {
    margin: 0;
    padding-top: 1rem;
    border-top: 2px solid rgba(129, 140, 248, 0.22);
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.6;
}

.student-pronunciation-spec__branches {
    margin: 0 0 1.25rem;
    max-width: none;
}

.student-pronunciation-spec__branch-list-heading {
    margin: 0 0 0.5rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.student-pronunciation-spec__branch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 1.15rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.student-pronunciation-spec__branch-item {
    border-bottom: 1px solid #e5e7eb;
}

.student-pronunciation-spec__branch-item:last-child {
    border-bottom: none;
}

.student-pronunciation-spec__branch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem 1.15rem;
    padding-right: 1.25rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.15s ease;
    position: relative;
}

.student-pronunciation-spec__branch--letters {
    padding-right: 5.25rem;
    box-shadow: inset 4px 0 0 #7c3aed;
}

.student-pronunciation-spec__branch--words {
    box-shadow: inset 4px 0 0 #2563eb;
}

.student-pronunciation-spec__branch--sentences {
    box-shadow: inset 4px 0 0 #db2777;
}

.student-pronunciation-spec__branch:hover {
    background: #faf5ff;
    transform: none;
    box-shadow: inset 4px 0 0 #7c3aed;
}

.student-pronunciation-spec__branch--words:hover {
    box-shadow: inset 4px 0 0 #2563eb;
}

.student-pronunciation-spec__branch--sentences:hover {
    box-shadow: inset 4px 0 0 #db2777;
}

.student-pronunciation-spec__branch:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: -3px;
    z-index: 1;
}

.student-pronunciation-spec__branch-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    padding: 0.28rem 0.55rem;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 2px solid #86efac;
    color: #047857;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.student-pronunciation-spec__branch-icon {
    flex-shrink: 0;
    font-size: 1.85rem;
    line-height: 1;
    width: 2.5rem;
    text-align: center;
}

.student-pronunciation-spec__branch-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
    text-align: left;
}

.student-pronunciation-spec__branch-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
}

.student-pronunciation-spec__branch-desc {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.student-pronunciation-spec__branch-cta {
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #7c3aed;
    line-height: 1;
}

.student-pronunciation-spec__footnote {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}

/* ==================== STUDENT DASHBOARD PORTAL (3.1) ==================== */
.student-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.student-dashboard-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: #4c1d95;
    background: white;
    border: 3px solid #e9d5ff;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-dashboard-nav__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.2);
    border-color: #c4b5fd;
}

.student-dashboard-nav__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.student-dashboard-nav__link.is-active:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.42);
}

.student-dashboard-overview {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 3px solid #e9d5ff;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}

.student-dashboard-overview__header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.student-dashboard-overview__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.student-dashboard-overview__lede {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.5;
}

.student-dashboard-panels--overview {
    margin-bottom: 0;
}

.student-dashboard-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.student-dashboard-panel {
    background: white;
    border: 4px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.student-dashboard-panel__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 1rem;
    text-align: center;
}

.student-dashboard-panel__empty {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

.student-dashboard-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.student-dashboard-panel__list--bullets {
    list-style: disc;
    padding-left: 1.25rem;
}

.student-dashboard-panel__list--bullets .student-dashboard-panel__suggestion {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.45;
}

.student-dashboard-panel__item {
    margin-bottom: 0.75rem;
}

.student-dashboard-panel__item:last-child {
    margin-bottom: 0;
}

.student-dashboard-panel__task-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
    border-radius: 1rem;
    border: 2px solid #f3e8ff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.student-dashboard-panel__task-link:hover {
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.student-dashboard-panel__task-title {
    font-weight: 900;
    color: #1f2937;
    font-size: 1.05rem;
}

.student-dashboard-panel__meta {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

.student-dashboard-panel__badge {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.student-dashboard-panel__badge--pending {
    background: #fef3c7;
    color: #b45309;
}

.student-dashboard-panel__badge--submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.student-dashboard-panel__badge--reviewed {
    background: #d1fae5;
    color: #047857;
}

.student-dashboard-panel__feedback-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.student-dashboard-panel__score {
    font-weight: 900;
    color: #7c3aed;
    font-size: 0.95rem;
}

.student-dashboard-panel__feedback-text,
.student-dashboard-panel__corrected {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.45;
}

.student-dashboard-panel__corrected {
    font-size: 0.9rem;
    color: #6b21a8;
}

.student-dashboard-panel__teacher-preview {
    font-weight: 600;
    color: #374151;
}

.student-dashboard-panel__read-more-wrap {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.student-dashboard-panel__read-more-hint {
    font-weight: 600;
    color: #9ca3af;
}

.student-dashboard-panel__read-more {
    font-weight: 800;
    color: #7c3aed;
    text-decoration: underline;
    white-space: nowrap;
}

.student-dashboard-panel__read-more:hover {
    color: #5b21b6;
}

.student-dashboard-panel__subtitle {
    margin: 0.5rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 900;
    color: #5b21b6;
    text-align: left;
}

.student-dashboard-panel__subtitle--spaced {
    margin-top: 0.85rem;
}

.student-dashboard-panel__lede {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.45;
    text-align: left;
}

.student-dashboard-panel__lede a {
    font-weight: 800;
    color: #7c3aed;
}

.student-dashboard-panel__empty--soft {
    text-align: left;
    color: #6b7280;
}

/* Kid-friendly student dashboard (4-up overview like reference) */
.student-home-page.student-dashboard--kids {
    background:
        radial-gradient(100% 70% at 50% 0%, rgba(253, 230, 255, 0.85), transparent 55%),
        radial-gradient(90% 60% at 0% 40%, rgba(254, 243, 199, 0.5), transparent 45%),
        radial-gradient(80% 50% at 100% 60%, rgba(252, 231, 243, 0.65), transparent 45%),
        linear-gradient(165deg, #fdf4ff 0%, #ede9fe 38%, #fce7f3 72%, #fef9c3 100%);
}

.student-home-page.student-dashboard--kids .student-dashboard-panels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel {
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    border-radius: 1.75rem;
    border: 3px solid rgba(243, 232, 255, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fefcff 100%);
    box-shadow:
        0 14px 32px rgba(124, 58, 237, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__title {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: #312e81;
    letter-spacing: 0.02em;
    text-align: left;
    margin-bottom: 0.8rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__subtitle {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-weight: 700;
    color: #5b21b6;
    letter-spacing: 0.01em;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__list--bullets {
    padding-left: 1.05rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__list--bullets li {
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel--teacher-notes .student-dashboard-panel__list--bullets {
    font-size: 0.95rem;
    max-height: 13.5rem;
    overflow: auto;
    padding-right: 0.4rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel--teacher-notes .student-dashboard-panel__lede {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__teacher-preview {
    display: inline;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__read-more {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__task-link {
    padding: 0.8rem 0.9rem;
    border-radius: 1.1rem;
    border-width: 2px;
    background: linear-gradient(135deg, #fff5f7 0%, #fdf2f8 45%, #faf5ff 100%);
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__task-title {
    font-size: 1.08rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__list--bullets .student-dashboard-panel__suggestion {
    font-size: 1.02rem;
    font-weight: 700;
    color: #374151;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel--teacher-notes .student-dashboard-panel__list--bullets {
    font-size: 0.98rem;
}

.student-home-page.student-dashboard--kids .student-dashboard-panel__feedback {
    padding: 0.65rem 0.75rem;
    border-radius: 1rem;
    background: rgba(250, 245, 255, 0.65);
    border: 2px solid #f3e8ff;
}

.student-home-page.student-dashboard--kids .student-dashboard-panels > .student-dashboard-panel:first-child .student-dashboard-panel__read-more-wrap {
    margin-top: auto;
    padding-top: 0.65rem;
}

@media (max-width: 1199px) {
    .student-home-page.student-dashboard--kids .student-dashboard-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .student-home-page.student-dashboard--kids .student-dashboard-panels {
        grid-template-columns: 1fr;
    }
}

/* ==================== ACHIEVEMENT BANNER ==================== */
.achievement-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.achievement-icon {
    font-size: 5rem;
}

.achievement-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.achievement-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* ==================== PHONICS PAGE ==================== */
.phonics-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 50%, #fce7f3 100%);
}

.phonics-pedagogy-banner {
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(236, 72, 153, 0.35);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.1);
}

.phonics-pedagogy-banner__text {
    margin: 0 0 0.65rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.55;
}

.phonics-pedagogy-banner__hint {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.45;
}

.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    background: white;
    color: #4b5563;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* ==================== LETTER CARDS ==================== */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.letter-card {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border: 4px solid white;
    border-radius: 2rem;
    padding: 1.5rem;
    text-align: center;
    cursor: default;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.letter-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.letter-main {
    font-size: 5rem;
    font-weight: 900;
    color: #db2777;
    margin-bottom: 1rem;
}

.letter-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.letter-word {
    font-size: 1.5rem;
    font-weight: 900;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.letter-meaning {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-listen {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-listen:hover {
    transform: scale(1.05);
}

.btn-speak-practice {
    margin-top: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-speak-practice:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.phonics-practice-result {
    margin-top: 0.85rem;
    padding: 0.75rem 0.65rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(219, 39, 119, 0.25);
    text-align: left;
}

.phonics-practice-result--compact {
    margin-top: 0.65rem;
    padding: 0.5rem 0.45rem;
    font-size: 0.85rem;
}

.phonics-practice-result__heard {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
}

.phonics-practice-result__label {
    font-weight: 800;
    color: #64748b;
    margin-right: 0.25rem;
}

.phonics-transcript {
    font-weight: 900;
    color: #0f172a;
    word-break: break-word;
}

.phonics-practice-result__msg {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: #475569;
}

.phonics-practice-result__msg--ok {
    color: #047857;
}

.phonics-practice-result__msg--retry {
    color: #b45309;
}

.phonics-action-hint {
    margin: 0.5rem 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
}

.phonics-card-actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.phonics-card-actions--row .btn-listen,
.phonics-card-actions--row .btn-speak-practice {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 6.5rem;
    margin-top: 0;
}

.phonics-practice-result__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    border: 3px solid #0f172a;
    background: #fff;
    color: #0f172a;
}

.phonics-practice-result__badge--ok {
    background: #047857;
    border-color: #065f46;
    color: #fff;
}

.phonics-practice-result__badge--retry {
    background: #fff7ed;
    border-color: #b45309;
    color: #b45309;
}

.phonics-practice-result--compact .phonics-practice-result__badge {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

@keyframes phonics-listen-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.phonics-card--listening {
    animation: phonics-listen-pulse 1.25s ease-out infinite;
    border-color: #2563eb !important;
}

.phonics-card--playing {
    outline: 3px solid #db2777;
    outline-offset: 2px;
}

.consonant-card-actions--listen,
.consonant-card-actions--speak {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.35rem;
}

.consonant-card-actions--speak {
    margin-top: 0.5rem;
}

.btn-listen--stop,
.btn-speak-practice--stop {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #0f172a !important;
    border: 3px solid #0f172a !important;
}

/* ==================== CONSONANTS ==================== */
.consonants-groups {
    margin-bottom: 2rem;
}

.consonant-group {
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    border: 4px solid white;
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.group-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.consonant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.consonant-card {
    background: white;
    border: 3px solid #dbeafe;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: default;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.consonant-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
}

.btn-small-speak {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small-speak:hover {
    transform: scale(1.08);
}

.consonant-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.consonant-letter {
    font-size: 4rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.consonant-sound {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.btn-small-listen {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small-listen:hover {
    transform: scale(1.1);
}

/* ==================== PRACTICE SECTION ==================== */
.practice-section {
    background: white;
    border: 4px solid #fce7f3;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.practice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.practice-header h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
}

.practice-icon {
    font-size: 2.5rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.practice-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.practice-card {
    border: 3px solid;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: scale(1.03);
}

.practice-card-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
}

.practice-card-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    border-color: #a855f7;
}

.practice-card-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.practice-card-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #6366f1;
}

.practice-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.practice-card h4 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.practice-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1rem;
}

.btn-practice {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-practice:hover {
    transform: scale(1.05);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.25rem; }
    .page-title { font-size: 2rem; }
    .header-content { flex-direction: column; text-align: center; }
    .header-icon { width: 80px; height: 80px; }
    .icon-emoji { font-size: 2.5rem; }
    .achievement-content { flex-direction: column; text-align: center; }
    .role-cards { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 1rem; }
    .main-title { font-size: 2rem; }
    .page-title { font-size: 1.75rem; }
    .stat-value { font-size: 2rem; }
    .activity-title { font-size: 1.5rem; }
    .letter-main { font-size: 4rem; }
    .consonant-letter { font-size: 3rem; }
}

/* ==================== STUDENT CLASSROOM UX (readable, calm — does not override homework/dashboard cards) ==================== */
.student-classroom-ux {
    --classroom-ink: #1e293b;
    --classroom-paper: #ffffff;
    --classroom-muted: #475569;
}

.student-classroom-ux .page-title.gradient-text {
    font-family: 'Fredoka', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    background: linear-gradient(110deg, #5b21b6 0%, #7c3aed 55%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #5b21b6;
}

.student-classroom-ux .page-subtitle,
.student-classroom-ux .page-subtitle-gujarati,
.student-classroom-ux .letter-word,
.student-classroom-ux .letter-main,
.student-classroom-ux .consonant-letter,
.student-classroom-ux .phonics-pedagogy-banner__text,
.student-classroom-ux .phonics-pedagogy-banner__hint,
.student-classroom-ux .student-pronunciation-spec__intro,
.student-classroom-ux .student-pronunciation-spec__intro-lead,
.student-classroom-ux .student-pronunciation-spec__intro-follow,
.student-classroom-ux .student-pronunciation-spec__branch-desc,
.student-classroom-ux .student-pronunciation-spec__footnote,
.student-classroom-ux .student-hw-card__instructions,
.student-classroom-ux .student-hw-empty-msg,
.student-classroom-ux .activity-description {
    font-family: 'Noto Sans Gujarati', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.student-classroom-ux .page-subtitle,
.student-classroom-ux .page-subtitle-gujarati {
    color: var(--classroom-ink);
    font-weight: 700;
}

.student-classroom-ux .page-subtitle-gujarati {
    font-size: clamp(1.15rem, 2.8vw, 1.6rem);
}

.student-classroom-ux .letter-main,
.student-classroom-ux .consonant-letter {
    font-size: clamp(3.5rem, 11vw, 5.75rem);
    color: var(--classroom-ink);
    font-weight: 800;
}

.student-classroom-ux .letter-word {
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    font-weight: 800;
    color: var(--classroom-ink);
}

.student-classroom-ux .letter-meaning {
    color: var(--classroom-muted);
    font-weight: 700;
    font-size: 1rem;
}

/* Only light polish on lesson banners — homework cards / dashboard panels keep their own styles */
.student-classroom-ux .phonics-pedagogy-banner,
.student-classroom-ux .student-pronunciation-spec__intro,
.student-classroom-ux .student-pronunciation-tips {
    border-radius: 1.35rem;
    border: 2px solid rgba(196, 181, 253, 0.55);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.1);
}

.student-classroom-ux .phonics-pedagogy-banner__text,
.student-classroom-ux .phonics-pedagogy-banner__hint {
    color: var(--classroom-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.student-classroom-ux .phonics-pedagogy-banner__hint {
    font-size: 0.98rem;
}

.student-classroom-ux .btn-back {
    font-weight: 800;
    border-width: 3px;
    border-color: #e9d5ff;
    color: #4338ca;
}

.student-classroom-ux .btn-back:hover {
    background: #faf5ff;
    border-color: #ddd6fe;
    transform: translateX(4px);
}

.student-classroom-ux .student-dashboard-panel__title,
.student-classroom-ux .section-title,
.student-classroom-ux .activity-title,
.student-classroom-ux .student-pronunciation-tips__title {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-weight: 700;
    color: var(--classroom-ink);
}

.student-classroom-ux .student-dashboard-nav__link {
    font-weight: 800;
}

.student-classroom-ux .student-dashboard-nav__link:hover {
    transform: translateY(-2px);
}

.student-classroom-ux .btn-listen,
.student-classroom-ux .btn-speak-practice,
.student-classroom-ux .btn-small-listen,
.student-classroom-ux .btn-small-speak,
.student-classroom-ux .btn-practice {
    min-height: 3.1rem;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 9999px;
    border: 3px solid #4338ca;
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.18);
}

.student-classroom-ux .tab-btn {
    border: 3px solid #4338ca;
    font-weight: 800;
    color: var(--classroom-ink);
    border-radius: 9999px;
}

.student-classroom-ux .tab-btn.active {
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.2);
}

.student-classroom-ux .student-vocab-tab {
    border-width: 3px;
    border-color: #6366f1;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.student-classroom-ux .student-vocab-tab.is-active {
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.25);
}

.student-classroom-ux .phonics-transcript {
    font-size: 1.05rem;
    color: var(--classroom-ink);
}

.student-classroom-ux .phonics-practice-result__heard,
.student-classroom-ux .phonics-practice-result__msg {
    font-size: 1rem;
    font-weight: 700;
    color: var(--classroom-ink);
}

.student-classroom-ux .phonics-action-hint {
    color: var(--classroom-ink);
    font-size: 1rem;
}

.student-classroom-ux .student-hw-card__hint {
    color: var(--classroom-muted);
    font-weight: 700;
    font-size: 0.98rem;
}

.student-classroom-ux .student-pronunciation-spec__branch-title {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    color: var(--classroom-ink);
    font-weight: 700;
}

/* ==================== STUDENT VOCABULARY HUB ==================== */
.student-vocab-hub {
    max-width: 52rem;
    margin: 0 auto;
}

.student-vocab-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.student-vocab-tab {
    border: 3px solid #0f172a;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.65rem 1.1rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-vocab-tab:hover {
    transform: translateY(-1px);
}

.student-vocab-tab.is-active {
    background: #0f172a;
    color: #fff;
}

.student-vocab-lede {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.55;
    margin-bottom: 1rem;
    text-align: center;
}

.student-vocab-empty {
    text-align: center;
}

.student-vocab-practice-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
}

.student-vocab-practice__word {
    font-family: 'Noto Sans Gujarati', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.75rem, 9vw, 4.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0.5rem 0 1rem;
    line-height: 1.15;
}

.student-vocab-practice__hint {
    font-size: clamp(1.15rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: #334155;
    margin: 0 0 0.75rem;
}

.student-vocab-practice__meta {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1rem;
}

.student-vocab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.student-vocab-btn {
    min-height: 3rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    border: 3px solid #0f172a;
    background: #fff;
    color: #0f172a;
    box-shadow: 3px 3px 0 #0f172a;
}

.student-vocab-btn--primary {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: #fff;
    border-color: #0f172a;
}

.student-vocab-btn--ghost {
    background: #f8fafc;
}

.student-vocab-spell-card {
    text-align: left;
    padding: 1.5rem 1.25rem;
}

.student-vocab-spell__label {
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.student-vocab-spell__prompt {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.student-vocab-spell__meta {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1rem;
}

.student-vocab-spell__field-label {
    display: block;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.student-vocab-spell__input {
    width: 100%;
    max-width: 100%;
    font-family: 'Noto Sans Gujarati', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: 3px solid #0f172a;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    color: #0f172a;
}

.student-vocab-spell__result {
    min-height: 1.75rem;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0.25rem 0 0.75rem;
}

.student-vocab-spell__result.is-ok {
    color: #047857;
}

.student-vocab-spell__result.is-retry {
    color: #b45309;
}

.student-vocab-list-card {
    margin-bottom: 1.5rem;
}

.student-vocab-table-wrap {
    overflow-x: auto;
}

.student-vocab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.student-vocab-table th,
.student-vocab-table td {
    text-align: left;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.student-vocab-table th {
    font-weight: 900;
    color: #0f172a;
    border-bottom: 2px solid rgba(15, 23, 42, 0.2);
}

/* ==================== STUDENT LISTENING ==================== */
.student-listening-page {
    min-height: 100vh;
    position: relative;
}

/* Kid-friendly shell (pastel sky + lavender, matches dashboard energy) */
.student-listening--kids {
    background:
        radial-gradient(110% 75% at 50% -10%, rgba(224, 242, 254, 0.95), transparent 52%),
        radial-gradient(85% 55% at 0% 45%, rgba(250, 232, 255, 0.75), transparent 48%),
        radial-gradient(80% 55% at 100% 55%, rgba(252, 231, 243, 0.65), transparent 48%),
        linear-gradient(168deg, #ecfeff 0%, #eef2ff 35%, #faf5ff 70%, #fef3c7 100%);
}

.student-listening--kids .header-icon.header-icon-listening,
.student-listening-page__icon {
    background: linear-gradient(145deg, #22d3ee 0%, #38bdf8 38%, #818cf8 100%);
    animation: student-listening-icon-bob 3.8s ease-in-out infinite;
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.28);
}

@keyframes student-listening-icon-bob {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

.student-listening-page__header-content {
    align-items: flex-start;
}

.student-listening-page__eyebrow {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c3aed;
    margin: 0 0 0.25rem;
}

.student-listening-page__title {
    margin-bottom: 0.35rem;
}

.student-listening-page__subtitle {
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    color: #334155;
    max-width: 36rem;
    line-height: 1.45;
}

.student-listening-page__subtitle-gu {
    margin-top: 0.4rem;
    color: #5b21b6;
    font-weight: 800;
}

.student-listening-hero-banner {
    max-width: 100%;
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.35rem 1.25rem 4.25rem;
    position: relative;
    border-radius: 1.75rem;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.75) 48%, rgba(237, 233, 254, 0.85) 100%);
    box-shadow:
        0 16px 36px rgba(99, 102, 241, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.student-listening-hero-banner__icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.15rem;
    line-height: 1;
}

.student-listening-hero-banner__text {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.55;
    margin: 0;
}

.student-listening-hero-banner__hint {
    margin: 0.65rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #4338ca;
    line-height: 1.5;
}

.student-listening-body--kids {
    width: 100%;
    margin: 0;
}

.student-listening-section-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 1.25rem 0 0.75rem;
    text-align: center;
}

.student-listening-section-title--kids {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.65rem);
    font-weight: 700;
    color: #312e81;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    padding: 0.5rem 1.35rem;
    border: 3px solid rgba(243, 232, 255, 0.95);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.08);
    margin-top: 1.75rem;
}

.student-listening-section-title__emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.student-listening-section-title__text {
    line-height: 1.2;
}

.student-listening-section-title__count {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.88em;
    font-weight: 700;
    color: #6366f1;
}

.student-listening-story-nav {
    max-width: 100%;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1.35rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.1);
}

/* Story cards: switch to 2-up layout on larger screens */
.student-listening-stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 1024px) {
    .student-listening-stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.student-listening-story-nav__label {
    display: block;
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #5b21b6;
    margin-bottom: 0.55rem;
    letter-spacing: 0.02em;
}

.student-listening-story-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.student-listening-story-nav__link {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.student-listening-story-nav__link:hover {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

.student-listening-card__index {
    margin: 0 0 0.5rem;
}

.student-listening-card__index-badge {
    display: inline-block;
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5b21b6;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    background: rgba(237, 233, 254, 0.95);
    border: 2px solid #ddd6fe;
}

.student-listening-card__title {
    margin-top: 0;
}

.student-listening-card {
    text-align: left;
    margin-bottom: 1rem;
}

.student-listening-card--kids {
    border-radius: 1.75rem;
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 32px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.student-listening-card--kids .activity-title {
    color: #1e3a8a;
}

.student-listening-body--kids [id^='listening-story-'] {
    scroll-margin-top: 1.5rem;
}

.student-listening-card--playing {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

.student-listening-playback {
    margin: 0.85rem 0 0.75rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, rgba(237, 233, 254, 0.75) 100%);
    border: 3px dashed rgba(56, 189, 248, 0.55);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
}

.student-listening-playback__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.student-listening-playback__hint {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.45;
}

.student-listening-details {
    margin-top: 0.85rem;
    border-radius: 1.25rem;
    border: 3px solid rgba(199, 210, 254, 0.85);
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
}

.student-listening-summary {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-weight: 700;
    cursor: pointer;
    color: #4338ca;
    font-size: 1.05rem;
}

.student-listening-story {
    margin-top: 0.75rem;
    font-family: 'Noto Sans Gujarati', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.65;
    color: #0f172a;
}

.student-listening-hw-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.student-listening-hw-item {
    margin-bottom: 0.85rem;
    text-align: left;
    padding: 1rem 1.15rem;
}

.student-listening-hw-item--kids {
    border-radius: 1.65rem;
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, #fffbeb 0%, #fef9c3 100%);
    box-shadow:
        0 12px 28px rgba(245, 158, 11, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.student-listening-hw-link {
    color: #92400e;
    text-decoration: none;
    font-size: 1.08rem;
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-weight: 700;
}

.student-listening-hw-link:hover {
    text-decoration: underline;
    color: #b45309;
}

.student-listening-hw-due {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 0.25rem;
}

.student-listening-hw-instructions {
    margin: 0.5rem 0 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}

.student-listening-footnote {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
}

.student-listening-footnote--kids {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(243, 232, 255, 0.9);
}

.student-listening-inline-link {
    color: #6d28d9;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.student-listening-inline-link:hover {
    color: #5b21b6;
}

.student-listening-empty-card {
    max-width: 28rem;
    margin: 2rem auto;
    padding: 2rem 1.5rem 1.85rem;
    text-align: center;
    border-radius: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(165deg, #ffffff 0%, #fae8ff 45%, #e0f2fe 100%);
    box-shadow:
        0 18px 40px rgba(124, 58, 237, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.student-listening-empty-card__emoji {
    font-size: 3.25rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.student-listening-empty-card__title {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #5b21b6;
    margin: 0 0 0.5rem;
}

.student-listening-empty-card__text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.student-listening--kids .student-listening-playback .btn-listen {
    font-family: 'Fredoka', 'Noto Sans', sans-serif;
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.student-listening--kids .student-listening-playback .btn-listen:hover {
    border-color: #0369a1;
}

@media (max-width: 520px) {
    .student-listening-hero-banner {
        padding: 3.6rem 1.2rem 1.2rem;
    }

    .student-listening-hero-banner__icon {
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==================== STUDENT LIVE CLASS BANNER ==================== */
.student-live-broadcast {
    margin: 0 auto 1.25rem;
    max-width: 56rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.student-live-broadcast--top {
    position: sticky;
    top: 0;
    z-index: 90;
}

@keyframes student-live-blink {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75));
        opacity: 0.9;
    }
}

@keyframes student-live-pulse {
    0%,
    100% {
        box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
    }
    50% {
        box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45);
    }
}

.student-live-broadcast__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 55%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.student-live-broadcast--top .student-live-broadcast__inner {
    animation: student-live-pulse 1.4s ease-in-out infinite;
}

.student-live-broadcast__icon {
    font-size: 2rem;
    line-height: 1;
}

.student-live-broadcast__icon--blink {
    animation: student-live-blink 1.05s ease-in-out infinite;
}

.student-live-broadcast__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.student-live-broadcast__title {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.student-live-broadcast__meta {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.95;
    line-height: 1.4;
}

.student-live-broadcast__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-live-broadcast__cta:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

/* ==================== STUDENT PROGRESS PILLARS ==================== */
.student-progress-empty-lede {
    text-align: center;
    margin-bottom: 1.25rem;
}

.student-progress-live-lede {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #4338ca;
}

.student-progress-mini-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #5b21b6;
}

.student-progress-mini-stats__sep {
    opacity: 0.45;
}

.student-progress-pillar__hint-link {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

.student-progress-pillar__hint-link:hover {
    color: #7c3aed;
}

.student-progress-pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.student-progress-pillar {
    text-align: center;
    padding: 1.35rem 1.15rem;
}

.student-progress-pillar__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.student-progress-pillar__title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.student-progress-pillar__hint {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
    margin: 0 0 0.75rem;
}

.student-progress-pillar__value {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.65rem;
    line-height: 1.1;
}

.student-progress-meter {
    height: 12px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 2px solid #0f172a;
}

.student-progress-meter__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.35s ease;
}

.student-progress-meter__fill--pronunciation {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.student-progress-meter__fill--vocabulary {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.student-progress-meter__fill--listening {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.student-progress-detail__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 1rem;
    text-align: center;
}

/* ==================== STUDENT SETTINGS ==================== */
.student-settings-flash {
    max-width: 40rem;
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-weight: 800;
    text-align: center;
    background: #ecfdf5;
    color: #065f46;
    border: 3px solid #065f46;
}

.student-settings-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #991b1b;
}

.student-settings-grid {
    max-width: 40rem;
    margin: 0 auto;
}

.student-settings-card {
    text-align: left;
    padding: 1.35rem 1.25rem;
}

.student-settings-card__title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.student-settings-card__lede {
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.student-settings-subtitle {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.student-settings-divider {
    border: none;
    border-top: 2px solid rgba(15, 23, 42, 0.12);
    margin: 1.25rem 0;
}

.student-settings-field {
    margin-bottom: 1rem;
}

.student-settings-label {
    display: block;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.student-settings-control {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: 3px solid #0f172a;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
}

.student-settings-error {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #b91c1c;
}

.student-settings-readonly {
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 1rem;
}

.student-settings-submit {
    margin-top: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 900;
    border-radius: 9999px;
    border: 3px solid #0f172a;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 4px 4px 0 #0f172a;
}

.student-settings-submit:hover {
    transform: translateY(-1px);
}
