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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    font-weight: 500;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    width: auto;
    padding: 14px 24px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-danger {
    background: #dc3545;
}

.btn-success {
    background: #28a745;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #888;
}

.footer-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 24px;
}

.admin-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.stat-active .stat-value { color: #28a745; }
.stat-inactive .stat-value { color: #888; }
.stat-expired .stat-value { color: #ffc107; }
.stat-banned .stat-value { color: #dc3545; }

.table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

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

th, td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    font-weight: 600;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #ccc;
}

td code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

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

.badge-active { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.badge-inactive { background: rgba(136, 136, 136, 0.2); color: #888; }
.badge-expired { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.badge-banned { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

h2 {
    font-size: 18px;
    margin: 25px 0 10px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .card { padding: 24px; }
    .stats { flex-direction: column; }
    .admin-header { flex-direction: column; align-items: flex-start; }
}
