/* ============================================
   ASMA UL HUSNA — KIDS VERSION
   ============================================ */

:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --pink: #ec4899;
    --pink-light: #f9a8d4;
    --blue: #3b82f6;
    --blue-light: #93c5fd;
    --green: #10b981;
    --green-light: #6ee7b7;
    --orange: #f59e0b;
    --orange-light: #fcd34d;
    --red: #ef4444;
    --bg: #fef9ff;
    --card: #ffffff;
    --text: #1e1033;
    --text-light: #6b5580;
    --font-kids: 'Nunito', -apple-system, sans-serif;
    --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
    --radius: 20px;
    --shadow: 0 4px 20px rgba(124,58,237,0.1);
    --shadow-lg: 0 8px 30px rgba(124,58,237,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-kids);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Floating background shapes --- */
.bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatShape 20s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: var(--purple); top: -50px; left: -50px; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--pink); top: 30%; right: -40px; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: var(--blue); bottom: 10%; left: 10%; animation-delay: -10s; }
.shape-4 { width: 180px; height: 180px; background: var(--orange); top: 60%; right: 20%; animation-delay: -3s; }
.shape-5 { width: 150px; height: 150px; background: var(--green); top: 10%; left: 40%; animation-delay: -7s; }
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* --- Navigation --- */
#kidsNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    padding: 0; box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px; height: 60px;
}
.back-btn {
    color: white; text-decoration: none; font-size: 1.4rem;
    background: rgba(255,255,255,0.15); width: 36px; height: 36px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.25); }
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-star { font-size: 1.5rem; }
.nav-title { color: white; font-size: 1.1rem; font-weight: 800; }
.nav-tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
    background: rgba(255,255,255,0.12); border: none; color: rgba(255,255,255,0.8);
    padding: 8px 16px; border-radius: 30px; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: 0.2s; font-family: var(--font-kids);
}
.tab:hover { background: rgba(255,255,255,0.2); }
.tab.active { background: white; color: var(--purple); }
.nav-download-kids {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: white; text-decoration: none;
    padding: 7px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800;
    transition: 0.2s; margin-left: 4px; white-space: nowrap;
}
.nav-download-kids:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(16,185,129,0.4);
}
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; }

/* --- Pages --- */
.page { position: relative; z-index: 1; min-height: 100vh; padding-top: 80px; }
.page-container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
.page-title {
    font-size: 2rem; font-weight: 900; text-align: center;
    color: var(--purple); margin-bottom: 8px;
}
.page-sub {
    text-align: center; color: var(--text-light); margin-bottom: 28px; font-size: 1rem;
}

