* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 50%, #e0e7ff 100%); padding: 1rem; }
.container { max-width: 56rem; margin: 0 auto; }
.header { text-align: center; margin-bottom: 2rem; }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; background: linear-gradient(135deg, #9333ea, #2563eb); border-radius: 1rem; margin-bottom: 1rem; }
.icon-box svg { width: 2rem; height: 2rem; color: white; }
h1 { font-size: 2.25rem; font-weight: 700; background: linear-gradient(135deg, #9333ea, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.subtitle { color: #4b5563; font-size: 1.125rem; }
.card { background: white; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: #6b7280; background: none; border: none; cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; }
.tab:hover { color: #374151; background: #f9fafb; }
.tab.active { color: #9333ea; background: #faf5ff; border-bottom-color: #9333ea; }
.tab svg { width: 1rem; height: 1rem; }
.content { padding: 2rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .content { grid-template-columns: 1fr 1fr; } }
.section-title { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
input, textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; font-size: 1rem; transition: all 0.2s; }
input:focus, textarea:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px #9333ea; }
textarea { resize: none; }
.help-text { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.divider { border-top: 1px solid #e5e7eb; padding-top: 1.5rem; margin-top: 1.5rem; }
.upload-area { border: 2px dashed #d1d5db; border-radius: 0.75rem; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-area:hover { border-color: #a855f7; background: #faf5ff; }
.upload-area svg { width: 2rem; height: 2rem; color: #9ca3af; margin: 0 auto 0.5rem; }
.upload-text { font-size: 0.875rem; color: #4b5563; }
.upload-hint { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.logo-preview { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; background: #f9fafb; border-radius: 0.75rem; }
.logo-preview img { width: 3rem; height: 3rem; object-fit: contain; border-radius: 0.5rem; background: white; border: 1px solid #e5e7eb; }
.logo-info { flex: 1; }
.logo-info p { font-size: 0.875rem; font-weight: 500; color: #374151; }
.remove-btn { font-size: 0.75rem; color: #ef4444; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; margin-top: 0.25rem; }
.remove-btn:hover { color: #dc2626; }
.slider-container { margin-top: 1rem; }
.slider-label { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
input[type="range"] { width: 100%; height: 0.5rem; background: #e5e7eb; border-radius: 0.5rem; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 1rem; height: 1rem; background: #9333ea; border-radius: 50%; }
.slider-hints { display: flex; justify-content: space-between; font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.btn { width: 100%; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: none; }
.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-primary { background: linear-gradient(135deg, #9333ea, #2563eb); color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.btn-primary:hover { background: linear-gradient(135deg, #7e22ce, #1d4ed8); }
.btn svg { width: 1rem; height: 1rem; }
.qr-section { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.qr-box { background: #f9fafb; border-radius: 1rem; padding: 2rem; width: 100%; max-width: 20rem; }
.qr-placeholder { text-align: center; padding: 4rem 0; }
.qr-placeholder svg { width: 4rem; height: 4rem; color: #d1d5db; margin: 0 auto 1rem; }
.qr-placeholder p { color: #6b7280; }
.qr-display { text-align: center; }
.qr-display canvas { max-width: 100%; height: auto; border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.qr-hint { font-size: 0.875rem; color: #4b5563; margin-top: 1rem; }
.btn-group { display: flex; gap: 1rem; width: 100%; max-width: 20rem; }
.btn-group .btn { flex: 1; }
.data-preview { width: 100%; max-width: 20rem; }
.data-preview h3 { font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
.data-preview pre { background: #f3f4f6; border-radius: 0.5rem; padding: 0.75rem; font-size: 0.75rem; color: #4b5563; max-height: 8rem; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.footer { text-align: center; margin-top: 2rem; font-size: 0.875rem; color: #6b7280; }
.hidden { display: none !important; }
.tab-content { display: none; }
.tab-content.active { display: block; }