@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --bg-primary: #0f1115;
    --bg-secondary: #181a1f;
    --bg-tertiary: #22252b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --brand-teal: #2ca4ab;
    --brand-gold: #fbbf24;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 17, 21, 0.85);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-teal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--brand-gold);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--brand-teal);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-teal);
    border-radius: 2px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--brand-teal);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #228f95;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(44, 164, 171, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(44, 164, 171, 0.1);
    color: var(--brand-teal);
    border: 1px solid rgba(44, 164, 171, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Stats */
.stats {
    padding: 4rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: rgba(24, 26, 31, 0.5);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--brand-teal);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
}

/* Courses */
.courses {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.disabled-card {
    opacity: 0.7;
    cursor: default;
}

.disabled-card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.course-image {
    height: 200px;
    background: var(--bg-tertiary);
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 17, 21, 0.9);
    color: var(--brand-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.rating {
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-teal);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding-top: var(--header-height);
        z-index: 1500;
        backdrop-filter: blur(10px);
        background: rgba(15, 17, 21, 0.95);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.75rem 0;
    }

    .hamburger {
        display: block;
    }
}

/* Animations */
.page-section {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About & Contact */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 4rem;
}

.vision-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
}

.vision-card h3 {
    color: var(--brand-gold);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-secondary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(44, 164, 171, 0.1);
}

/* Custom Dropdown Styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232CA4AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}

select.form-input option {
    background-color: #0f172a;
    color: white;
    padding: 1rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Course Player */
#course-player {
    padding: 0;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    background: var(--bg-primary);
    overflow: hidden;
}

.player-layout {
    display: flex;
    height: 100%;
}

.player-sidebar {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0;
}

.back-btn:hover {
    color: var(--brand-teal);
}

#player-course-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.progress-container {
    background: var(--bg-tertiary);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background: var(--brand-gold);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.module-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.module-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.module-item.active {
    background: rgba(44, 164, 171, 0.1);
    border-left-color: var(--brand-teal);
    color: var(--brand-teal);
}

.module-icon {
    font-size: 1rem;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
}

.player-topbar {
    height: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--bg-secondary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

#topic-title {
    font-size: 1.2rem;
    margin: 0;
}

.topbar-actions {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    background: black;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.resource-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.resource-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
}

.resource-icon {
    font-size: 1.25rem;
}

.resource-header h4 {
    margin: 0;
    flex: 1;
}

.download-link {
    color: var(--brand-teal);
    font-size: 0.9rem;
    font-weight: 500;
}

#pdf-frame,
#quiz-frame {
    width: 100%;
    height: 600px;
    border: none;
    background: white;
}

/* Quiz Engine Styles */
#quiz-container {
    padding: 2rem;
    color: var(--text-primary);
}

