/* -------------------------------------- */
    /* 0. NEW BISMILLAH HEADER & KEYFRAMES    */
    /* -------------------------------------- */
    .bismillah-header {
      text-align: center;
      padding: 10px;
      font-size: 1.5em; 
      font-weight: 700;
      color: #1e88e5; 
      background-color: #ffffff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      font-family: 'Times New Roman', serif; 
      position: sticky;
      top: 0;
      z-index: 200; 
    }
/* --- 1. MODERN CSS STYLING --- */
        :root {
            --primary-color: #007bff;
            --secondary-color: #28a745;
            --dark-bg: #2c3e50;
            --light-bg: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f0f2f5;
            color: #333;
        }

        header {
            background-color: var(--dark-bg);
            color: white;
            padding: 20px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
        }

        header h1 { margin: 0; font-size: 1.8em; }

        /* --- Profile Icon and Wallet --- */
        .profile-area {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .profile-icon {
            cursor: pointer;
            font-size: 2em;
            color: white;
            padding: 5px;
            border-radius: 50%;
            transition: background 0.3s;
        }
        
        .profile-icon:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .wallet-display {
            background-color: var(--secondary-color);
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 1.1em;
            display: none; /* Hidden until logged in */
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 30px auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .section {
            background-color: var(--light-bg);
            padding: 25px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        
        .section:hover {
            transform: translateY(-5px);
        }

        .section h2 {
            color: var(--primary-color);
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
            margin-top: 0;
        }

        /* --- Video Wrapper and Overlay --- */
        .video-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            margin-top: 15px;
            border-radius: 6px;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 10;
            transition: opacity 0.3s;
        }

        .video-overlay-text {
            color: white;
            font-size: 1.5em;
            font-weight: bold;
            padding: 10px 20px;
            border: 2px solid white;
            border-radius: 5px;
        }
        
        .video-overlay.disabled {
            background: rgba(0, 0, 0, 0.8);
            cursor: not-allowed;
        }

        /* --- Timer Display --- */
        .timer-display {
            margin-top: 10px;
            padding: 8px;
            background-color: #fff3cd;
            color: #856404;
            border: 1px solid #ffeeba;
            border-radius: 4px;
            text-align: center;
            font-weight: bold;
            display: none;
        }

        /* --- MODAL STYLING --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 100; 
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            display: flex; /* Use flex for centering */
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: var(--light-bg);
            padding: 30px;
            border-radius: 10px;
            width: 90%; 
            max-width: 450px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.5s;
        }

        .close-btn {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .auth-form input {
            width: 100%;
            padding: 10px;
            margin: 8px 0 15px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .auth-form button {
            background-color: var(--primary-color);
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            font-size: 1.1em;
            margin-top: 10px;
        }

        .auth-toggle {
            text-align: center;
            margin-top: 15px;
            font-size: 0.9em;
        }
        
        .auth-toggle a {
            color: var(--primary-color);
            cursor: pointer;
            text-decoration: none;
        }

        @keyframes fadeIn {
            from {opacity: 0; transform: scale(0.9);}
            to {opacity: 1; transform: scale(1);}
        }
        
