* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.logo { text-align: center; margin-bottom: 20px; }
.logo svg { width: 60px; height: 60px; }
h1 { color: #333; font-size: 28px; text-align: center; }
.subtitle { color: #666; text-align: center; font-size: 14px; margin-bottom: 30px; }

.tab-switch {
    display: flex;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}
.tab-btn.active { background: white; color: #667eea; font-weight: 600; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
}
.form-group input:focus { outline: none; border-color: #667eea; }

.btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.result { display: none; }
.result.show { display: block; }
.qr-box { background: #f8f8f8; padding: 20px; border-radius: 16px; margin: 20px 0; text-align: center; }
.qr-box img { max-width: 100%; }
.info { background: #f0f0f0; padding: 16px; border-radius: 12px; margin-bottom: 20px; }
.info p { color: #666; font-size: 14px; }
.info .num { color: #333; font-size: 20px; font-weight: 600; }
.token-display {
    background: #fff;
    border: 2px dashed #667eea;
    padding: 12px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #667eea;
    margin-bottom: 16px;
    text-align: center;
}
.btn-secondary { background: #f0f0f0; color: #333; margin-top: 12px; }

.hide { display: none; }
.save-tip { color: #666; font-size: 14px; margin-bottom: 20px; }
.section-title { color: #333; margin-bottom: 16px; }
.token-list-box { background: #f8f8f8; padding: 16px; border-radius: 12px; max-height: 300px; overflow-y: auto; }
.token-list { font-size: 12px; word-break: break-all; }
