: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; }

/* Input Hub */
.input-hub { margin-bottom: 2rem; }
.input-group { margin-bottom: 1.25rem; flex: 1; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 850; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.5rem; }

.input-wrapper { display: flex; align-items: center; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 10px; padding: 0.5rem; transition: border-color 0.2s; }
.input-wrapper:focus-within { border-color: var(--primary); }
.input-icon { color: #cbd5e1; margin-left: 0.5rem; }
.input-wrapper input { flex: 1; border: none; background: transparent; padding: 0.5rem; font-family: inherit; font-size: 1rem; color: #334155; }
.input-wrapper input:focus { outline: none; }

.settings-grid { display: flex; gap: 1rem; align-items: flex-end; }
.settings-grid.colors { grid-template-columns: repeat(3, 1fr); display: grid; margin-top: 1rem; }
select, input[type="number"], input[type="color"] { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 0.7rem; font-family: inherit; cursor: pointer; height: 42px; }
input[type="color"] { padding: 0.2rem; }
input[type="range"] { width: 100%; height: 8px; border-radius: 4px; background: #e2e8f0; appearance: none; margin-bottom: 12px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; background: var(--primary); border-radius: 50%; cursor: pointer; }


/* QR Preview Area */
.qr-preview-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 2.5rem; text-align: center; margin-bottom: 2rem; position: relative; }
.qrcode-canvas { background: white; padding: 1rem; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); display: inline-block; }
.qrcode-canvas img { display: inline-block; max-width: 100%; height: auto; border-radius: 4px; }

.preview-note { font-size: 0.75rem; color: #94a3b8; margin-top: 1rem; font-weight: 600; text-transform: uppercase; }

/* Action Hub */
.action-hub { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-main { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; padding: 1rem; border-radius: 10px; font-weight: 800; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; transition: 0.2s; }
.btn-main:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.btn-secondary { background: #fff; border: 1px solid #d1d5db; color: #475569; padding: 0.85rem; border-radius: 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-secondary:hover { background: #f8fafc; border-color: #94a3b8; }

.btn-text { background: transparent; border: none; font-weight: 700; color: #94a3b8; cursor: pointer; margin-top: 0.5rem; }
.btn-text:hover { color: var(--danger); text-decoration: underline; }

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

@media (max-width: 600px) {
    .settings-grid { flex-direction: column; }
    .hero-header h1 { font-size: 1.8rem; }
    .info-grid { grid-template-columns: 1fr; }
}
