/* ===== সাইটের ফন্ট: /fonts/RAU.ttf (সবখানে একই) =====
   ফন্টে কোনো অক্ষর না থাকলে (যেমন আরবি হারাকাত) শুধু সেই অক্ষর পরের ফন্ট থেকে আসবে */
@font-face {
    font-family: 'RAU';
    src: url('../fonts/RAU.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --font-main:   'RAU', 'Noto Sans Bengali', 'Amiri', 'Segoe UI', Tahoma, sans-serif;
    --font-arabic: 'RAU', 'Amiri', 'Noto Naskh Arabic', serif;
}
button, input, select, textarea { font-family: inherit; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    overflow-x: hidden;
    /* ডিফল্ট ব্যাকগ্রাউন্ড — লেভেল ১ */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../assets/home-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* লেভেল ২ ব্যাকগ্রাউন্ড — মরুদ্যান দৃশ্য */
body.level2-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../assets/level2-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* ব্যাকগ্রাউন্ড এখানেও ফিক্সড রাখি — মোবাইল সাপোর্টের জন্য */
    background: inherit;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    /* safe center — ছোট কনটেন্ট সেন্টার, বড় কনটেন্ট উপর থেকে শুরু (কাটা যাবে না) */
    align-items: safe center;
    color: white;
}

.arabic-letters {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-letter {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.title {
    margin-bottom: 3rem;
}

.title h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.title .brand-credit {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    opacity: 0.75;
}
.title .brand-credit a {
    color: #ffe9a0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 233, 160, 0.4);
    transition: opacity 0.15s;
}
.title .brand-credit a:hover { opacity: 1; }

/* ===== স্টিকি টপ নেভিগেশন বার (ফ্রস্টেড গ্লাস ইফেক্ট) ===== */
body.has-nav { padding-top: 56px; }
@media (max-width: 600px) { body.has-nav { padding-top: 52px; } }

.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    /* ফ্রস্টেড গ্লাস — সম্পূর্ণ ট্রান্সপারেন্ট, শুধু ব্লার + স্যাচুরেশন */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.topnav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 0.2rem;
    padding: 0 0.6rem; height: 56px;
    overflow-x: auto; scrollbar-width: none;
}
.topnav-inner::-webkit-scrollbar { display: none; }

.topnav-brand, .topnav-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font: inherit; font-size: 0.92rem; font-weight: 500;
    background: transparent; border: none; cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.topnav-brand { color: #ffd700; font-weight: 700; }
.topnav-brand i, .topnav-link i { font-size: 1rem; }
.topnav-link:hover, .topnav-brand:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.topnav-link.active { background: rgba(255, 215, 0, 0.25); color: #ffd700; }
.topnav-link.topnav-logout { color: #ff9a9a; }
.topnav-link.topnav-logout:hover { background: rgba(239, 83, 80, 0.25); color: #ffb3b3; }
.topnav-spacer { flex: 1; }

/* মোবাইল ভিউতে টপ নেভিগেশনে কিছু লেখা লুকানো */
@media (max-width: 600px) {
    .topnav-inner { height: 52px; padding: 0 0.4rem; gap: 0.1rem; }
    .topnav-brand, .topnav-link { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
    .hide-mobile { display: none; }
}

/* ছোট স্ক্রিনে টপ নেভ লুকাবো না — কিন্তু মোবাইলে বটম নেভও দেখাবো */
@media (max-width: 600px) {
    .topnav { display: none; }
    body.has-nav { padding-top: 0; padding-bottom: 64px; }
}

/* ===== মোবাইল বটম নেভিগেশন (ফ্রস্টেড গ্লাস ইফেক্ট) ===== */
.bottomnav {
    display: none;
}
@media (max-width: 600px) {
    .bottomnav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1000;
        /* ফ্রস্টেড গ্লাস — ট্রান্সপারেন্ট, ব্লার + স্যাচুরেশন */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid rgba(255, 215, 0, 0.25);
        box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.18);
        padding: 0.4rem 0;
    }
    .bn-link {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
        padding: 0.4rem 0.2rem;
        background: transparent; border: none;
        color: rgba(255, 255, 255, 0.85);
        font: inherit; font-size: 0.7rem;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s;
    }
    .bn-link i { font-size: 1.2rem; }
    .bn-link.active { color: #ffd700; }
    .bn-link:active { color: #ffd700; }
}

/* ===== ফুটার (ফ্রস্টেড গ্লাস ইফেক্ট) ===== */
.site-footer {
    text-align: center;
    padding: 1rem;
    /* ফ্রস্টেড গ্লাস — ট্রান্সপারেন্ট, ব্লার + স্যাচুরেশন */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-sep { opacity: 0.4; }
.site-footer a {
    color: #ffe9a0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 233, 160, 0.4);
    transition: color 0.15s, border-color 0.15s;
}
.site-footer a:hover { color: #fff; border-color: #ffd700; }
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; gap: 0.2rem; }
    .footer-sep { display: none; }
    .site-footer { margin-bottom: 56px; padding: 0.8rem 0.5rem; }
}

/* ===== যোগাযোগ মোডাল ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.2, 1, 0.4, 1);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute;
    top: 0.6rem; right: 0.6rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff; cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}
.modal-close:hover { background: rgba(239, 83, 80, 0.4); }
.modal-title {
    color: #ffd700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.3rem;
}
.modal-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}
.contact-methods {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.contact-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.contact-card:hover { background: rgba(255, 215, 0, 0.15); border-color: rgba(255, 215, 0, 0.5); transform: translateY(-2px); }
.contact-card.email { color: #ffce5c; }
.contact-card.whatsapp { color: #25d366; }
.contact-card.phone { color: #66bb6a; }
.cc-icon {
    font-size: 1.8rem;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.cc-info { display: flex; flex-direction: column; gap: 0.15rem; }
.cc-label { font-size: 0.78rem; opacity: 0.7; }
.cc-value { font-size: 1rem; font-weight: 600; word-break: break-all; }

/* ===== about/help পেজ স্টাইল ===== */
.page-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}
.page-hero h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 0.3rem;
}
.page-hero-sub {
    opacity: 0.85;
    font-size: 0.95rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    text-align: left;
    backdrop-filter: blur(6px);
}
.info-card h4 {
    color: #ffd700;
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
}
.info-card p { line-height: 1.7; margin-bottom: 0.7rem; opacity: 0.95; }
.info-card p:last-child { margin-bottom: 0; }

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0;
}
.feature-list li {
    display: flex; gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.feature-list li i {
    font-size: 1.4rem;
    color: #ffd700;
    width: 36px; flex-shrink: 0;
}
.feature-list strong { color: #ffe9a0; display: block; margin-bottom: 0.2rem; }
.feature-list p { font-size: 0.88rem; opacity: 0.85; margin: 0; line-height: 1.5; }

.method-steps, .help-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.method-steps li, .help-steps > li {
    counter-increment: step;
    position: relative;
    padding: 0.7rem 0 0.7rem 2.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.method-steps li:last-child, .help-steps > li:last-child { border-bottom: none; }
.method-steps li::before, .help-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0.7rem;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a1a2e;
    font-weight: bold;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}
.method-steps li strong, .help-steps > li > strong {
    color: #ffe9a0;
    display: block;
    margin-bottom: 0.3rem;
}
.method-steps li p, .help-steps > li > p {
    margin: 0 0 0.3rem;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.92rem;
}
.help-steps .hint {
    margin-top: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
    border-radius: 4px;
    font-size: 0.85rem;
}
.sub-list {
    margin: 0.5rem 0 0.5rem 1.5rem;
    line-height: 1.8;
    opacity: 0.92;
}
.sub-list li { margin-bottom: 0.3rem; }

.tips-list { list-style: none; padding: 0; }
.tips-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}
.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0.5rem;
    color: #66bb6a;
    font-weight: bold;
}
.tips-list strong { color: #ffe9a0; }

.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.structure-table th, .structure-table td {
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    font-size: 0.92rem;
}
.structure-table th { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.structure-table td[rowspan] { vertical-align: middle; font-weight: 600; color: #ffe9a0; }

.page-cta {
    text-align: center;
    margin: 1.5rem 0;
}


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

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #ffd700;
}

.card-header h3 {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.toggle-text {
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

.toggle-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.toggle-link:hover {
    text-decoration: underline;
}


/* ================= ধাপ ১-এ যোগ করা অংশ ================= */

/* আরবি টেক্সটের ফন্ট */
.arabic, .title h2, .arabic-text { font-family: var(--font-arabic); }
.title h2 { line-height: 1.6; }

/* ফর্ম মেসেজ (আগে ডিফাইন করা ছিল না) */
.error-message, .success-message {
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.error-message   { background: rgba(244, 67, 54, 0.25);  border: 1px solid rgba(244, 67, 54, 0.6); }
.success-message { background: rgba(76, 175, 80, 0.25);  border: 1px solid rgba(76, 175, 80, 0.6); }
.error-message p + p { margin-top: 0.3rem; }

/* কিবোর্ড ফোকাস দেখা যাবে */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* যারা অ্যানিমেশন কমাতে চান */
@media (prefers-reduced-motion: reduce) {
    .floating-letter { animation: none; opacity: 0.15 !important; }
    .btn, .story-card { transition: none; }
}

/* ---------- ড্যাশবোর্ড ---------- */
.main-content.wide { max-width: 1400px; }
.main-content.wide .title { margin-bottom: 1.5rem; }
.title.compact h2 { font-size: 2.2rem; margin-bottom: 0.3rem; }
.title.compact p  { font-size: 1rem; }

.dashboard-container { width: 100%; margin: 0 auto; padding: 1rem 2rem 2rem; }
@media (min-width: 992px) { .dashboard-container { width: 85%; } }
@media (max-width: 767px) { .dashboard-container { padding: 0.5rem 0.5rem 2rem; } }

.user-welcome {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.user-welcome h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #ffd700; }
.user-welcome p  { font-size: 1.1rem; opacity: 0.9; }

.stats-row { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; flex-wrap: wrap; }
.stat { font-size: 1rem; }
.stat strong { color: #ffd700; font-size: 1.3rem; margin-right: 0.3rem; }

.progress-section { margin-bottom: 2rem; text-align: left; }
.progress-section h4 { font-size: 1.4rem; margin-bottom: 1rem; color: #ffd700; }
.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.progress {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    height: 100%;
    min-width: max-content;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #333;
    font-weight: bold;
    transition: width 0.5s ease;
}

.stage-heading { text-align: left; color: #ffd700; font-size: 1.3rem; margin: 1.5rem 0 1rem; }
.level-heading { text-align: left; font-size: 1.6rem; margin: 2rem 0 0.5rem; }

/* ===== ঘ ধাপ: ধাপ-সম্পন্ন অভিনন্দন কার্ড ===== */
.stage-done-card {
    margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border-radius: 14px;
    border: 2px solid; background: rgba(0, 0, 0, 0.25); text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.stage-done-card.tier-excellent { border-color: #ffd700; background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,215,0,0.05)); }
.stage-done-card.tier-good       { border-color: #66bb6a; background: linear-gradient(135deg, rgba(102,187,106,0.18), rgba(102,187,106,0.05)); }
.stage-done-card.tier-practice   { border-color: #ff9800; background: linear-gradient(135deg, rgba(255,152,0,0.18), rgba(255,152,0,0.05)); }
.stage-done-card.is-level        { border-width: 3px; box-shadow: 0 6px 18px rgba(255,215,0,0.25); }

.sdc-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sdc-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.sdc-title { flex: 1; min-width: 200px; }
.sdc-title h4 { font-size: 1.2rem; margin-bottom: 0.2rem; color: #ffd700; }
.sdc-title .sdc-sub { font-size: 0.95rem; opacity: 0.9; line-height: 1.5; margin: 0; }
.sdc-avg { text-align: center; flex-shrink: 0; min-width: 80px; padding: 0.4rem 0.8rem; background: rgba(0,0,0,0.3); border-radius: 10px; }
.sdc-avg-num { font-size: 1.6rem; font-weight: bold; color: #ffd700; line-height: 1.1; }
.sdc-tier { font-size: 0.85rem; opacity: 0.9; margin-top: 0.15rem; }
.tier-good .sdc-avg-num     { color: #66bb6a; }
.tier-good .sdc-tier        { color: #66bb6a; }
.tier-practice .sdc-avg-num { color: #ff9800; }
.tier-practice .sdc-tier    { color: #ff9800; }

.sdc-low { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed rgba(255,255,255,0.25); }
.sdc-low-title { font-size: 0.92rem; opacity: 0.85; margin-bottom: 0.5rem; }
.sdc-low-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sdc-low-link {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
    color: #fff; text-decoration: none; font-size: 0.92rem; transition: background 0.15s;
}
.sdc-low-link:hover { background: rgba(255,215,0,0.25); border-color: #ffd700; }
.sdc-low-name { font-weight: 500; }
.sdc-low-score { font-size: 0.82rem; padding: 0.1rem 0.4rem; background: rgba(0,0,0,0.35); border-radius: 4px; color: #ffcc80; }

.sdc-tip { margin: 0.9rem 0 0; font-size: 0.93rem; opacity: 0.92; line-height: 1.5; padding-left: 0.6rem; border-left: 3px solid rgba(255,215,0,0.4); }

@media (max-width: 600px) {
    .sdc-head { gap: 0.6rem; }
    .sdc-icon { font-size: 1.8rem; }
    .sdc-avg { min-width: 70px; padding: 0.3rem 0.5rem; }
    .sdc-avg-num { font-size: 1.3rem; }
}

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) and (max-width: 991px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .stories-grid { grid-template-columns: 1fr; } }

.story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.story-card .story-no { font-size: 0.9rem; opacity: 0.8; }
.story-card h5 { font-size: 1.25rem; margin: 0.3rem 0 0.5rem; color: #ffd700; }
.story-card p  { font-size: 0.95rem; margin-bottom: 1rem; opacity: 0.9; }
.story-card .btn { margin-top: 0; }

.story-card.completed { background: rgba(76, 175, 80, 0.2);  border-color: rgba(76, 175, 80, 0.5); }
.story-card.open      { border-color: rgba(255, 215, 0, 0.7); }
.story-card.locked    { background: rgba(244, 67, 54, 0.15); border-color: rgba(244, 67, 54, 0.4); }
.story-card.soon      { opacity: 0.6; }
.story-card .status-text { font-weight: bold; }
.story-card.locked .status-text { color: #ff8a80; }

.logout-section { text-align: center; margin-top: 2rem; }
.logout-btn {
    display: inline-block;
    width: auto;
    background: linear-gradient(45deg, #f44336, #ff5252);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}
.logout-btn:hover { background: linear-gradient(45deg, #ff5252, #f44336); box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4); }

/* ---------- স্টোরি পেজ (ধাপ ২-এ বাড়বে) ---------- */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}
.back-link { display: inline-block; margin-bottom: 1rem; color: #ffd700; text-decoration: none; font-weight: bold; }
.back-link:hover { text-decoration: underline; }
body.story-bg .background-container { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/storybg-1.jpg'); }

/* ---------- দৈনিক লক্ষ্য (ড্যাশবোর্ড) ---------- */
.goal-card { display: flex; gap: 1.5rem; align-items: center; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 15px; padding: 1.2rem 1.5rem; margin-bottom: 2rem; text-align: left; }
.goal-ring { position: relative; flex: 0 0 104px; width: 104px; height: 104px; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 9; }
.ring-fg { fill: none; stroke: #ffd700; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.ring-fg.done { stroke: #66bb6a; }
.ring-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; }
.goal-info { flex: 1; min-width: 0; }
.goal-info h4 { color: #ffd700; font-size: 1.25rem; margin-bottom: 0.2rem; }
.goal-msg { font-size: 0.98rem; opacity: 0.95; margin-bottom: 0.7rem; }
.goal-msg.done { color: #a5d6a7; font-weight: bold; }
.week-row { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.week-day .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.week-day.met .dot { background: #66bb6a; border-color: #66bb6a; color: #fff; }
.week-day.today .dot { border-color: #ffd700; box-shadow: 0 0 0 2px rgba(255,215,0,0.35); }
.week-day.future { opacity: 0.45; }
.wd-label { font-size: 0.72rem; opacity: 0.9; }
.goal-choose { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gc-title { font-size: 0.85rem; opacity: 0.85; margin-right: 0.2rem; }
.gc-btn { font: inherit; font-size: 0.82rem; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); border-radius: 50px; padding: 0.3rem 0.8rem; cursor: pointer; }
.gc-btn:hover { background: rgba(255,255,255,0.22); }
.gc-btn.active { background: rgba(255,215,0,0.3); border-color: #ffd700; font-weight: bold; }
@media (max-width: 560px) { .goal-card { flex-direction: column; text-align: center; } .week-row, .goal-choose { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ring-fg { transition: none; } }

/* ---------- ব্যাজ ---------- */
.badge-link { display: inline-block; margin-top: 0.9rem; padding: 0.45rem 1.2rem; border-radius: 50px; text-decoration: none; color: #fff;
    background: rgba(255,215,0,0.22); border: 1px solid rgba(255,215,0,0.7); font-weight: bold; }
.badge-link:hover { background: rgba(255,215,0,0.38); }
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 1rem 0 2rem; }
@media (max-width: 900px) { .badges-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }
.badge-card { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; padding: 1rem 0.6rem;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; }
.badge-card.earned { border-color: rgba(255,215,0,0.55); }
.badge-circle { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--bc, #64748b); color: #fff;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-arabic); font-size: 2.6rem; line-height: 1; padding-bottom: 0.1em;
    border: 3px solid rgba(255,255,255,0.7); box-shadow: 0 3px 8px rgba(0,0,0,0.4); }
.badge-card.earned .badge-circle { animation: badgeShine 4s ease-in-out infinite; }
.badge-card.locked .badge-circle { background: #475569; filter: grayscale(1); opacity: 0.55; box-shadow: none; }
.badge-card.locked .badge-circle::after { content: '🔒'; position: absolute; right: -6px; bottom: -4px; font-size: 1.1rem; filter: none; }
.badge-card.locked { opacity: 0.9; }
.badge-name { font-weight: bold; font-size: 1rem; color: #ffd700; }
.badge-card.locked .badge-name { color: #cbd5e1; }
.badge-word { font-family: var(--font-arabic); font-size: 1.2rem; opacity: 0.9; }
.badge-sub { font-size: 0.8rem; opacity: 0.85; }
@keyframes badgeShine { 0%, 100% { box-shadow: 0 3px 8px rgba(0,0,0,0.4); } 50% { box-shadow: 0 0 16px 4px var(--bc, #ffd700); } }
@media (prefers-reduced-motion: reduce) { .badge-card.earned .badge-circle, .badge-card.new { animation: none; } }

/* ---------- ড্যাশবোর্ডের শব্দ রিভিউ কার্ড ---------- */
.review-card { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 15px; padding: 1rem 1.3rem; margin-bottom: 2rem; text-align: left; }
.rc-icon { font-size: 2rem; }
.rc-info { flex: 1; min-width: 0; }
.rc-info h4 { color: #ffd700; font-size: 1.15rem; margin-bottom: 0.15rem; }
.rc-info p { font-size: 0.95rem; opacity: 0.95; }
.rc-btn { display: inline-block; width: auto; margin-top: 0; padding: 0.7rem 1.4rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .review-card { flex-direction: column; text-align: center; } }

/* ---------- মাস্টারি-তারা ও দৈনিক সীমা (ড্যাশবোর্ড) ---------- */
.story-card .stars { color: #ffd700; letter-spacing: 2px; margin: 0 0 0.6rem; font-size: 1.05rem; }
.master-tag { display: inline-block; letter-spacing: 0; font-size: 0.75rem; padding: 0 0.6rem; border-radius: 50px; border: 1px solid #ffd700; color: #ffd700; vertical-align: middle; }
.story-card.wait { opacity: 0.8; border-color: rgba(255,193,7,0.55); }
.story-card.wait .status-text { color: #ffe082; }
.new-today { font-size: 0.95rem; margin: 0 0 0.7rem; opacity: 0.95; }
.new-today strong { color: #ffd700; }

/* ===== লেভেল সুইচার ===== */
.level-switcher {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.8rem 0 1.2rem;
    flex-wrap: wrap;
}
.ls-tab {
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ls-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.ls-tab.active {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}
