: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 Bars - Tightness optimized */
.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;
    align-items: 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: 1300px;
    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;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-radius: 8px;
}

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

.subtitle { color: var(--text-muted); font-size: 1rem; margin-top: 0.25rem; }

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

.input-section {
    position: relative;
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within { border-color: var(--primary); background: #fff; }

.input-icon { color: #94a3b8; width: 20px; }

input[type=text] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
}

input[type=text]:focus { outline: none; }

.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-main:hover { transform: translateY(-1px); }

#error-msg {
    margin-top: 0.75rem;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Results Area */
.results-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.res-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    text-align: center;
}

.res-card img {
    border-radius: 8px;
    max-width: 100%;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #eee;
}

.res-label {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .mini-grid { grid-template-columns: 1fr; }
}

.dl-btn {
    width: 100%;
    background: #fff;
    border: 1px solid var(--card-border);
    padding: 0.65rem;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dl-btn:hover { border-color: var(--primary); color: var(--primary); }

.res-card.featured .dl-btn {
    background: #f0fdf4;
    border-color: #dcfce7;
    color: var(--primary);
}

.res-card.featured .dl-btn:hover { background: #dcfce7; }

/* SEO Section */
.seo-article {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.seo-article h2 { font-size: 1.5rem; margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.seo-article p { font-size: 0.95rem; line-height: 1.6; color: #4b5563; margin-bottom: 1.25rem; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
}

.info-card { background: #f8fafc; padding: 1rem; border-radius: 10px; }
.info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.85rem; color: #64748b; line-height: 1.5; }

.faq-section { margin-top: 2rem; }
.faq-item { margin-bottom: 1rem; }
.faq-item strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.faq-item p { font-size: 0.9rem; margin-bottom: 0; color: #64748b;}

/* Footer */
.legal-footer {
    padding: 2.5rem 1rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-footer a { color: var(--text-muted); text-decoration: none; }

/* Helpers */
.hidden { display: none !important; }
