/* --- GLOBAL STYLES --- */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fc;
    color: #333;
}

/* --- 1. HEADER & PROFILE --- */
.top-header {
    background: linear-gradient(90deg, #1e88e5, #00bcd4);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-header h1 { margin: 0; font-size: 1.5rem; }
.profile-section { display: flex; align-items: center; gap: 15px; }
#wallet-display { font-weight: 600; }
.profile-icon { cursor: pointer; font-size: 1.5rem; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

/* --- 2. MAIN CONTROLS --- */
.controls-area {
    padding: 30px 20px;
    background: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.reward-info { color: #2ecc71; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.info-message { margin-bottom: 20px; font-weight: 500; font-size: 1.1rem; color: #1e88e5; }

#start-button {
    padding: 15px 35px; border: none; border-radius: 10px; 
    background-color: #ff9800; /* Orange/Yellow for attention */
    color: white; font-size: 1.2rem; font-weight: 700; cursor: pointer; 
    transition: all 0.3s; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
#start-button:disabled { background-color: #ccc; cursor: not-allowed; box-shadow: none; }

/* --- 3. IFRAME LOADER (Visibility handled by JS) --- */
#iframe-loader-wrapper {
    padding: 20px;
    background: #e9ecef;
    text-align: center;
    display: none; /* Initially hidden */
}
#iframe-loader-title {
    color: #c0392b;
    font-weight: 700;
    margin-bottom: 15px;
}
#iframe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.iframe-item {
    width: 300px;
    height: 60px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}
.iframe-number-label { font-size: 0.85em; font-weight: bold; }
.iframe-timer-label { font-size: 0.75em; color: #e74c3c; font-weight: 600; }
.actual-iframe { flex-grow: 1; border: none; width: 100%; height: 100%; }
.iframe-item.complete .iframe-timer-label { color: #2ecc71; font-weight: 700; }
.iframe-item.complete { border-color: #2ecc71; }


/* --- 4. MODAL (AUTH) --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 30px; border-radius: 10px; width: 90%; max-width: 400px; text-align: center; }
.modal-content h2 { color: #1e88e5; margin-bottom: 20px; }
.modal-content input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.modal-content button { width: 100%; padding: 12px; background-color: #1e88e5; color: white; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; }
