* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1b2a 100%);
    color: #e0e0e0;
    padding: 20px;
    min-height: 100vh;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(100, 150, 200, 0.2);
}
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #6ab0ff;
    font-weight: 600;
}
.language-switch {
    text-align: right;
    margin-bottom: 15px;
}
.language-switch a {
    color: #6ab0ff;
    text-decoration: none;
    margin-left: 10px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.logout {
    background: #e94560;
    padding: 8px 16px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
}
.profile-card {
    background: #1b2a44;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.menu, .admin-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}
.menu a, .admin-menu a {
    background: #1f3a5f;
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
    font-weight: bold;
}
.menu a:hover, .admin-menu a:hover {
    background: #2a4a7a;
    transform: translateY(-2px);
}
.login-box {
    max-width: 400px;
    margin: 40px auto;
    background: #1b2a44;
    padding: 30px;
    border-radius: 28px;
}
input, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 40px;
    border: none;
    font-size: 1rem;
}
input {
    background: #0f1b2f;
    color: white;
    border: 1px solid #2a4a7a;
}
button {
    background: #6ab0ff;
    color: #0a0f1e;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
button:hover {
    background: #5a9ee6;
}
.error, .success {
    padding: 12px;
    border-radius: 40px;
    margin: 15px 0;
    text-align: center;
}
.error {
    background: #e94560;
    color: white;
}
.success {
    background: #2e7d32;
    color: white;
}
.char-grid, .listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.char-card, .listing-card {
    background: #0f1b2f;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s;
    text-align: center;
    padding-bottom: 12px;
    border: 1px solid #2a4a7a;
}
.char-card img, .listing-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.info {
    padding: 12px;
}
.buy-btn {
    display: inline-block;
    background: #6ab0ff;
    color: #0a0f1e;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    margin: 8px;
    font-weight: bold;
}
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}
.pagination a {
    background: #1f3a5f;
    padding: 8px 14px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
}
.pagination a.active {
    background: #6ab0ff;
    color: #0a0f1e;
}
.sort-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.sort-buttons a {
    background: #1f3a5f;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1b2f;
    border-radius: 20px;
    overflow: hidden;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #1f3a5f;
}
th {
    background: #1b2a44;
}
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    .char-grid, .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .menu a, .admin-menu a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    th {
        display: none;
    }
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #1f3a5f;
    }
    td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 40%;
    }
}
.shop-info {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #1b2a44;
    border-radius: 40px;
}
.shop-info a {
    color: #6ab0ff;
    text-decoration: none;
    font-weight: bold;
}