* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 24px;
}

header h1 {
    font-size: 24px;
    color: #7c8aff;
    margin-bottom: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    font-size: 13px;
    color: #7c8aff;
    background: #1a1a3e;
    padding: 4px 12px;
    border-radius: 12px;
}

.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-card {
    background: #161633;
    border: 1px solid #252550;
    border-radius: 16px;
    padding: 40px;
    width: 380px;
}

.auth-card h1 {
    color: #7c8aff;
    font-size: 22px;
    text-align: center;
    margin-bottom: 24px;
}

input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    background: #0d0d20;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="password"]:focus {
    outline: none;
    border-color: #7c8aff;
}

.hint {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

.tag-auto { background: #1b2a3a; color: #90caf9; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.tag-manual { background: #2a1b3a; color: #ce93d8; padding: 2px 8px; border-radius: 8px; font-size: 11px; }

nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #1a1a3e;
    padding-bottom: 0;
}

.tab {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover { color: #bbb; }
.tab.active { color: #7c8aff; border-bottom-color: #7c8aff; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
    background: #161633;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #252550;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ccc;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h2 { margin-bottom: 0; }

.form-group {
    margin-bottom: 14px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 10px 14px;
    background: #0d0d20;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #7c8aff;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary { background: #5c6bc0; color: #fff; }
.btn-primary:hover { background: #7c8aff; }
.btn-secondary { background: #2a2a50; color: #aaa; }
.btn-secondary:hover { background: #3a3a60; }
.btn-sm { padding: 6px 14px; font-size: 13px; background: #2a2a50; color: #aaa; }
.btn-sm:hover { background: #3a3a60; }
.btn-danger { background: #c62828; color: #fff; padding: 4px 10px; font-size: 12px; }
.btn-danger:hover { background: #e53935; }
.btn-check { background: #2e7d32; color: #fff; padding: 4px 10px; font-size: 12px; }
.btn-check:hover { background: #43a047; }

.file-label { display: inline-block; }
.divider { color: #666; padding: 0 4px; align-self: center; }

.result-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

.result-box.success { background: #1b3a1b; border: 1px solid #2e7d32; color: #81c784; }
.result-box.error { background: #3a1b1b; border: 1px solid #c62828; color: #ef9a9a; }

.stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-item {
    background: #0d0d20;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.stat-item .num { font-size: 20px; font-weight: bold; color: #7c8aff; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    color: #888;
    font-weight: 500;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a3e;
}

tr:hover td { background: #1a1a3e; }

.status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-active { background: #1b3a1b; color: #81c784; }
.status-banned { background: #3a1b1b; color: #ef9a9a; }
.status-expired { background: #3a1b1b; color: #ef9a9a; }
.status-invalid { background: #3a2a1b; color: #ffcc80; }
.status-checking { background: #1b2a3a; color: #90caf9; }
.status-flood_wait { background: #3a3a1b; color: #fff59d; }

.status-pending { background: #1b2a3a; color: #90caf9; }
.status-running { background: #1b3a2a; color: #80cbc4; }
.status-completed { background: #1b3a1b; color: #81c784; }
.status-failed { background: #3a1b1b; color: #ef9a9a; }
.status-cancelled { background: #3a2a1b; color: #ffcc80; }

.progress-bar {
    width: 120px;
    height: 8px;
    background: #0d0d20;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: #5c6bc0;
    border-radius: 4px;
    transition: width 0.3s;
}

.actions { display: flex; gap: 6px; }
