:root {
    /* --- Calm Serene Islamic & Educational Theme Colors --- */
    --primary-emerald: #1A5341;
    --primary-emerald-dark: #11382B;
    --primary-emerald-light: #2D6A4F;
    --emerald-mint: #E8F5E9;
    
    --islamic-gold: #D4AF37;
    --islamic-gold-dark: #B8860B;
    --islamic-gold-light: #F4E5AB;
    --gold-glow: rgba(212, 175, 55, 0.45);
    
    --neutral-navy: #1F4E5B;
    --neutral-teal: #2E7281;
    --neutral-sand: #F7F5EE;
    
    --card-bg: #FFFFFF;
    --text-main: #1D2A24;
    --text-muted: #496357;
    --text-dim: #607269;
    
    --border-radius: 20px;
    --radius-xl: 28px;
    --radius-lg: 18px;
    
    /* Backward Compatibility Mappings */
    --masha-pink: var(--primary-emerald);
    --masha-pink-dark: var(--primary-emerald-dark);
    --masha-pink-light: var(--primary-emerald-light);
    --bear-brown: #1B3F33;
    --bear-brown-dark: #11382B;
    --honey-gold: var(--islamic-gold);
    --honey-amber: var(--islamic-gold-dark);
    --honey-light: #FBF9F2;
    --sunflower-yellow: var(--islamic-gold-light);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Tajawal', 'Changa', 'Cairo', sans-serif;
    background-color: #F8F7F2;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 83, 65, 0.05), transparent 30%),
        radial-gradient(circle at 90% 40%, rgba(212, 175, 55, 0.06), transparent 35%),
        linear-gradient(180deg, #FCFCFA 0%, #F4F2EB 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    direction: rtl;
    position: relative;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

/* Floating subtle educational and spiritual symbols */
.floating-forest-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.forest-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.16;
    animation: gentleFloat 12s infinite ease-in-out;
}

.leaf-1 { top: 12%; left: 6%; }
.leaf-2 { top: 35%; right: 4%; }
.leaf-3 { top: 65%; left: 8%; }
.leaf-4 { top: 82%; right: 7%; }
.leaf-5 { top: 48%; left: 50%; }

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(8deg); }
}

/* Top Islamic Ayah Banner */
.islamic-ayah-banner {
    background: rgba(17, 56, 43, 0.55);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    color: #F4E5AB;
    font-size: 0.98rem;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}

.islamic-ayah-banner .ayah-bullet {
    color: var(--islamic-gold);
    font-size: 0.8rem;
}

/* --- Islamic & Educational Calm Header --- */
.masha-premium-header {
    background: linear-gradient(135deg, #11382B 0%, #1A5341 50%, #0D2C22 100%);
    color: #FFFDF9;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 12px 32px rgba(17, 56, 43, 0.28);
    border-bottom: 4px solid var(--islamic-gold);
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.masha-premium-header.simple-profile-header {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.profile-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    position: relative;
    z-index: 2;
    text-align: right;
    padding: 1.6rem 2rem 1.8rem;
}

.header-avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #FFF;
    border: 3.5px solid var(--islamic-gold);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.55);
    flex-shrink: 0;
    overflow: hidden;
    animation: gentleGlow 3s infinite alternate;
}

@keyframes gentleGlow {
    0% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.8), 0 0 10px rgba(45, 106, 79, 0.4); }
}

.header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.header-titles-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-class-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--islamic-gold);
    color: #F4E5AB;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Changa', sans-serif;
}

.header-student-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'Marhey', 'Changa', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(17, 56, 43, 0.8), 0 0 20px rgba(212, 175, 55, 0.35);
    margin: 0;
    line-height: 1.15;
}

.header-class-subtitle {
    font-size: 1rem;
    color: #D1E7DD;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

.masha-premium-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.header-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    position: relative;
    z-index: 2;
    gap: 1.5rem;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-user-badge, .play-masha-btn {
    height: 62px;
    min-width: 215px;
    box-sizing: border-box;
    border-radius: 50px;
    border: 2px solid rgba(255, 215, 79, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-user-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0 1.2rem 0 0.55rem;
    cursor: default;
}

.nav-user-badge:hover {
    transform: translateY(-2px);
    border-color: var(--honey-gold);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.25);
}

.nav-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFF;
    border: 3px solid var(--honey-gold);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.5);
    flex-shrink: 0;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-star-badge {
    position: absolute;
    bottom: -4px;
    left: -4px;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-user-details {
    display: flex;
    align-items: center;
}

.nav-user-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'Marhey', 'Tajawal', sans-serif;
    letter-spacing: 0.3px;
    line-height: 1;
}