.quiz-question {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.quiz-question h3 {
    margin-bottom: 1rem;
    color: var(--brand-gold);
    font-size: 1.1rem;
}

.quiz-options {
    display: grid;
    gap: 0.75rem;
}

.quiz-option {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.quiz-option:hover {
    background: rgba(44, 164, 171, 0.1);
    border-color: var(--brand-teal);
    color: white;
}

.quiz-option.selected {
    background: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.quiz-controls {
    margin-top: 2rem;
    text-align: right;
}

.quiz-score {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
}

.quiz-score h2 {
    color: var(--brand-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .player-sidebar {
        position: absolute;
        left: -300px;
        height: 100%;
        z-index: 100;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .player-sidebar.show {
        transform: translateX(300px);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .player-topbar {
        padding: 0 1rem;
    }

    #topic-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #181a1f;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.close-modal {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal:hover {
    color: white;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .user-profile-menu {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
}

/* Live Stream Styles */
.live-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.live-video-wrapper {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(44, 164, 171, 0.1);
}

.live-notes-wrapper {
    width: 100%;
}

.notes-preview {
    background: white;
    min-height: 500px;
    position: relative;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

.notes-preview iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--bg-primary);
    background: #f8fafc;
    text-align: center;
    padding: 2rem;
}

.admin-link-footer:hover {
    opacity: 1 !important;
    color: var(--brand-gold) !important;
}

/* Live Portal Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 164, 171, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(44, 164, 171, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(44, 164, 171, 0);
    }
}

/* Quiz Styles */
#quiz-container {
    padding: 2rem;
    color: white;
}

.quiz-question-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-question-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--brand-gold);
}

/* Ramzan Banner Box */
.ramzan-banner-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    max-width: 400px;
}

.ramzan-banner-box:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px -5px rgba(251, 191, 36, 0.15);
}

.banner-decoration {
    background: rgba(251, 191, 36, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.moon-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

.banner-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.banner-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold);
    font-weight: 600;
}

.banner-cta {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

.banner-glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quiz-option.selected {
    border-color: var(--brand-teal);
    background: rgba(44, 164, 171, 0.1);
}

.quiz-option.correct {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: #22c55e !important;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
}

.quiz-footer {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}



/* Ramzan Section Styles */
.ramzan-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--brand-gold);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ramzan-banner:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.ramzan-hero {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), #0f1115),
        url("https://images.unsplash.com/photo-1570189955705-4f7f6f571b4b?q=80&w=1920&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.ramzan-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 3rem;
}



.ramzan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.ramzan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.ramzan-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Ramzan Onboarding */
.ramzan-onboarding-overlay {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 2rem 0;
    overflow-y: auto;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.level-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.level-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.level-list {
    text-align: left;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.level-list li {
    margin-bottom: 0.75rem;
}

/* Level Specifics */
.level-beginner:hover {
    border-color: #22c55e;
}

.level-beginner .level-badge {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.level-intermediate:hover {
    border-color: var(--brand-teal);
}

.level-intermediate .level-badge {
    color: var(--brand-teal);
    background: rgba(44, 164, 171, 0.1);
}

.level-advanced:hover {
    border-color: var(--brand-gold);
}

.level-advanced .level-badge {
    color: var(--brand-gold);
    background: rgba(251, 191, 36, 0.1);
}

/* 30 Days Calendar Grid */
.ramzan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.day-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.day-card:hover:not(.locked) {
    transform: translateY(-5px);
    background: var(--bg-tertiary);
    border-color: var(--brand-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Locked Card Styles */
.day-card.locked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.05);
}

.day-card.locked::after {
    content: "🔒";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.day-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.day-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.day-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}


.modal-content {
    background: #1e2025;
    border: 1px solid var(--brand-gold);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--brand-gold);
    transform: rotate(90deg);
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}


.task-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.task-check.checked {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
}

.task-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Ramzan Header Flex */
.ramzan-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    text-align: left;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.ramzan-hero {
    text-align: left !important;
    /* Override center alignment */
}

/* User Stats & Progress */
.user-stats-container {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.3s ease !important;
}

.user-stats-container:hover {
    border-color: rgba(44, 164, 171, 0.3) !important;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
}

.progress-item p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.progress-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    transition: all 0.4s ease;
    /* Glow effect controlled by JS */
    box-shadow: 0 0 15px var(--glow-color, transparent);
}

.progress-circle::before {
    content: "";
    position: absolute;
    width: 62px;
    /* inner hole adjusted for 72px */
    height: 62px;
    background: #111317;
    /* Deep dark color for contrast */
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Auth UI & Stats Redesign */
.auth-prompt-box {
    text-align: center;
    padding: 10px;
}

.auth-hint {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-google-login {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 12px 24px !important;
    border-radius: 99px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin: 0 auto;
}

.btn-google-login:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(44, 164, 171, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--brand-teal) !important;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.user-info-side {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.user-name {
    font-size: 0.9rem;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    padding: 6px 16px !important;
    border-radius: 99px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.btn-logout:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Sadqa Calculator Styles */
.commodity-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.commodity-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-teal);
    transform: translateY(-2px);
}

.commodity-option.active {
    background: rgba(44, 164, 171, 0.15);
    border-color: var(--brand-teal);
    box-shadow: 0 0 20px rgba(44, 164, 171, 0.2);
}

.commodity-option .icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.commodity-option .name {
    font-weight: 600;
    color: white;
}

.commodity-option .rate {
    font-size: 0.85rem;
    color: var(--brand-gold);
}

@media (max-width: 480px) {
    .commodity-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Task Accordion/Category Styles */
.task-category {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Global Navbar Auth Styles */
.nav-auth-item {
    display: flex;
    align-items: center;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 0.7rem;
    color: var(--brand-gold);
    font-weight: 700;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-link {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-logout-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .nav-auth-item {
        justify-content: center;
        margin: 10px 0;
    }

    .nav-user-info {
        align-items: center;
    }
}

.category-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cat-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.task-category.active>.category-header .cat-arrow {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.25rem;
}

.task-category.active .category-content {
    max-height: 2000px;
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
}

.task-category.active {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.03);
}

/* Category Specific Colors */
.task-category:nth-child(2).active {
    border-color: rgba(44, 164, 171, 0.2);
    background: rgba(44, 164, 171, 0.03);
}

.task-category:nth-child(2) .cat-label {
    color: var(--brand-teal);
}

.task-category:nth-child(3).active {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.03);
}

.task-category:nth-child(3) .cat-label {
    color: #ef4444;
}

/* Sub-Category Styles */
.task-sub-category {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sub-category-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    user-select: none;
    transition: background 0.3s ease;
}

.sub-category-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sub-cat-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-category-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    padding: 0 1rem;
}

.task-sub-category.active>.sub-category-header .cat-arrow {
    transform: rotate(180deg);
}

.task-sub-category.active .sub-category-content {
    max-height: 1000px;
    padding: 0.5rem 1rem 0.5rem 1rem;
}

.task-sub-category.active {
    border-color: rgba(251, 191, 36, 0.1);
    background: rgba(251, 191, 36, 0.02);
}

/* Routine Info Box Styles */
.routine-info-wrapper {
    margin: 1.5rem 0 2rem;
    max-width: 800px;
}

.routine-toggle-btn {
    background: rgba(44, 164, 171, 0.1);
    border: 1px solid rgba(44, 164, 171, 0.3);
    color: var(--brand-gold);
    padding: 12px 20px;
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.routine-toggle-btn:hover {
    background: rgba(44, 164, 171, 0.2);
    transform: translateY(-2px);
    border-color: var(--brand-gold);
}

.routine-toggle-btn .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.routine-info-wrapper.active .routine-toggle-btn .arrow {
    transform: rotate(180deg);
}

.routine-details-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 1rem;
}

.routine-info-wrapper.active .routine-details-content {
    max-height: 1500px;
    padding: 2rem;
    border-color: rgba(251, 191, 36, 0.2);
}

.routine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.routine-header-full {
    text-align: center;
    margin-bottom: 2rem;
}

.routine-header-full h4 {
    color: var(--brand-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.commitment-badge {
    background: var(--brand-gold);
    color: #0f1115;
    display: block;
    width: fit-content;
    margin: 0 auto 0.5rem;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
}

.text-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sub-section {
    margin-bottom: 2rem;
}

.sub-section h5 {
    color: var(--brand-teal);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.time-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.time-row.total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-weight: 700;
    color: var(--brand-gold);
}

.time-row.highlight {
    background: rgba(44, 164, 171, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-top: none;
    margin-top: 1rem;
}

.routine-achievements-full {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.routine-achievements-full .sub-section h5 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--brand-gold);
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.achievement-list li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
}

.routine-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
}

/* Platform Story Flow Styles */
.platform-story-flow {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(44, 164, 171, 0.03), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.03), transparent 40%);
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

/* Connecting Line */
.story-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(44, 164, 171, 0.3) 10%,
            rgba(251, 191, 36, 0.3) 50%,
            rgba(44, 164, 171, 0.3) 90%,
            transparent);
}

.story-beat {
    margin-bottom: 100px;
    position: relative;
}

.story-beat::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--brand-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--brand-gold);
}

