:root {
    --primary: #E65100;
    --primary-light: #FF8A65;
    --primary-dark: #BF360C;
    --gold: #FFC107;
    --bg-main: #FDFBF7;
    --bg-soft: #FFF4EC;
    --text-main: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --white: #FFFFFF;
    --border-subtle: rgba(230, 81, 0, 0.12);
    
    /* Global Fonts (UI) */
    --font-ui: inherit;
    
    /* Professional Reading Fonts */
    --font-en: 'Lora', Georgia, serif;
    --font-bn: 'Tiro Bangla', serif;
    --font-hi: 'Tiro Devanagari Hindi', serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 32px rgba(230, 81, 0, 0.08);
    --shadow-header: 0 4px 20px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--font-en);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

.bengali-text { font-family: var(--font-bn) !important; }
.hindi-text { font-family: var(--font-hi) !important; }
.bengali-verse { font-family: var(--font-bn) !important; }

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER (PREMIUM) ================= */
.site-header {
    background: linear-gradient(90deg, #FA7A00, #EF5200);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--font-ui);
    transition: all 0.3s ease;
    height: 64px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-family: var(--font-ui);
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
    text-shadow: none;
    transition: all 0.3s;
}

.header-logo-img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    font-family: var(--font-ui);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    color: var(--text-main);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid var(--bg-soft);
}
.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover {
    background-color: var(--bg-soft);
    color: var(--primary-dark);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.hamburger:hover { color: var(--primary); }

/* ================= HERO SECTION ================= */
.hero {
    text-align: center;
    padding: 35px 0 25px;
    background: radial-gradient(circle at top, #FFF2E6 0%, var(--bg-main) 80%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230,81,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,193,7,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.hero h1 span {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    padding: 0 16px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-family: var(--font-ui);
    position: relative;
    z-index: 2;
    padding: 0 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.3);
}

.btn-outline {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.section {
    padding: 24px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 4px;
}

.reading-container {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(230,81,0,0.08);
    margin-top: 0;
}

.page-header {
    text-align: center;
    margin: 0;
    padding: 30px 20px 10px;
}

.page-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* ================= LYRICS TABLE ================= */
.lyrics-table-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.lyrics-table {
    width: 100%;
    border-collapse: collapse;
}

.lyrics-table td {
    position: relative;
    padding: 24px 16px;
    border-bottom: 1px solid var(--bg-soft);
    vertical-align: middle;
    transition: background 0.3s ease;
}

.lyrics-table tr:hover td:not(.doha-header) {
    background-color: var(--bg-soft);
}

.lyrics-table tr:nth-child(even) td:not(.doha-header) {
    background-color: #FAFAFA;
}

.lyrics-verse {
    font-weight: 500;
    color: var(--text-main);
    line-height: 2;
    text-align: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.inline-num {
    position: absolute;
    right: 25px;
    bottom: 25px;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.1rem;
    font-family: var(--font-ui);
    opacity: 0.6;
}

.doha-header {
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    font-size: 1.5rem;
    padding: 16px 20px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-bn);
}

/* ================= CHANT BOX ================= */
.chant-box {
    text-align: center;
    padding: 24px 20px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: linear-gradient(to right, transparent, var(--bg-soft), transparent);
    border-top: 1px solid var(--border-subtle);
    line-height: 1.8;
}

/* ================= ADVANCED FEATURES ================= */
.advanced-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    padding: 24px;
    background: rgba(255, 244, 236, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(230, 81, 0, 0.08);
}

.feature-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--white);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.feature-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
}

.text-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.text-indicator {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 1.2rem;
    border: none;
    background: transparent;
    color: var(--primary-dark);
    box-shadow: none;
}
.btn-small:hover {
    background: var(--bg-soft);
    transform: scale(1.1);
    color: var(--primary);
}

/* ================= MEANING TABLE (PREMIUM) ================= */
.chalisa-table-container {
    overflow-x: auto;
    margin: 50px 0;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.chalisa-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.chalisa-table th {
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 20px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-subtle);
}

.chalisa-table td {
    padding: 24px;
    vertical-align: top;
    line-height: 1.8;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.15rem;
}