.play-masha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FFFFFF;
    padding: 0 1.4rem;
    font-family: 'Marhey', 'Tajawal', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}

.play-masha-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 79, 0.2);
    border-color: var(--honey-gold);
    color: var(--sunflower-yellow);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.35);
}

.play-masha-btn .btn-icon {
    font-size: 1.35rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.play-masha-btn .btn-badge {
    font-size: 1.15rem;
    line-height: 1;
}

.nav-title-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-title-capsule {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-emoji-cluster {
    font-size: 1.3rem;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: gentleBob 3s infinite ease-in-out;
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.nav-title-capsule h1 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 0 var(--masha-pink-dark), 0 0 20px rgba(233, 30, 99, 0.4);
    margin: 0;
    line-height: 1.2;
}

.nav-subject-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3E2723;
    background: linear-gradient(135deg, var(--honey-gold), var(--sunflower-yellow));
    padding: 2px 14px;
    border-radius: 20px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Changa', sans-serif;
}

.header-hero-strip {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.98rem;
    font-family: 'Tajawal', sans-serif;
}

.hero-bear-greeting {
    color: var(--sunflower-yellow);
    font-weight: 800;
}

.hero-divider {
    color: rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
    color: #F5EBE6;
    font-weight: 600;
}

/* --- Portal Main Wrapper --- */
.portal-main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

.section-head-masha {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-head-masha h2 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 2rem;
    color: var(--bear-brown-dark);
    margin-bottom: 6px;
}

.section-head-masha p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
}

/* --- Platform Cards (Centered Single Card) --- */
.masha-cards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.masha-platform-card {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 2.5rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 10px 28px rgba(17, 56, 43, 0.1);
    border: 2px solid #E2E8F0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.masha-platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 36px rgba(17, 56, 43, 0.18);
}

/* Specific Card Top Borders & Stages */
.card-science-theme {
    border-top: 6px solid var(--primary-emerald);
}
.card-science-theme:hover {
    border-color: var(--primary-emerald-light);
}
.card-science-theme .card-stage-bubble {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-color: #A5D6A7;
    color: var(--primary-emerald);
}
.card-science-theme .card-masha-btn {
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-emerald-light));
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(26, 83, 65, 0.4);
}

