/* -------------------------------------- */
    /* 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; 
    }

/* --- VARIABLES --- */
        :root {
            --primary-color: #007bff;
            --secondary-color: #28a745;
            --header-bg: #2c3e50;
            --card-bg: #ffffff;
            --warning-bg: #ffc107;
            --danger-color: #dc3545;
            --dark-text: #333;
            --shadow-deep: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        /* --- BASE STYLES --- */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f0f2f5;
            color: var(--dark-text);
            line-height: 1.6;
        }

        header {
            background-color: var(--header-bg);
            color: white;
            padding: 10px 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        header h1 { font-size: 1.5em; margin: 0; }
        .header-right { display: flex; align-items: center; gap: 15px; }
        #profileIconButton { background: none; border: 2px solid white; color: white; font-size: 24px; cursor: pointer; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
        #walletDisplay { background-color: var(--secondary-color); padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 1.1em; display: none; }

        .container {
            width: 95%;
            max-width: 1000px;
            margin: 20px auto;
            padding: 20px;
        }
        
        /* --- ARTICLE & GUIDE STYLES --- */
        #guideSection {
            background-color: var(--card-bg);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        #guideSection h2 { color: var(--primary-color); text-align: center; margin-bottom: 20px; }
        #guideSection h3 { color: var(--danger-color); margin-top: 25px; }
        .warning-alert {
            background-color: #ffe0e0;
            border: 2px solid var(--danger-color);
            padding: 15px;
            border-radius: 8px;
            font-weight: bold;
            margin-top: 15px;
        }

        /* --- PRODUCT LIST STYLES --- */
        #productListSection {
            display: none;
        }
        
        #productList {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }
        
        .product-card {
            background-color: var(--card-bg);
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s;
            position: relative; /* For lock overlay */
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            width: 100%;
            height: 200px;
            background-color: #eee;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5em;
            color: #666;
            overflow: hidden;
        }
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-details {
            padding: 15px;
            text-align: center;
        }
        .product-details h3 {
            margin: 0 0 5px 0;
            color: var(--dark-bg);
        }
        .product-details p {
            margin: 5px 0;
        }
        
        .price-tag {
            font-size: 1.2em;
            font-weight: bold;
            color: var(--danger-color);
        }
        
        .earn-coins {
            background-color: var(--secondary-color);
            color: white;
            padding: 10px;
            border-radius: 5px;
            margin-top: 10px;
            font-weight: bold;
            display: block;
        }
        
        .lock-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 1.2em;
            font-weight: bold;
            z-index: 5;
            border-radius: 10px;
            cursor: not-allowed;
        }
        .lock-overlay i {
            font-size: 2em;
            margin-bottom: 10px;
        }

        /* --- AUTH 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.7); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
        .modal-content { background-color: var(--card-bg); padding: 40px; border-radius: 12px; width: 90%; max-width: 400px; box-shadow: var(--shadow-deep); position: relative; color: #333; }
        .close-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 30px; font-weight: bold; cursor: pointer; }
        .auth-form input { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; padding: 10px; width: 100%; box-sizing: border-box; }
        .auth-form button { background-color: var(--primary-color); color: white; padding: 10px; border: none; border-radius: 4px; width: 100%; cursor: pointer; }

        /* --- SUCCESS POPUP --- */
        #successPopup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--secondary-color); color: white; padding: 20px 30px; border-radius: 10px; z-index: 10000; font-weight: bold; display: none; }

        /* --- RESPONSIVENESS --- */
        @media (max-width: 768px) {
            #productList { grid-template-columns: 1fr; }
        }
