/* ========== CSS স্টাইল ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Arial', 'Noto Sans Bengali', sans-serif;
            background: linear-gradient(145deg, #f8f0e6 0%, #f5e7d9 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 25px 15px;
            color: #2d2d2d;
        }

        .calendar-card {
            max-width: 1100px;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 48px 48px 32px 32px;
            box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 50, 30, 0.1);
            overflow: hidden;
            border: 1px solid #e6d5b8;
            padding: 30px 25px;
        }

        .moon-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 2.2rem;
            font-weight: 500;
            color: #2d5e3b;
            background: #e8d9c0;
            padding: 16px 20px;
            border-radius: 60px;
            margin-bottom: 30px;
            box-shadow: inset 0 -3px 0 #b7935f, 0 8px 12px rgba(110, 70, 30, 0.15);
            letter-spacing: 2px;
        }

        .moon-header span {
            font-size: 2.6rem;
            filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.2));
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            color: #1f4f2b;
            margin: 5px 0 5px 0;
            text-shadow: 2px 2px 0 #e9dccd;
        }

        .subhead {
            text-align: center;
            font-size: 1.4rem;
            font-weight: 400;
            color: #7a5a3a;
            background: #fdf3e0;
            width: fit-content;
            margin: 10px auto 30px auto;
            padding: 12px 32px;
            border-radius: 50px;
            border: 1px dashed #b48c5c;
        }

        .division-selector {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            background: #fbf3e3;
            padding: 15px 25px;
            border-radius: 60px;
            margin: 20px 0 25px;
            border: 2px solid #b59d71;
            flex-wrap: wrap;
        }

        .division-selector label {
            font-size: 1.6rem;
            font-weight: 600;
            color: #2f4d2f;
        }

        select {
            font-size: 1.5rem;
            padding: 12px 25px;
            border-radius: 50px;
            border: 2px solid #7f9a6b;
            background: #fffef9;
            font-weight: 500;
            cursor: pointer;
            outline: none;
        }

        .countdown-section {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            margin: 25px 0 30px;
        }

        .countdown-card {
            background: linear-gradient(135deg, #275c3b, #1b4629);
            color: white;
            flex: 1 1 250px;
            padding: 25px 20px;
            border-radius: 50px;
            box-shadow: 0 20px 30px -5px #1b4d2b;
            border: 2px solid #fad68f;
            text-align: center;
        }

        .countdown-label {
            font-size: 1.7rem;
            font-weight: 300;
            margin-bottom: 15px;
        }

        .countdown-time {
            font-size: 3.5rem;
            font-weight: 800;
            font-family: monospace;
            letter-spacing: 5px;
            background: #00000030;
            padding: 10px 15px;
            border-radius: 60px;
            display: inline-block;
            border: 1px solid #fdcb6e;
        }

        .today-box {
            background: linear-gradient(115deg, #1b4b2e, #2f6e42);
            color: white;
            padding: 28px 25px;
            border-radius: 40px;
            margin: 25px 0 35px 0;
            box-shadow: 0 20px 30px -8px #1f4f2b;
            border: 2px solid #f9e0a0;
        }

        .today-label {
            font-size: 1.8rem;
            font-weight: 300;
            opacity: 0.9;
            line-height: 1.4;
        }
        .today-date {
            font-size: 3rem;
            font-weight: 700;
            margin: 10px 0 20px 0;
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        .today-date small {
            font-size: 1.6rem;
            font-weight: 300;
            background: #ffd966;
            color: #1f3b2c;
            padding: 5px 20px;
            border-radius: 40px;
        }

        .prayer-times {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 15px;
        }
        .prayer-item {
            background: rgba(255,255,240,0.2);
            backdrop-filter: blur(4px);
            padding: 15px 25px;
            border-radius: 60px;
            border: 1px solid #ffdfaa;
            flex: 1 1 200px;
            text-align: center;
        }
        .prayer-item .label {
            font-size: 1.2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 300;
        }
        .prayer-item .time {
            font-size: 2.8rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .prayer-item .unit {
            font-size: 1.1rem;
            opacity: 0.8;
            margin-left: 5px;
        }

        /* ৫ ওয়াক্ত নামাজের সময় সূচি স্টাইল */
        .prayer-times-section {
            background: linear-gradient(145deg, #fff5e6, #f0e6d8);
            border-radius: 40px;
            padding: 25px 20px;
            margin: 30px 0 20px;
            border: 2px solid #c9a87c;
            box-shadow: 0 15px 25px rgba(100, 60, 10, 0.2);
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1f4f2b;
            text-align: center;
            margin-bottom: 20px;
            background: #e8d9c0;
            padding: 12px 20px;
            border-radius: 50px;
            display: inline-block;
            width: auto;
            margin-left: auto;
            margin-right: auto;
            border: 1px solid #b48c5c;
        }

        .prayer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .prayer-card {
            background: #fffaf2;
            border-radius: 30px;
            padding: 20px 15px;
            text-align: center;
            box-shadow: 0 10px 15px rgba(100, 60, 10, 0.1);
            border-right: 5px solid #c9a87c;
            border-bottom: 5px solid #b58d5b;
            transition: transform 0.2s ease;
        }

        .prayer-card:hover {
            transform: translateY(-5px);
        }

        .prayer-name {
            display: block;
            font-size: 1.5rem;
            font-weight: 600;
            color: #1e4d2b;
            margin-bottom: 10px;
        }

        .prayer-time {
            display: block;
            font-size: 2rem;
            font-weight: 700;
            color: #7a5a3a;
            background: #f7ead9;
            padding: 10px;
            border-radius: 25px;
            border: 1px solid #d4a76a;
        }

        .dua-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 40px 0 30px;
        }
        .dua-card {
            background: #fffaf2;
            border-radius: 30px;
            padding: 25px 20px;
            box-shadow: 0 15px 20px rgba(100, 60, 10, 0.15);
            border-right: 8px solid #c9a87c;
            border-bottom: 8px solid #b58d5b;
        }
        .dua-title {
            font-size: 1.9rem;
            font-weight: 600;
            color: #1e4d2b;
            margin-bottom: 20px;
            border-right: 5px solid #d4a76a;
            padding-right: 15px;
            display: inline-block;
        }
        .arabic {
            font-size: 2.2rem;
            font-family: 'Scheherazade New', 'Traditional Arabic', serif;
            line-height: 2;
            color: #1f3a2a;
            font-weight: 700;
            background: #f7ead9;
            padding: 12px 18px;
            border-radius: 30px;
            margin: 15px 0;
            direction: rtl;
        }
        .pronunciation {
            font-size: 1.2rem;
            color: #3f2e1b;
            background: #fcf3e4;
            padding: 10px;
            border-radius: 18px;
            font-style: italic;
            border-left: 4px solid #c2a066;
        }
        .meaning {
            font-size: 1.1rem;
            margin-top: 16px;
            color: #2b4d2b;
            font-weight: 500;
            background: #e1d5c0;
            padding: 10px 16px;
            border-radius: 20px;
        }

        .table-wrapper {
            overflow-x: auto;
            margin: 20px 0 30px;
            border-radius: 40px;
            background: #eedbc5;
            padding: 15px 10px;
            box-shadow: inset 0 0 0 2px #fdf3e0, 0 20px 25px -12px #433e2e;
        }
        
        /* টেবিলের উপরের ফাকা কমানো */
        .phase-badge {
            font-size: 1.2rem;
            background: #ebc99b;
            padding: 8px 22px;
            border-radius: 40px;
            display: inline-block;
            margin: 5px 0 10px 25px; /* উপরের margin কমানো হয়েছে */
            font-weight: 600;
            color: #2b422b;
            border: 1px solid #ac874b;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            background: #fffefb;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(85, 60, 30, 0.2);
        }
        th {
            background: #466b46;
            color: white;
            font-weight: 600;
            font-size: 1.2rem;
            padding: 18px 8px;
            border-right: 1px solid #9bb88b;
        }
        th:last-child { border-right: none; }
        td {
            padding: 14px 8px;
            text-align: center;
            border-bottom: 1px solid #dac29c;
            font-size: 1.15rem;
        }
        tr:last-child td { border-bottom: none; }
        .today-row {
            background: #ffeeca;
            font-weight: 600;
            border: 3px solid #c9a24b;
            outline: 2px solid #eac468;
        }

        .footer-note {
            margin-top: 20px; /* উপরের margin কমানো */
            margin-bottom: 15px;
            padding: 25px 15px;
            background: #dccdb3;
            border-radius: 80px 20px 80px 20px;
            font-size: 1.3rem;
            text-align: center;
            font-weight: 400;
            color: #252514;
            border: 2px solid #a7865f;
        }

        .credit-footer {
            text-align: center;
            margin-top: 10px;
            margin-bottom: 5px;
            font-size: 1.3rem;
            font-weight: 600;
            color: #2b4d2b;
            background: #f5e9d2;
            padding: 15px;
            border-radius: 60px;
            border: 2px solid #a78f63;
        }
        
        .credit-footer a {
            color: #1e3a1e;
            text-decoration: none;
            font-weight: 700;
            border-bottom: 2px dotted #5b8c5b;
        }
        
        .credit-footer a:hover {
            color: #0f2a0f;
            border-bottom: 2px solid #5b8c5b;
        }

        /* টেবিলের নিচে ফাঁকা রাখার জন্য */
        .table-spacer {
            height: 20px;
        }

        @media (max-width: 680px) {
            .dua-grid { grid-template-columns: 1fr; }
            .prayer-times { flex-direction: column; }
            .today-date { font-size: 2.2rem; }
            h1 { font-size: 2rem; }
            .countdown-time { font-size: 2.5rem; }
            .prayer-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ========== ইসলামিক বাণী পপআপ স্টাইল ========== */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: linear-gradient(145deg, #fff9f0, #f0e6d8);
            margin: 10% auto;
            padding: 30px;
            border-radius: 50px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 30px 60px rgba(0, 50, 0, 0.4), 0 0 0 3px #c9a87c;
            border: 2px solid #e4c9a6;
            animation: slideIn 0.4s ease;
            position: relative;
        }

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

        .modal-header {
            text-align: center;
            margin-bottom: 25px;
            border-bottom: 3px dashed #b48c5c;
            padding-bottom: 15px;
        }

        .modal-title {
            font-size: 2rem;
            font-weight: 700;
            color: #1f4f2b;
            text-shadow: 2px 2px 0 #e9dccd;
            background: #e8d9c0;
            padding: 10px 30px;
            border-radius: 50px;
            display: inline-block;
        }

        .modal-body {
            margin: 20px 0;
        }

        .modal-arabic {
            font-size: 2.5rem;
            font-family: 'Scheherazade New', 'Traditional Arabic', serif;
            line-height: 2.2;
            color: #1f3a2a;
            font-weight: 700;
            background: #f7ead9;
            padding: 20px;
            border-radius: 30px;
            margin: 15px 0;
            direction: rtl;
            text-align: center;
            border: 2px solid #c2a066;
            box-shadow: inset 0 0 10px rgba(180, 140, 92, 0.3);
        }

        .modal-pronunciation {
            font-size: 1.3rem;
            color: #3f2e1b;
            background: #fcf3e4;
            padding: 15px;
            border-radius: 25px;
            font-style: italic;
            border-left: 6px solid #c2a066;
            margin: 15px 0;
            text-align: center;
        }

        .modal-meaning {
            font-size: 1.4rem;
            margin-top: 20px;
            color: #2b4d2b;
            font-weight: 500;
            background: #e1d5c0;
            padding: 20px;
            border-radius: 30px;
            text-align: center;
            border: 2px solid #a7865f;
        }

        .modal-footer {
            text-align: center;
            margin-top: 25px;
            padding-top: 15px;
            border-top: 2px solid #d4a76a;
        }

        .modal-hint {
            font-size: 1.1rem;
            color: #7a5a3a;
            background: #fff0dd;
            padding: 8px 20px;
            border-radius: 30px;
            display: inline-block;
        }

        /* মোবাইলের জন্য রেস্পন্সিভ */
        @media (max-width: 680px) {
            .modal-content {
                margin: 20% auto;
                padding: 20px;
                width: 95%;
            }
            
            .modal-arabic {
                font-size: 1.8rem;
            }
            
            .modal-title {
                font-size: 1.5rem;
            }
            
            .modal-meaning {
                font-size: 1.2rem;
            }
        }