.card-reading-theme {
    border-top: 6px solid var(--islamic-gold);
}
.card-reading-theme:hover {
    border-color: var(--islamic-gold-light);
}
.card-reading-theme .card-stage-bubble {
    background: linear-gradient(135deg, #FFF9E6, #FDF0C8);
    border-color: #FFE082;
    color: #B8860B;
}
.card-reading-theme .card-masha-btn {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.card-math-theme {
    border-top: 6px solid var(--neutral-navy);
}
.card-math-theme:hover {
    border-color: var(--neutral-teal);
}
.card-math-theme .card-stage-bubble {
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
    border-color: #80CBC4;
    color: var(--neutral-navy);
}
.card-math-theme .card-masha-btn {
    background: linear-gradient(135deg, var(--neutral-navy), var(--neutral-teal));
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(31, 78, 91, 0.4);
}

/* Card Badge Pill */
.card-header-pill {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.lesson-status-pill {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Changa', sans-serif;
    background: #FFF8E1;
    color: #795548;
    border: 1px solid #FFE082;
}

/* Center Stage Bubble */
.card-stage-bubble {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.4rem 0 1rem 0;
    position: relative;
    border: 3px solid #FFFFFF;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-stage-bubble i {
    width: 44px;
    height: 44px;
    stroke-width: 2.2;
}

.masha-platform-card:hover .card-stage-bubble {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--bear-brown-dark);
    margin-bottom: 0.4rem;
    font-family: 'Marhey', 'Changa', sans-serif;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 46px;
    font-family: 'Tajawal', sans-serif;
}

/* Action Button Inside Card - Exactly Matching Reading Buttons */
.card-masha-btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Changa', 'Tajawal', sans-serif;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

.card-masha-btn i {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.masha-platform-card:hover .card-masha-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.masha-platform-card:hover .card-masha-btn i {
    transform: translateX(-5px);
}

/* --- Masha & Bear Login Overlay (Cottage Theme) --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(62, 39, 35, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding: 20px;
}

.login-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-cottage-card {
    background: #FFFFFF;
    border-radius: 30px;
    border: 3.5px solid var(--islamic-gold);
    max-width: 470px;
    width: 100%;
    box-shadow: 
        0 25px 50px rgba(17, 56, 43, 0.32),
        0 0 30px rgba(212, 175, 55, 0.3);
    animation: cottagePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    text-align: center;
}

@keyframes cottagePop {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-cottage-header {
    background: linear-gradient(135deg, #11382B 0%, #1A5341 50%, #0D2C22 100%);
    padding: 25px 20px 20px;
    position: relative;
    border-bottom: 3.5px solid var(--islamic-gold);
}

.login-cottage-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.login-avatar-outer {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3.5px solid var(--islamic-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.65);
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-avatar-outer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.login-cottage-header h2 {
    font-family: 'Marhey', 'Changa', sans-serif;
    font-size: 1.85rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(17, 56, 43, 0.8), 0 0 15px rgba(212, 175, 55, 0.4);
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
}

.login-cottage-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--islamic-gold), var(--islamic-gold-light));
    color: #11382B;
    font-family: 'Changa', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 3px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.login-cottage-body {
    padding: 25px 25px 30px;
}

.login-cottage-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
}

.input-wrap-masha {
    margin-bottom: 16px;
}

#access-code {
    width: 100%;
    background: #F8F7F2;
    border: 2.5px solid #D4AF37;
    padding: 14px 18px;
    border-radius: 50px;
    color: #11382B;
    font-size: 1.7rem;
    text-align: center;
    letter-spacing: 6px;
    font-family: 'Changa', monospace;
    font-weight: 800;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(17, 56, 43, 0.08);
}

#access-code:focus {
    background: #FFFFFF;
    border-color: #1A5341;
    box-shadow: 0 0 16px rgba(26, 83, 65, 0.35), inset 0 2px 6px rgba(0,0,0,0.05);
}

#access-code::placeholder {
    color: #9EAB9F;
    font-size: 1.05rem;
    letter-spacing: normal;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
}

/* The Serene Emerald Login Button */
#login-btn {
    width: 100%;
    background: linear-gradient(135deg, #1A5341 0%, #2D6A4F 100%);
    color: #FFFFFF;
    border: 2px solid var(--islamic-gold);
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Changa', 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(17, 56, 43, 0.35);
}

#login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #2D6A4F 0%, #1A5341 100%);
    box-shadow: 0 12px 25px rgba(17, 56, 43, 0.45), 0 0 18px rgba(212, 175, 55, 0.45);
    border-color: var(--islamic-gold-light);
}

#login-btn:active {
    transform: translateY(0);
}

.error-msg {
    color: #E53935 !important;
    margin-top: 10px;
    min-height: 22px;
    font-weight: 700;
    font-size: 0.95rem;
}

.login-cottage-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px dashed #EFEBE9;
    font-size: 0.88rem;
    color: #8D6E63;
    font-weight: 600;
}

/* Expired Alert Box */
.expired-alert-box {
    background: rgba(229, 57, 53, 0.08);
    border: 2px solid #E53935;
    border-radius: 20px;
    padding: 18px;
    margin-top: 10px;
    text-align: center;
}

.expired-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.expired-alert-box h3 {
    color: #D32F2F;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'Changa', sans-serif;
}

.expired-alert-box p {
    color: #C62828 !important;
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1877F2, #0D5CB6);
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-family: 'Changa', sans-serif;
}

.contact-us-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5);
}

.contact-us-btn i {
    width: 18px;
    height: 18px;
}

/* Footer */
.masha-footer {
    margin-top: 3rem;
    text-align: center;
    padding-bottom: 2rem;
}

.masha-footer-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--honey-gold), transparent);
    margin: 0 auto 12px;
}

.masha-footer p {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 850px) {
    .header-nav-bar {
        flex-direction: column;
        padding: 1.2rem 1rem;
        gap: 1rem;
    }
    .nav-right-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-user-badge, .play-masha-btn {
        min-width: 170px;
        height: 52px;
        font-size: 1rem;
    }
    .nav-title-capsule h1 {
        font-size: 1.8rem;
    }
    .masha-cards-grid {
        grid-template-columns: 1fr;
    }
}
