@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0b0c10;
    --bg-card: #15171e;
    --bg-card-hover: #1c1e28;
    --accent-gold: #d4af37;
    --accent-gold-light: #f5d77f;
    --accent-gold-glow: rgba(212, 175, 55, 0.25);
    --accent-green: #2ecc71;
    --accent-green-glow: rgba(46, 204, 113, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);
    --text-primary: #f0f2f5;
    --text-muted: #9aa0b4;
    --text-gold: #e6c260;
    --font-heading: 'Noto Sans Bengali', 'Hind Siliguri', 'Outfit', sans-serif;
    --font-body: 'Noto Sans Bengali', 'Hind Siliguri', 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(46, 204, 113, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    padding-bottom: 40px;
}

.top-header-row {
    width: 80%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    background: transparent;
    padding: 0;
    border: none;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 4px 0;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--accent-gold);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-gold);
}

.header-title {
    flex: 2;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-btn-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.lang-btn {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold-light);
    border: 1px solid var(--border-gold);
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--accent-gold);
    color: #0b0c10;
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.main-container {
    width: 100%;
    max-width: 850px;
    padding: 0 20px;
}

.hero-header {
    text-align: center;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 100%;
    white-space: nowrap;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .hero-subtitle {
        white-space: normal;
        font-size: 0.95rem;
    }
}

.hero-subtitle strong {
    color: var(--accent-gold-light);
}

.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.progress-label {
    color: var(--text-muted);
    font-weight: 500;
}

.progress-count {
    color: var(--accent-gold);
    font-weight: 700;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.task-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.task-num-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.task-1 {
    border-left-color: #d4af37;
}

.task-1:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.task-2 {
    border-left-color: #2ecc71;
}

.task-2:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.1);
    transform: translateY(-2px);
}

.task-3 {
    border-left-color: #3498db;
}

.task-3:hover {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.task-4 {
    border-left-color: #9b59b6;
}

.task-4:hover {
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.1);
    transform: translateY(-2px);
}

.task-5 {
    border-left-color: #1abc9c;
}

.task-5:hover {
    border-color: rgba(26, 188, 156, 0.4);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.1);
    transform: translateY(-2px);
}

.task-6 {
    border-left-color: #f39c12;
}

.task-6:hover {
    border-color: rgba(243, 156, 18, 0.4);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
}

.task-7 {
    border-left-color: #e74c3c;
}

.task-7:hover {
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.task-item.completed {
    background: rgba(46, 204, 113, 0.05) !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
    border-left-color: #2ecc71 !important;
    box-shadow: none !important;
    transform: none !important;
}

.task-item.completed .task-num-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.task-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.task-item:hover .custom-checkbox {
    border-color: var(--accent-gold);
}

.task-item.completed .custom-checkbox {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #0b0c10;
    box-shadow: var(--accent-green-glow);
}

.custom-checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    fill: none;
    stroke: #0b0c10;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-item.completed .custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.task-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.tips-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.25s ease;
}

.tip-card:hover {
    border-color: var(--border-gold);
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tip-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.link-card {
    text-decoration: none;
    cursor: pointer;
}

.link-card .tip-title {
    color: var(--accent-gold-light);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #181a24;
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 36px 28px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-gold);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    color: var(--accent-gold);
}

.modal-title {
    font-size: 1.6rem;
    color: var(--accent-gold-light);
    margin-bottom: 12px;
}

.modal-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b89324);
    color: #0b0c10;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.virtues-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-title {
    font-size: 1.3rem;
    color: var(--accent-gold-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-body {
    font-size: 1rem;
    color: var(--text-primary);
}

.card-body p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.card-body p strong {
    color: var(--text-primary);
}

.quote-box {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 1.02rem;
}

.quote-source {
    display: block;
    font-size: 0.88rem;
    color: var(--accent-gold);
    margin-top: 6px;
    font-weight: 500;
}

.dua-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--accent-gold-light);
    text-align: center;
    direction: rtl;
    line-height: 1.8;
    margin: 10px 0;
}

.dua-transliteration {
    text-align: center;
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.dua-translation {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.virtues-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.virtues-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 10px;
}

.virtues-list-icon {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .top-header-row {
        width: 100%;
        padding: 16px 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .nav-links {
        order: 1;
        flex: 0 0 auto;
    }

    .lang-btn-wrapper {
        order: 2;
        flex: 0 0 auto;
    }

    .header-title {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        font-size: 1.35rem;
        white-space: normal;
        text-align: center;
        margin-top: 4px;
    }

    .task-item {
        padding: 14px 16px;
    }

    .task-text {
        font-size: 0.95rem;
    }

    .dua-arabic {
        font-size: 1.4rem;
    }
}