: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-color: 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;
    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 Structure */
.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;
    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.25rem 0.65rem;
    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;
}

/* Dashboard Card */
.dashboard-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    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);
}

.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;
    transition: all 0.2s ease;
    border-right: 1px solid #f1f5f9;
}

.tab-btn:hover { color: var(--primary); background: #fff; }
.tab-btn.active { color: var(--primary); background: #fff; border-bottom: 2px solid var(--primary); }
.tab-btn i { width: 18px; }

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

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

.converter-box { display: flex; flex-direction: column; gap: 1.25rem; }

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

input[type=number], select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
}

select:focus, input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76, 152, 85, 0.05); }

.grid-row { display: flex; gap: 1rem; align-items: flex-end; }
.grid-row .input-group { flex: 1; }

.swap-btn-container { margin-bottom: 0.25rem; }

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-icon:hover { background: #fff; color: var(--primary); border-color: var(--primary); }

.result-display {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 1rem;
}

.result-display.featured {
    background: #eff6ff;
    border-color: #dbeafe;
    color: var(--accent);
    font-size: 1.75rem;
}

.rate-info { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

.static-val { font-size: 1rem; font-weight: 700; color: var(--accent); }

/* In-Content Ad */
.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;
}

/* Article */
.seo-article { background: #fff; padding: 1.5rem; border-radius: 12px; border: 1px solid var(--card-border); margin-bottom: 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: 0.95rem; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.85rem; color: #64748b; }

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
    .grid-row { flex-direction: column; align-items: stretch; }
    .swap-btn-container { text-align: center; transform: rotate(90deg); margin: 0.5rem 0; }
}

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

.hidden { display: none; }