.beat-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-teal);
    display: block;
    margin-bottom: 10px;
}

.beat-tag.danger {
    color: #ef4444;
}

.beat-tag.success {
    color: var(--brand-gold);
}

.story-beat h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 800;
}

.beat-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.story-lead {
    font-size: 1.4rem !important;
    color: #fff !important;
    font-weight: 700;
}

.emphasis-text {
    font-style: italic;
    color: var(--brand-gold) !important;
    font-size: 1.25rem !important;
}

/* Problem Box */
.problem-list {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.problem-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.problem-item .cross {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mission Steps Flow */
.mission-steps-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
}

.step-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-teal);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #fff !important;
    margin: 0 !important;
}

.vision-beat {
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.vision-quote {
    font-size: 1.6rem !important;
    color: var(--brand-gold) !important;
    font-weight: 700;
    font-style: italic;
}

@media (max-width: 992px) {
    .mission-steps-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .story-container {
        padding-left: 40px;
    }

    .story-beat::before {
        left: -40px;
    }

    .story-beat h2 {
        font-size: 1.6rem;
    }

    .story-lead {
        font-size: 1.2rem !important;
    }

    /* New Sadaqah Section Tweaks */
    .sadqa-info-container,
    .sadqa-intro,
    .ramzan-description-box {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .info-grid {
        gap: 1.5rem !important;
    }

    .sadqa-intro h3 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 1.5rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .sadqa-info-container a.btn {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Social Follow Prompt Popup */
.social-prompt {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    z-index: 5000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(44, 164, 171, 0.1);
    animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-prompt {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-prompt:hover {
    color: var(--brand-gold);
}

.prompt-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.prompt-content h4 {
    color: var(--brand-gold);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.prompt-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.prompt-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prompt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.prompt-btn.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.prompt-btn.telegram:hover {
    background: #0088cc;
    color: white;
}

.prompt-btn.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.prompt-btn.instagram:hover {
    background: #e1306c;
    color: white;
}

@media (max-width: 500px) {
    .social-prompt {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

/* Feedback Prompt Specific Placement */
.feedback-prompt {
    right: auto !important;
    left: 30px;
    bottom: 30px;
}

@media (max-width: 500px) {
    .feedback-prompt {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }
}

/* Brand Logo Styling */
.logo-img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.footer .logo-img {
    height: 60px;
    margin-bottom: 1rem;
}

/* Navbar Dropdown Styles */
.nav-dropdown {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: -1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--brand-gold);
    border-radius: 16px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    list-style: none;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: rgba(44, 164, 171, 0.1);
    color: var(--brand-teal);
    padding-left: 2.2rem;
}

/* Mobile Dropdown logic */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        padding: 0 0 0 1.5rem;
        display: none;
        width: 100%;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 0.8rem 0;
        font-size: 1rem;
    }
}

/* Mobile Overrides for New Sections (Daily Quiz, Help Desk, etc.) */
@media (max-width: 768px) {
    .page-section .container {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .glass-card,
    .calculator-card,
    .intro-box,
    .help-desk-form-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .glass-card h3 {
        font-size: 1.5rem !important;
    }

    .glass-card p {
        font-size: 1rem !important;
    }

    /* Navbar mobile adjustment for dropdowns */
    .nav-links {
        padding-top: 100px;
    }

    .dropdown-menu {
        padding-left: 1rem !important;
    }

    .dropdown-link {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {

    .glass-card,
    .calculator-card {
        padding: 1.25rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }
}