/* Pura purana CSS yahan tak same rahega... */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --box-bg: #ffffff;
    --border-color: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }

.layout-container { display: flex; justify-content: center; max-width: 1400px; margin: 0 auto; padding: 20px; gap: 20px; }
.ad-space { width: 160px; display: none; flex-shrink: 0; }
.ad-placeholder { background-color: #e5e7eb; height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: #9ca3af; border: 2px dashed #d1d5db; border-radius: 8px; position: sticky; top: 20px; }

.main-content { flex: 1; max-width: 800px; background: var(--box-bg); padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.site-header { text-align: center; margin-bottom: 30px; }
.site-header h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; outline: none; transition: border-color 0.3s; }
select:focus, textarea:focus { border-color: var(--primary-color); }
textarea { resize: vertical; }

/* NEW: Action Buttons Row */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.primary-btn, .secondary-btn {
    flex: 1;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn { background-color: var(--primary-color); }
.primary-btn:hover { background-color: var(--primary-hover); }

.secondary-btn { background-color: var(--secondary-color); }
.secondary-btn:hover:not(:disabled) { background-color: var(--secondary-hover); }
.secondary-btn:disabled { background-color: #9ca3af; cursor: not-allowed; opacity: 0.7; }

/* NEW: Compact Result Row */
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.result-row.hidden { display: none; }

.file-info { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.file-icon { font-size: 1.5rem; }
.icon-btn { background: none; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.icon-btn:hover { background: var(--primary-color); color: white; }

.status-message { text-align: center; font-weight: 500; color: #4b5563; margin-bottom: 10px; }

/* Ad Modal and general elements */
.divider { border: 0; height: 1px; background: var(--border-color); margin: 40px 0; }
.seo-content h2 { margin-bottom: 15px; color: var(--primary-color); }
.seo-content ol { margin-left: 20px; margin-bottom: 30px; }
.site-footer { text-align: center; padding: 30px 20px; background-color: #1f2937; color: white; margin-top: 40px; }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: #9ca3af; text-decoration: none; margin: 0 10px; transition: color 0.3s; }
.footer-links a:hover { color: white; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal.hidden { display: none; }
.modal-content { background: white; padding: 30px; border-radius: 12px; text-align: center; width: 90%; max-width: 400px; }
.video-ad-placeholder { background: #000; color: white; height: 200px; margin: 20px 0; display: flex; align-items: center; justify-content: center; border: 1px dashed #444; }
.skip-btn { padding: 10px 20px; background: #e5e7eb; border: none; border-radius: 5px; cursor: not-allowed; color: #9ca3af; font-weight: bold; }
.skip-btn.enabled { background: var(--primary-color); color: white; cursor: pointer; }

@media (min-width: 1024px) {
    .ad-space { display: block; }
}