
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 800px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 15px 20px; }
.section { background: #f8f9fa; padding: 15px; border-radius: 10px; margin-bottom: 15px; }
.section-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #667eea; }
.option { background: white; padding: 12px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.option-label { font-size: 13px; color: #333; }
.option-desc { font-size: 11px; color: #666; margin-top: 3px; }
.sync-badge { font-size: 10px; background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 2px 7px; font-weight: 700; margin-top: 4px; display: inline-block; }
.btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; color: white; }
.btn-primary { background: #667eea; }
.btn-success { background: #28a745; }
.btn-danger  { background: #dc3545; }
.toggle { width: 50px; height: 26px; background: #ccc; border-radius: 13px; position: relative; cursor: pointer; transition: background 0.3s; flex-shrink: 0; }
.toggle.active { background: #28a745; }
.toggle-slider { width: 22px; height: 22px; background: white; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left 0.3s; }
.toggle.active .toggle-slider { left: 26px; }
.toggle.loading { opacity: 0.5; pointer-events: none; }
.file-input { display: none; }
.tpl-chip { display:inline-block;background:#28a745;color:white;padding:4px 10px;border-radius:15px;font-size:11px;font-weight:700;cursor:pointer;user-select:none;transition:background 0.2s,transform 0.1s; }
.tpl-chip:hover { background:#1e7e34;transform:scale(1.05); }
.tpl-chip:active { transform:scale(0.95); }
.tpl-lang-btn.active { background:#667eea!important;color:white!important; }
.tpl-lang-btn:not(.active) { background:white!important;color:#667eea!important; }
@media (max-width: 600px) { .header { flex-direction: column; text-align: center; gap: 8px; } }

