:root {
    --primary: #4c9855; /* Muzazco Green */
    --accent: #338dbc; /* Muzazco Blue */
    --bg-main: #f1f5f9;
    --card-bg: #fff;
    --card-border: #e2e8f0;
    --text-main: #111827;
    --text-muted: #64748b;
    --success: #22c55e;
    
    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; position: relative; }
.main-content { flex: 1; min-width: 0; max-width: 800px; margin: 0 auto; }
.side-ad { width: 160px; flex-shrink: 0; }
@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; z-index: 10; }

/* 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; background-clip: text; -webkit-text-fill-color: transparent; }

/* Hub 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; overflow: hidden; width: 100%; box-sizing: border-box; }

/* Editor Hub */
.editor-hub { display: flex; flex-direction: column; gap: 1rem; }
.panel-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid #f8fafc; padding-bottom: 0.5rem; }
.panel-header h3 { font-size: 0.9rem; font-weight: 850; text-transform: uppercase; color: #1e293b; }
.panel-header i { width: 18px; height: 18px; color: var(--accent); }

textarea { width: 100%; height: 280px; padding: 1rem; background: #0f172a; color: #a5f3fc; border: 1px solid #1e293b; border-radius: 10px; font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace; font-size: 0.9rem; line-height: 1.5; resize: none; overflow-x: auto; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(51, 141, 188, 0.2); }
#code-output { background: #020617; }

/* Format Switcher */
.format-switcher { margin-left: auto; display: flex; background: #f1f5f9; padding: 0.2rem; border-radius: 10px; }
.type-btn { background: transparent; border: none; padding: 0.4rem 1rem; font-weight: 850; font-size: 0.75rem; color: #64748b; cursor: pointer; border-radius: 8px; transition: 0.2s; }
.type-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Stats Row */
.stats-row { display: flex; gap: 1rem; margin: 1rem 0; overflow-x: auto; padding-bottom: 0.5rem; }
.stat-pill { background: #f8fafc; border: 1px solid #e2e8f0; padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.75rem; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.stat-pill i { width: 14px; height: 14px; }
.stat-pill.success { background: #f0fdf4; color: var(--primary); border-color: #dcfce7; }
.stat-pill.accent { background: #f0f9ff; color: var(--accent); border-color: #e0f2fe; }

/* Actions */
.btn-main { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 850; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: 0.2s; white-space: nowrap; }
.btn-main:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-main.small { margin-left: auto; padding: 0.4rem 0.8rem; font-size: 0.75rem; }

.btn-text { background: transparent; border: none; font-weight: 700; color: #94a3b8; cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0.5rem; }
.btn-text:hover { color: #1e293b; }
.action-footer { display: flex; justify-content: flex-end; }

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

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

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

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
    .hero-header h1 { font-size: 1.8rem; }
    .page-wrapper { padding: 0.5rem; }
    textarea { height: 200px; font-size: 0.85rem; }
}
