/* ... (Keep existing styles from previous response) ... */

/* Keep root variables and basic layout the same */
:root { --primary: #4f46e5; --primary-dark: #4338ca; --secondary: #64748b; --bg: #f8fafc; --card-bg: #ffffff; --text: #0f172a; --border: #e2e8f0; --danger: #dc2626; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg); min-height: 100vh; display: flex; justify-content: center; padding: 20px; color: var(--text); }
.container { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 20px; }
header { text-align: center; padding: 20px 0; }
header h1 { font-size: 2rem; color: var(--primary); margin-bottom: 5px; }
.card { background: var(--card-bg); border-radius: 16px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border: 1px solid var(--border); }
.hidden { display: none !important; }

.settings-card { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.setting-group { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
select { padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: #f1f5f9; outline: none; }

.upload-area { border: 2px dashed #cbd5e1; background: #f1f5f9; text-align: center; cursor: pointer; transition: all 0.3s; padding: 60px 20px; }
.upload-area:hover { border-color: var(--primary); background: #e0e7ff; }
.upload-icon { font-size: 3rem; color: #94a3b8; margin-bottom: 15px; }

.progress-bar-bg { width: 100%; height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin-top: 10px; }
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }
.status-header { display: flex; justify-content: space-between; font-weight: bold; font-size: 0.9rem; }

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
.text-editor textarea { width: 100%; height: 400px; padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; font-family: monospace; resize: vertical; line-height: 1.5; }
.visual-editor { display: flex; flex-direction: column; gap: 15px; }
.style-controls { background: #f1f5f9; padding: 15px; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.control-group { display: flex; flex-direction: column; gap: 5px; }
input[type="range"] { width: 100%; cursor: pointer; }
input[type="color"] { width: 100%; height: 30px; border: none; cursor: pointer; padding: 0; background: none; }
.canvas-wrapper { width: 100%; aspect-ratio: 16/9; background: black; border-radius: 8px; overflow: hidden; position: relative; border: 2px solid var(--primary); }
canvas { width: 100%; height: 100%; object-fit: contain; }
.video-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.download-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;}

.btn { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; width: 100%; }
.btn-outline { background: white; border: 1px solid #cbd5e1; color: var(--text); flex: 1; }
.btn-block { width: 100%; padding: 12px; font-size: 1rem; }
.top-margin { margin-top: 20px; }
#burn-progress-text { text-align: center; color: var(--primary); font-weight: bold; }
.loader { border: 3px solid #f3f3f3; border-top: 3px solid var(--primary); border-radius: 50%; width: 15px; height: 15px; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #ef4444; color: white; padding: 12px 24px; border-radius: 50px; font-weight: bold; z-index: 100; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- NEW MODAL STYLES --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white; width: 90%; max-width: 500px;
    border-radius: 12px; padding: 0; overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.modal-header {
    background: #fff7ed; color: #c2410c; padding: 20px;
    font-weight: bold; font-size: 1.2rem;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid #fed7aa;
}
.modal-body { padding: 20px; color: #334155; line-height: 1.6; }
.modal-actions {
    background: #f8fafc; padding: 15px 20px;
    display: flex; justify-content: flex-end; gap: 10px;
    border-top: 1px solid #e2e8f0;
}
.info-badge { background: #e0f2fe; color: #0369a1; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; display: inline-block; margin-top:10px; }
.checkbox-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; }

@media (max-width: 768px) { .settings-card, .preview-grid { grid-template-columns: 1fr; } }
/* =========================================
   11. FOOTER SHARE BUTTONS
   ========================================= */

.footer-content {
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.footer-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0; /* Add margin for spacing on mobile */
}

.share-label {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #4b5563; /* Dark gray border */
    color: #d1d5db; /* Light gray icon */
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Hover Effects */
.share-btn.facebook:hover {
    background-color: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.telegram:hover {
    background-color: #2AABEE;
    color: white;
    border-color: #2AABEE;
}

.share-btn.copy-link:hover {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Make sure Font Awesome solid and brands are loaded for these icons */