:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --dark: #0F172A;
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-app: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-app); color: var(--text-main); line-height: 1.6; }
.app-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Nav */
.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--dark); }
.brand-ext { color: var(--primary); }
.lang-btn { background: white; border: 1px solid var(--border); padding: 8px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 0.8rem; }
.lang-btn.active { background: var(--dark); color: white; border-color: var(--dark); }

/* Hero */
.hero-section { text-align: center; margin-bottom: 40px; }
.hero-section h1 { font-size: 2.5rem; font-weight: 800; color: var(--dark); letter-spacing: -0.03em; }

/* Grid */
.generator-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; }
@media (min-width: 900px) { .generator-grid { grid-template-columns: 1.3fr 0.7fr; } }

.config-card, .preview-card { background: var(--white); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Types */
.qr-type-selector { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; }
.type-btn { padding: 12px 20px; border: none; background: #F1F5F9; border-radius: var(--radius-md); font-weight: 700; cursor: pointer; color: var(--text-light); white-space: nowrap; }
.type-btn.active { background: var(--primary); color: white; }

.type-content { display: none; flex-direction: column; gap: 10px; margin-top: 20px; }
.type-content.active { display: flex; }

.modern-input, .modern-select { padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; }
.compound-input { display: flex; gap: 10px; }
.custom-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; }

.primary-btn { width: 100%; background: var(--dark); color: white; padding: 18px; border-radius: var(--radius-md); border: none; font-weight: 800; font-size: 1.1rem; cursor: pointer; margin-top: 20px; }
.download-btn { width: 100%; background: var(--primary); color: white; padding: 15px; border-radius: var(--radius-md); border: none; font-weight: 700; cursor: pointer; margin-top: 20px; }

/* Preview State */
.preview-state { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 350px; }
.preview-state.active { display: flex; }
.placeholder-qr { width: 150px; height: 150px; border: 3px dashed var(--border); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 2rem; font-weight: 800; }

/* SEO Section */
.info-hero-card { background: white; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); text-align: center; margin-bottom: 30px; }
.info-badge { display: inline-block; background: #EEF2FF; color: var(--primary); padding: 6px 16px; border-radius: 100px; font-size: 0.7rem; font-weight: 800; margin-bottom: 15px; }
.seo-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 900px) { .seo-grid { grid-template-columns: 2fr 1fr; } }

.faq-item { background: white; padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 15px; }
.faq-question { font-weight: 800; color: var(--dark); }
.pro-tips-card { background: var(--dark); color: white; padding: 25px; border-radius: var(--radius-lg); }
.tips-list { list-style: none; margin-top: 15px; }
.tips-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }

/* Footer */
.main-footer { margin-top: 60px; padding: 40px 0 20px; border-top: 1px solid var(--border); }
.footer-content { display: flex; flex-direction: column; gap: 30px; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; } }
.footer-links { display: flex; gap: 40px; }
.link-group a { display: block; color: var(--text-light); text-decoration: none; margin-top: 8px; font-size: 0.9rem; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #F1F5F9; font-size: 0.8rem; color: var(--text-light); }

/* Utils */
.ads-container { display: flex; justify-content: center; margin: 30px 0; }
.ad-placeholder { background: #F1F5F9; border: 2px dashed #CBD5E1; padding: 20px; border-radius: 12px; color: #94A3B8; text-align: center; width: 100%; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }