html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
}

body.bg {
    background: url('/Images/Background.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.bg.admin-page {
    overflow: auto;
}

.home-blur::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.btn-home,
.btn-character,
.btn-partner {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    transition: 0.25s;
}

.btn-home:hover,
.btn-character:hover,
.btn-partner:hover {
    background: rgba(255,255,255,0.20);
}

.btn-admin {
    padding: 10px 18px;
    border-radius: 10px;
    background: #dc2626;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    transition: 0.25s;
}

.btn-admin:hover {
    background: #b91c1c;
}

.discord-btn,
.icon-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: 0.25s;
}

.discord-btn:hover,
.icon-btn:hover {
    background: #4752c4;
}

.icon-img {
    width: 22px;
    height: 22px;
}

.profile-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.username {
    font-size: 14px;
    font-weight: bold;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: rgba(0,0,0,0.8);
    padding: 12px;
    border-radius: 12px;
    min-width: 130px;
    backdrop-filter: blur(8px);
}

.profile-menu:hover .profile-dropdown {
    display: block;
}

.logout-btn {
    text-decoration: none;
    color: #ff4d4d;
    font-weight: bold;
}

.home-container {
    width: 90%;
    margin: 120px auto 40px auto;
}

.why-box,
.why-extra {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    width: 60%;
    margin: 15px auto;
    padding: 20px;
    border-radius: 12px;
    font-size: 17px;
    text-align: center;
}

.home-events {
    margin-top: 50px;
}

.event-admin-tools {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.event-btn-add,
.event-btn-manage {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    color: white;
    font-weight: bold;
    backdrop-filter: blur(10px);
    transition: 0.25s;
}

.event-btn-add:hover,
.event-btn-manage:hover {
    background: rgba(255,255,255,0.20);
}

.event-mini-box {
    background: rgba(0,0,0,0.55);
    border-radius: 12px;
    display: flex;
    gap: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.event-mini-box img {
    width: 150px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.stat-box {
    text-align: center;
    background: rgba(0,0,0,0.55);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 140px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #a066ff;
}

.stat-label {
    opacity: 0.8;
    font-size: 14px;
}

.home-partners {
    margin-top: 50px;
    text-align: center;
}

.partners-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.partner-small {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    width: 230px;
    padding: 15px;
    border-radius: 12px;
}

.partner-small img {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.partner-small-btn {
    display: inline-block;
    background: #5865F2;
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.character-container,
.admin-container,
.partner-container {
    width: 90%;
    margin: 120px auto 0 auto;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
}

.character-table {
    width: 100%;
    border-collapse: collapse;
}

.character-table th,
.character-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.character-table th {
    background: rgba(255,255,255,0.12);
}

.taken {
    color: #ff4d4d;
}

.free {
    color: #4dff7a;
}

.stats-box {
    background: rgba(20,20,20,0.8);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.admins-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card {
    background: rgba(20,20,20,0.8);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.admin-name {
    font-size: 1.1em;
}

.logs-box {
    background: rgba(20,20,20,0.85);
    padding: 15px;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    width: 90%;
    margin: 25px auto;
}

.log-line {
    display: flex;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.log-time {
    width: 140px;
    color: #ccc;
    font-size: 12px;
}

.log-user {
    color: #a855f7;
}

.log-action {
    color: white;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.partner-box {
    background: rgba(0,0,0,0.55);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
}

.partner-banner {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.partner-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
}

.partner-stats {
    color: #a855f7;
    font-weight: bold;
}

.partner-desc {
    margin-bottom: 20px;
    font-size: 14px;
}

.partner-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.partner-icon {
    width: 20px;
    height: 20px;
}

.edit-btn,
.delete-btn {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    text-decoration: none;
}

.edit-btn {
    left: 12px;
    background: #3b82f6;
}

.delete-btn {
    right: 12px;
    background: #dc2626;
}
.admin-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5865F2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
}

.admin-chat-btn img {
    width: 32px;
    height: 32px;
}

.admin-chat-box {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    height: 420px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
}

.admin-chat-header {
    background: rgba(255,255,255,0.15);
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.admin-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

.admin-chat-input {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.admin-chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
}

.admin-chat-input button {
    padding: 10px 15px;
    border: none;
    background: #5865F2;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.characters-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
}

.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: #a066ff;
}

.clean-table {
    margin: 0 auto;
    width: 80%;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.clean-table thead {
    background: rgba(255, 255, 255, 0.12);
}

.clean-table th,
.clean-table td {
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
}

.clean-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.05);
}

.clean-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.08);
}

.free {
    color: #4dff7a;
    font-weight: bold;
}

.taken {
    color: #ff4d4d;
    font-weight: bold;
}
.cat-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin: 0 8px;
}

.home-hero {
    width: 65%;
    margin: 120px auto 30px auto;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.hero-banner {
    flex: 1;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    max-height: 240px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-info {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-info h1 {
    font-size: 30px;
    margin: 0 0 10px 0;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 18px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.hero-join-btn {
    display: inline-block;
    background: #5865F2;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 15px;
}

.hero-join-btn:hover {
    background: #4752c4;
}

.why-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    color: #a066ff;
}

.no-event {
    margin-top: 15px;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

.home-hero {
    width: 65%;
    margin: 120px auto 40px auto;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.hero-banner {
    flex: 1;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-info {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-info h1 {
    font-size: 32px;
    margin: 0 0 12px 0;
}

.hero-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.hero-stat-box {
    background: rgba(0,0,0,0.55);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}


@media (max-width: 1100px) {
    .home-hero {
        width: 90%;
    }
}

@media (max-width: 800px) {
    .home-hero {
        flex-direction: column;
        height: auto;
    }

    .hero-banner img {
        max-height: 200px;
    }
}


@media (max-width: 1100px) {
    .partner-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 700px) {
    .partner-grid {
        grid-template-columns: repeat(1,1fr);
    }
}
