:root {
    --bg-color: #f3f4f6;
    --container-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #6b7280;
    --accent: #10b981;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-height: 70px;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --container-bg: #1f2937;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.navbar {
    height: var(--nav-height);
    background: var(--container-bg);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; }

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.hero-subtext { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.card-section {
    background: var(--container-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.section-desc { color: var(--text-muted); margin-bottom: 2rem; }

.ad-container {
    background: rgba(0,0,0,0.02);
    margin: 2rem 0;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-height: 100px;
}

/* Tools Styling */
.upload-container {
    border: 2px dashed var(--primary);
    padding: 3rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-container:hover { background: rgba(59, 130, 246, 0.05); }

.preview-container img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.secondary-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
}

/* Content Sections */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-card {
    background: var(--container-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.faq-item h4 { margin-bottom: 0.5rem; color: var(--primary); }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    margin-bottom: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.site-footer {
    background: var(--container-bg);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; gap: 1rem; }
}
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}