/* --- Hero --- */
.hero-kids {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 80px 20px 40px; min-height: 100vh;
    background: linear-gradient(160deg, #f3e8ff 0%, #fce7f3 30%, #e0f2fe 60%, #ecfdf5 100%);
}
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-bismillah {
    font-family: var(--font-arabic); font-size: 1.6rem;
    color: var(--purple); opacity: 0.7; margin-bottom: 16px;
}
.hero-title-kids {
    font-size: 2.8rem; font-weight: 900; line-height: 1.2;
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px;
}
.hero-sub {
    font-size: 1.15rem; color: var(--text-light); margin-bottom: 28px; line-height: 1.7;
}
.hero-nameofday {
    background: white; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 28px;
    border: 3px solid var(--orange-light);
}
.nameofday-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; color: var(--orange); margin-bottom: 8px;
}
.nameofday-emoji { font-size: 2rem; margin-bottom: 6px; }
.nameofday-arabic {
    font-family: var(--font-arabic); font-size: 2rem;
    color: var(--purple); margin-bottom: 4px;
}
.nameofday-name { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.nameofday-meaning { font-size: 0.9rem; color: var(--pink); font-weight: 700; margin-bottom: 8px; }
.nameofday-def { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* --- Buttons --- */
.btn-fun {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px; border: none;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    font-family: var(--font-kids);
    transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-fun:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-fun:active { transform: translateY(0); }
.btn-explore { background: linear-gradient(135deg, var(--purple), var(--blue)); color: white; }
.btn-quiz { background: linear-gradient(135deg, var(--orange), var(--pink)); color: white; }
.btn-green { background: linear-gradient(135deg, var(--green), #059669); color: white; }
.btn-red { background: linear-gradient(135deg, var(--red), var(--pink)); color: white; }
.btn-shuffle { background: linear-gradient(135deg, var(--blue-light), var(--purple-light)); color: white; margin-top: 12px; }
.btn-small { padding: 8px 16px; font-size: 0.8rem; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Search --- */
.search-kids { margin-bottom: 24px; }
.search-kids input {
    width: 100%; padding: 14px 20px; border: 3px solid var(--purple-light);
    border-radius: 50px; font-size: 1rem; font-family: var(--font-kids);
    background: white; transition: 0.2s; font-weight: 600;
}
.search-kids input:focus {
    outline: none; border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}

/* --- Names Grid --- */
.names-grid-kids {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.kid-card {
    background: white; border-radius: var(--radius);
    padding: 20px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; position: relative;
    border: 3px solid transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.kid-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue), var(--green));
    transform: scaleX(0); transition: transform 0.3s;
}
.kid-card:hover::before { transform: scaleX(1); }
.kid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-light);
}
.kid-card.learned {
    border-color: var(--green-light);
    background: linear-gradient(135deg, #ecfdf5, white);
}
.kid-card.learned::after {
    content: '⭐'; position: absolute; top: 8px; right: 10px; font-size: 1.2rem;
}
.kid-card-emoji { font-size: 2rem; margin-bottom: 6px; }
.kid-card-num {
    position: absolute; top: 8px; left: 10px;
    font-size: 0.65rem; font-weight: 800; color: var(--purple-light);
}
.kid-card-arabic {
    font-family: var(--font-arabic); font-size: 1.8rem;
    color: var(--purple); margin-bottom: 6px; line-height: 1.4;
}
.kid-card-name {
    font-size: 0.9rem; font-weight: 800; color: var(--text); margin-bottom: 2px;
}
.kid-card-meaning {
    font-size: 0.78rem; color: var(--pink); font-weight: 700;
}

/* --- Modal --- */
.modal-kids-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 3000; padding: 20px;
}
.modal-kids-overlay.open { display: flex; }
.modal-kids {
    background: white; border-radius: 24px;
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); position: relative;
    animation: popIn 0.3s ease;
    border: 4px solid var(--purple-light);
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-close-btn {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    background: var(--red); color: white; border: none;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1rem; cursor: pointer; font-weight: 800;
}
.modal-nav-kids {
    position: absolute; top: 50%; left: -20px; right: -20px;
    display: flex; justify-content: space-between; pointer-events: none;
}
.modal-arrow {
    pointer-events: all; background: white; border: 3px solid var(--purple-light);
    width: 40px; height: 40px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; color: var(--purple); transition: 0.2s;
}
.modal-arrow:hover { background: var(--purple); color: white; }
.modal-body-kids { padding: 28px; text-align: center; }
.modal-emoji { font-size: 3rem; margin-bottom: 8px; }
.modal-arabic-kids {
    font-family: var(--font-arabic); font-size: 2.8rem;
    color: var(--purple); line-height: 1.4; margin-bottom: 6px;
}
.modal-name-kids { font-size: 1.3rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.modal-meaning-kids { font-size: 1rem; color: var(--pink); font-weight: 700; margin-bottom: 16px; }
.modal-def-kids {
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    padding: 16px; border-radius: 16px;
    font-size: 1rem; color: var(--text); line-height: 1.7; margin-bottom: 12px;
    text-align: left;
}
.modal-example-kids {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    padding: 16px; border-radius: 16px;
    font-size: 0.95rem; color: var(--text); line-height: 1.7;
    text-align: left; border-left: 4px solid var(--green);
    margin-bottom: 16px;
}
.modal-example-kids strong { color: var(--green); }
.modal-star-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 50px; border: 3px solid var(--orange);
    background: transparent; color: var(--orange);
    font-size: 0.9rem; font-weight: 800; cursor: pointer;
    font-family: var(--font-kids); transition: 0.2s;
}
.modal-star-btn.learned {
    background: var(--orange); color: white;
}

/* --- Flash Cards --- */
.fc-progress-kids { text-align: center; font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: 16px; }
.fc-area-kids {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 24px; perspective: 1200px;
}
.fc-arrow {
    background: white; border: 3px solid var(--purple-light);
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; color: var(--purple);
    transition: 0.2s; flex-shrink: 0;
}
.fc-arrow:hover { background: var(--purple); color: white; }
.fc-card-kids { width: 380px; height: 280px; cursor: pointer; }
.fc-inner-kids {
    width: 100%; height: 100%; position: relative;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    transform-style: preserve-3d;
}
.fc-card-kids.flipped .fc-inner-kids { transform: rotateY(180deg); }
.fc-front-kids, .fc-back-kids {
    position: absolute; inset: 0; backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px; border-radius: var(--radius);
    text-align: center; overflow-y: auto;
    border: 4px solid var(--purple-light);
}
.fc-front-kids {
    background: linear-gradient(135deg, #fef3c7, #fce7f3, #e0e7ff);
}
.fc-back-kids {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; transform: rotateY(180deg);
}
.fc-front-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.fc-front-arabic { font-family: var(--font-arabic); font-size: 2.2rem; color: var(--purple); margin-bottom: 6px; }
.fc-front-hint { font-size: 0.85rem; color: var(--text-light); font-weight: 700; margin-top: 8px; }
.fc-back-name { font-size: 1.2rem; font-weight: 900; margin-bottom: 4px; }
.fc-back-meaning { font-size: 1rem; color: var(--orange-light); font-weight: 700; margin-bottom: 12px; }
.fc-back-def { font-size: 0.9rem; line-height: 1.6; opacity: 0.9; }
.fc-actions-kids { display: flex; gap: 16px; justify-content: center; }

/* --- Quiz --- */
.quiz-setup-kids { text-align: center; max-width: 400px; margin: 0 auto; }
.quiz-intro { font-size: 1.1rem; font-weight: 700; color: var(--text-light); margin-bottom: 16px; }
.quiz-count-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.count-btn {
    width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid var(--purple-light); background: white;
    font-size: 1.3rem; font-weight: 900; color: var(--purple);
    cursor: pointer; transition: 0.2s; font-family: var(--font-kids);
}
.count-btn.active, .count-btn:hover {
    background: var(--purple); color: white; border-color: var(--purple);
}
.quiz-progress-kids { margin-bottom: 20px; }
.quiz-bar-bg {
    height: 12px; background: #e9d5ff; border-radius: 6px; overflow: hidden; margin-bottom: 8px;
}
.quiz-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
    border-radius: 6px; transition: width 0.3s; width: 0%;
}
.quiz-stars-count { text-align: right; font-size: 0.95rem; font-weight: 700; color: var(--text-light); }
.quiz-question-kids {
    background: white; padding: 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center; margin-bottom: 16px;
    border: 3px solid var(--purple-light);
}
.quiz-q-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.quiz-q-arabic { font-family: var(--font-arabic); font-size: 2.2rem; color: var(--purple); margin-bottom: 6px; }
.quiz-q-text { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.quiz-options-kids {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.quiz-opt-kids {
    background: white; border: 3px solid #e9d5ff; border-radius: 16px;
    padding: 16px; cursor: pointer; transition: 0.2s;
    text-align: center; font-size: 0.95rem; font-weight: 700;
    font-family: var(--font-kids);
}
.quiz-opt-kids:hover { border-color: var(--purple); background: #faf5ff; transform: scale(1.02); }
.quiz-opt-kids.correct { border-color: var(--green); background: #ecfdf5; }
.quiz-opt-kids.wrong { border-color: var(--red); background: #fef2f2; }
.quiz-opt-kids.disabled { pointer-events: none; }

/* Quiz Results */
.quiz-results-kids {
    text-align: center; background: white; padding: 40px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    border: 4px solid var(--orange-light);
}
.results-emoji { font-size: 4rem; margin-bottom: 12px; }

/* --- Stars / Progress --- */
.stars-overview {
    text-align: center; background: white; border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow); margin-bottom: 28px;
    border: 3px solid var(--orange-light);
}
.stars-big-count { margin-bottom: 4px; }
.stars-num {
    font-size: 4rem; font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stars-label { font-size: 1.1rem; font-weight: 700; color: var(--text-light); display: block; }
.stars-of-total { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.stars-bar-wrap { max-width: 400px; margin: 0 auto; }
.stars-bar-bg { height: 16px; background: #fef3c7; border-radius: 8px; overflow: hidden; }
.stars-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--orange), var(--pink));
    border-radius: 8px; transition: width 0.5s;
}
.stars-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px; margin-bottom: 20px;
}
.star-cell {
    text-align: center; padding: 8px 4px; border-radius: 12px;
    font-size: 0.7rem; font-weight: 700; cursor: pointer;
    border: 2px solid #e9d5ff; background: white; transition: 0.2s;
}
.star-cell-arabic { font-family: var(--font-arabic); font-size: 1rem; display: block; }
.star-cell.learned { background: #fef3c7; border-color: var(--orange); }
.star-cell:hover { transform: scale(1.05); }
.stars-actions { text-align: center; }

/* --- Match Game --- */
.match-controls-kids {
    display: flex; gap: 16px; align-items: center; justify-content: center;
    flex-wrap: wrap; margin-bottom: 16px;
}
.match-count-btns { display: flex; gap: 8px; }
.match-count-btn {
    padding: 8px 18px; border-radius: 30px;
    border: 3px solid var(--purple-light); background: white;
    font-size: 0.85rem; font-weight: 800; color: var(--purple);
    cursor: pointer; transition: 0.2s; font-family: var(--font-kids);
}
.match-count-btn.active, .match-count-btn:hover {
    background: var(--purple); color: white; border-color: var(--purple);
}
.match-info-kids {
    display: flex; justify-content: center; gap: 24px;
    font-size: 1rem; font-weight: 800; color: var(--text-light);
    margin-bottom: 20px;
}
.match-board-kids {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; max-width: 700px; margin: 0 auto;
}
.match-col-kids {
    display: flex; flex-direction: column; gap: 10px;
}
.match-col-header {
    text-align: center; font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--purple); margin-bottom: 4px;
}
.match-item-kids {
    background: white; border: 3px solid #e9d5ff;
    border-radius: 16px; padding: 14px; text-align: center;
    cursor: pointer; transition: all 0.2s; font-family: var(--font-kids);
}
.match-item-kids:hover {
    border-color: var(--purple); transform: scale(1.02);
}
.match-item-kids.selected {
    border-color: var(--blue); background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.match-item-kids.matched {
    border-color: var(--green); background: #ecfdf5;
    pointer-events: none; opacity: 0.7;
}
.match-item-kids.wrong {
    animation: kidShake 0.4s ease;
    border-color: var(--red); background: #fef2f2;
}
@keyframes kidShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.match-item-arabic {
    font-family: var(--font-arabic); font-size: 1.4rem; color: var(--purple);
}
.match-item-emoji { font-size: 1.3rem; margin-right: 6px; }
.match-item-text { font-size: 0.88rem; font-weight: 700; }
.match-item-def { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

.match-done-kids {
    text-align: center; background: white; padding: 40px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    border: 4px solid var(--green-light); max-width: 400px; margin: 20px auto 0;
}
.match-done-emoji { font-size: 4rem; margin-bottom: 8px; }

@media (max-width: 600px) {
    .match-board-kids { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Help Me / Life Situations --- */
.helpme-tabs {
    display: flex; gap: 4px; justify-content: center; margin-bottom: 24px;
}
.helpme-tab {
    padding: 10px 24px; border: 3px solid var(--purple-light);
    border-radius: 30px; background: white; cursor: pointer;
    font-size: 0.9rem; font-weight: 800; font-family: var(--font-kids);
    transition: 0.2s; color: var(--purple);
}
.helpme-tab.active {
    background: var(--purple); color: white; border-color: var(--purple);
}
.helpme-list { display: flex; flex-direction: column; gap: 16px; }
.helpme-card {
    background: white; border-radius: var(--radius);
    border: 3px solid #e9d5ff; overflow: hidden;
    transition: 0.2s;
}
.helpme-card:hover { box-shadow: var(--shadow); }
.helpme-header {
    padding: 16px 20px; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    transition: 0.2s;
}
.helpme-header:hover { background: #faf5ff; }
.helpme-header-emoji { font-size: 1.8rem; }
.helpme-header-text { flex: 1; }
.helpme-header-text h3 {
    font-size: 1.05rem; font-weight: 800; color: var(--text);
}
.helpme-header-text p {
    font-size: 0.82rem; color: var(--text-light); margin-top: 2px;
}
.helpme-toggle {
    font-size: 1.2rem; color: var(--purple-light); transition: transform 0.3s;
}
.helpme-card.open .helpme-toggle { transform: rotate(180deg); }
.helpme-body {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.helpme-card.open .helpme-body { max-height: 1000px; }
.helpme-body-inner {
    padding: 0 20px 20px; border-top: 2px solid #f3e8ff;
    padding-top: 16px;
}
.helpme-names {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.helpme-name-tag {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    transition: 0.2s;
}
.helpme-name-tag:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(124,58,237,0.3); }
.helpme-dua {
    background: linear-gradient(135deg, #fef3c7, #fce7f3);
    padding: 14px 16px; border-radius: 14px;
    font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px;
    border-left: 4px solid var(--orange);
}
.helpme-dua strong { color: var(--orange); }
.helpme-tip {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    padding: 14px 16px; border-radius: 14px;
    font-size: 0.88rem; line-height: 1.6;
    border-left: 4px solid var(--green);
}
.helpme-tip strong { color: var(--green); }
.helpme-advice {
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    padding: 14px 16px; border-radius: 14px;
    font-size: 0.9rem; line-height: 1.7;
}

/* Feelings table */
.feelings-card {
    background: white; border-radius: 16px;
    border: 3px solid #e9d5ff; padding: 16px 20px;
    display: flex; align-items: flex-start; gap: 14px;
    transition: 0.2s;
}
.feelings-card:hover { box-shadow: var(--shadow); border-color: var(--purple-light); }
.feelings-state {
    font-size: 0.95rem; font-weight: 800; color: var(--purple);
    min-width: 110px;
}
.feelings-content { flex: 1; }
.feelings-names { margin-bottom: 6px; }

/* Download banner for kids */
.hero-download-kids { margin-top: 20px; }
.download-kids {
    display: inline-block; padding: 12px 24px;
    background: linear-gradient(135deg, var(--green), #059669);
    color: white; text-decoration: none; border-radius: 50px;
    font-size: 0.9rem; font-weight: 800; transition: 0.2s;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.download-kids:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

/* Dua in modal */
.modal-dua-kids {
    background: linear-gradient(135deg, #fef3c7, #fce7f3);
    padding: 14px 16px; border-radius: 14px;
    font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px;
    border-left: 4px solid var(--orange); text-align: left;
}
.modal-dua-kids strong { color: var(--orange); }
.modal-live-kids {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    padding: 14px 16px; border-radius: 14px;
    font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px;
    border-left: 4px solid var(--green); text-align: left;
}
.modal-live-kids strong { color: var(--green); }

@media (max-width: 600px) {
    .feelings-card { flex-direction: column; }
    .feelings-state { min-width: auto; }
}

/* --- Tooltip --- */
.kids-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1e1033, #2d1b4e);
    color: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
    max-width: 340px;
    box-shadow: 0 8px 30px rgba(124,58,237,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2000;
    line-height: 1.6;
    border: 3px solid var(--purple-light);
    font-family: var(--font-kids);
}
.kids-tooltip.visible { opacity: 1; }
.kids-tooltip-emoji { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.kids-tooltip-arabic {
    font-family: var(--font-arabic); font-size: 1.4rem;
    color: var(--purple-light); margin-bottom: 4px; text-align: center;
}
.kids-tooltip-name { font-weight: 800; color: var(--orange-light); margin-bottom: 2px; }
.kids-tooltip-meaning { color: var(--pink-light); font-weight: 700; margin-bottom: 6px; font-size: 0.82rem; }
.kids-tooltip-def { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* --- Footer --- */
.footer-kids {
    text-align: center; padding: 32px 20px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white; font-size: 0.9rem; font-weight: 700;
}
.footer-kids a { color: var(--orange-light); }

/* --- Confetti animation --- */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.confetti-piece {
    position: fixed; width: 10px; height: 10px; border-radius: 2px;
    animation: confetti 1s ease-out forwards; z-index: 9999;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-tabs { display: none; }
    .nav-tabs.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: linear-gradient(135deg, var(--purple), var(--pink));
        padding: 12px; gap: 4px;
    }
    .nav-toggle { display: flex; }
    .hero-title-kids { font-size: 2rem; }
    .fc-card-kids { width: 280px; height: 220px; }
    .quiz-options-kids { grid-template-columns: 1fr; }
    .modal-nav-kids { left: -5px; right: -5px; }
    .names-grid-kids { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
