:root {
    --primary: #4c9855; /* Muzazco Green */
    --accent: #338dbc; /* Muzazco Blue */
    --bg-main: #f1f5f9;
    --card-bg: #fff;
    --card-border: #e2e8f0;
    --text-main: #111827;
    --text-muted: #64748b;
    --danger: #ef4444;
    
    font-family: 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { background: var(--bg-main); color: var(--text-main); min-height: 100vh; }

/* Ad Bar */
.top-ad-bar { width: 100%; background: #fff; border-bottom: 1px solid var(--card-border); padding: 0.5rem 0; text-align: center; min-height: 100px; display: flex; justify-content: center; }
.ad-placeholder { width: 728px; height: 90px; background: #f8fafc; border: 1px dashed #cbd5e1; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border-radius: 4px; }

/* Page Layout */
.page-wrapper { display: flex; max-width: 1400px; margin: 0 auto; padding: 1rem; gap: 1.5rem; }
.main-content { flex: 1; max-width: 800px; margin: 0 auto; }
.side-ad { width: 160px; }
@media (max-width: 1100px) { .side-ad { display: none; } }
.ad-placeholder-vertical { width: 160px; height: 600px; background: #fff; border: 1px dashed #cbd5e1; position: sticky; top: 1rem; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; color: #94a3b8; font-size: 0.7rem; border-radius: 8px; }

/* Dashboard Branding */
.hero-header { text-align: center; margin-bottom: 1rem; }
.badge { background: #f0fdf4; color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 700; border: 1px solid #dcfce7; margin-bottom: 0.5rem; display: inline-block; }
.hero-header h1 { font-size: 2.25rem; font-weight: 850; background: linear-gradient(135deg, #000, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Tool Dashboard Layout */
.dashboard-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 15px -10px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }

/* Tab Header */
.tabs-header { display: flex; background: #f8fafc; border-bottom: 1px solid var(--card-border); margin: -1.5rem -1.5rem 1.5rem -1.5rem; border-radius: 12px 12px 0 0; }
.tab-btn { flex: 1; border: none; background: transparent; padding: 1rem; font-family: inherit; font-size: 0.9rem; font-weight: 650; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; border-right: 1px solid #f1f5f9; transition: all 0.2s; }
.tab-btn:hover { color: var(--primary); background: #fff; }
.tab-btn.active { color: var(--primary); background: #fff; border-bottom: 2px solid var(--primary); }

/* Tab Content */
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Drop Zone */
.drop-zone { border: 2.5px dashed #e2e8f0; border-radius: 16px; padding: 3.5rem 1.5rem; text-align: center; color: #94a3b8; cursor: pointer; background: #fafbfc; transition: all 0.2s; }
.drop-zone:hover { border-color: var(--primary); background: #f0fdf4; color: var(--primary); }
.drop-icon { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.5; }

/* File List */
.file-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; padding: 0.85rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 10px; }
.file-info { font-size: 0.9rem; font-weight: 700; color: #334155; }
.file-size { font-size: 0.75rem; font-weight: 600; color: #94a3b8; margin-left: 0.5rem; }
.remove-file { border: none; background: transparent; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
.remove-file:hover { color: var(--danger); }

/* Config Box (Split) */
.config-box { margin-top: 1.5rem; background: #eff6ff; border: 1px solid #dbeafe; padding: 1.5rem; border-radius: 12px; }
.input-grid { display: flex; gap: 1rem; margin-top: 1rem; margin-bottom: 1rem; }
.input-group { flex: 1; }
.input-group label { display: block; font-size: 0.7rem; font-weight: 850; text-transform: uppercase; color: #1e40af; margin-bottom: 0.4rem; }
.input-group input { width: 100%; padding: 0.75rem; border: 1px solid #bfdbfe; border-radius: 8px; font-weight: 700; }

/* Action Footer */
.action-footer { margin-top: 1.5rem; text-align: right; border-top: 1px solid #f1f5f9; padding-top: 1.5rem; }
.btn-main { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; padding: 0.85rem 2rem; border-radius: 8px; font-weight: 750; cursor: pointer; width: 100%; transition: all 0.2s; }
.btn-main:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Ad Slot Center */
.content-ad { margin: 1.5rem 0; padding: 1rem; background: #fff; border-radius: 12px; border: 1px solid var(--card-border); text-align: center; }
.ad-placeholder-rect { width: 300px; height: 250px; background: #f8fafc; border: 1px dashed #cbd5e1; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.7rem; }

/* SEO Article */
.seo-article { background: #fff; padding: 1.5rem; border-radius: 12px; border: 1px solid var(--card-border); margin-top: 2rem; }
.seo-article h2 { font-size: 1.5rem; margin-bottom: 0.85rem; }
.seo-article p { font-size: 0.95rem; line-height: 1.6; color: #4b5563; margin-bottom: 1.5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card { background: #f8fafc; padding: 1rem; border-radius: 10px; }
.info-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.85rem; color: #64748b; }

/* Footer */
.legal-footer { padding: 3rem 1rem; text-align: center; border-top: 1px solid var(--card-border); background: #fff; margin-top: 2rem; }
.legal-footer p { font-size: 0.8rem; color: #94a3b8; }
.legal-footer a { color: inherit; text-decoration: none; font-size: 0.8rem; margin: 0 0.5rem; }

.hidden { display: none !important; }

@media (max-width: 600px) {
    .tabs-header { flex-wrap: wrap; }
    .tab-btn { flex: 1 1 50%; border-bottom: 1px solid #f1f5f9; }
    .info-grid { grid-template-columns: 1fr; }
}
