* {
    box-sizing: border-box;
}
body {
    background: #0a0e1a;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #eef;
    margin: 0;
    padding: 2rem;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
h1, h2 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
h1 {
    font-size: 1.8rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.user-menu {
    display: flex;
    gap: 1rem;
}
.btn-outline {
    background: transparent;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-outline:hover {
    background: #2ecc71;
    color: #0a0e1a;
}
.btn-outline.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}
.btn-outline.danger:hover {
    background: #e74c3c;
    color: white;
}
.card {
    background: #11161f;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid #1e2a3a;
}
.login-card {
    max-width: 450px;
    margin: 3rem auto;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #bbd;
}
input, select, button {
    background: #0a0f17;
    border: 1px solid #253445;
    color: #eef;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
input:focus, select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46,204,113,0.2);
}
button, .btn {
    background: #2ecc71;
    border: none;
    color: #0a0e1a;
    font-weight: bold;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
}
button.danger {
    background: #e74c3c;
    color: white;
}
button.secondary {
    background: #2c3e50;
    color: #eef;
}
button.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}
.form-group {
    margin-bottom: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #1e2a3a;
}
th {
    color: #2ecc71;
    font-weight: 500;
}
pre {
    background: #0a0f17;
    padding: 1rem;
    border-radius: 16px;
    overflow-x: auto;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    border: 1px solid #253445;
}
.message {
    background: #1a2a2f;
    border-left: 4px solid #2ecc71;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}
.message.error {
    border-left-color: #e74c3c;
    background: #2a1a1f;
}
.message.success {
    border-left-color: #2ecc71;
    background: #1a2a1f;
}
.message.info {
    border-left-color: #3498db;
    background: #1a2a3f;
}
.copy-btn {
    background: #2c3e50;
    margin-top: 0.5rem;
}
.flex-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #88a;
    text-align: center;
}
.btn-small {
    background: #2c3e50;
    border: none;
    color: #eef;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.btn-small.secondary {
    background: #1e2a3a;
}
.no-qr {
    color: #666;
}
@media (max-width: 700px) {
    body { padding: 1rem; }
    .header { flex-direction: column; gap: 1rem; align-items: start; }
}