.chalisa-table tr:nth-child(even) td { background-color: #FAFAFA; }
.chalisa-table tr:hover td { background-color: var(--bg-soft); }

.col-num {
    width: 80px;
    font-weight: 700;
    color: var(--primary) !important;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 1.2rem;
}

.col-verse {
    width: 45%;
    font-weight: 600;
    color: var(--text-main);
    border-right: 1px dashed var(--border-subtle);
    font-size: 1.25rem;
    font-family: var(--font-bn);
}

.col-meaning {
    width: 55%;
    color: var(--text-secondary);
}

/* ================= GRID CARDS (BENEFITS) ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(230, 81, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-subtle);
}

.card:hover::before { opacity: 1; }

.card h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--font-ui);
}

.card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #1A202C;
    color: #E2E8F0;
    padding: 80px 0 30px;
    font-family: var(--font-ui);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary-dark));
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 16px; }

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #718096;
    font-size: 0.95rem;
}

/* ================= PREMIUM STICKY FLOATING FOOTER ================= */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    z-index: 1000;
    border-top: 1px solid rgba(230,81,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sticky-footer:hover {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
}

.sticky-btn {
    padding: 8px 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui);
    transition: all 0.3s ease;
}

.sticky-btn svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    margin-bottom: 2px;
}

.sticky-btn:hover {
    color: var(--primary-dark);
    background: var(--bg-soft);
    transform: translateY(-2px);
}

#bookmark-btn {
    background: transparent;
    color: var(--text-main);
}

#bookmark-btn:hover {
    background: var(--bg-soft);
}

.lang-btn-wrapper {
    position: relative;
    cursor: pointer;
}

/* ================= LANGUAGE MODAL ================= */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

.lang-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 30px 20px 40px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    max-height: 85vh;
    overflow-y: auto;
}

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

.lang-modal-title {
    text-align: center;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.lang-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lang-option-card {
    background: var(--white);
    border: 1.5px solid #eaeaea;
    border-radius: 10px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    color: var(--text-dark);
}

.lang-option-card:hover, .lang-option-card:active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff8f5;
    box-shadow: 0 4px 14px rgba(230,81,0,0.1);
    transform: translateY(-2px);
}

.lang-native {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.lang-option-card.lang-en .lang-native { font-family: var(--font-en); }
.lang-option-card.lang-hi .lang-native { font-family: var(--font-hi); }
.lang-option-card.lang-bn .lang-native { font-family: var(--font-bn); }

.lang-english {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-en);
    color: var(--text-light);
    text-align: center;
    transition: color 0.2s ease;
}

.lang-option-card:hover .lang-english, .lang-option-card:active .lang-english {
    color: var(--primary);
    opacity: 0.9;
}

.lang-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-soft);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lang-modal-close:hover {
    background: rgba(230,81,0,0.1);
    color: var(--primary);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.2rem; }
    .reading-container { padding: 0; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        padding: 24px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        gap: 20px;
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
    
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .container { padding: 0 12px; }
    .reading-container { padding: 0; border-radius: 16px; border: 1px solid rgba(230,81,0,0.08); overflow: hidden; }
    .lyrics-table td { padding: 12px 10px; }
    .lyrics-verse { font-size: 1.15rem; }
    .inline-num { right: 10px; bottom: 10px; font-size: 0.9rem; }
    
    .chalisa-table th, .chalisa-table td {
        padding: 12px;
        font-size: 1rem;
    }
    .col-verse, .col-meaning { width: 50%; }
}

@media (max-width: 500px) {
    .container { padding: 0 12px; }
    .hero { padding: 25px 0 20px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; margin-bottom: 20px; padding-bottom: 12px; }
    .btn { width: auto; flex: 1; padding: 12px 10px; font-size: 0.95rem; }
    
    .chalisa-table-container { margin: 15px 0; border-radius: 12px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); overflow: hidden; }
    .chalisa-table thead { display: none; }
    .chalisa-table tbody td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 12px 15px;
    }
    .chalisa-table tr {
        display: block;
        border-bottom: 3px solid var(--bg-soft);
        padding-bottom: 20px;
        padding-top: 10px;
    }
    .col-num {
        text-align: left;
        padding-bottom: 5px !important;
        background: transparent !important;
        font-size: 1.3rem;
    }
    .col-verse {
        border-right: none;
        padding-bottom: 10px !important;
        font-size: 1.2rem;
    }
    
    .lyrics-verse { font-size: 1.2rem; }
    .doha-header { font-size: 1.3rem; }
    
    .advanced-features {
        flex-direction: column;
        padding: 20px 10px;
        gap: 12px;
    }
    
    .sticky-footer {
        padding: 8px 5px;
        gap: 4px;
    }
    
    .sticky-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
    

}
