:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.6);
    --accent: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.6);
    --bg-dark: #05040a;
    --glass: rgba(20, 18, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #e0e0e0;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a1625 0%, #05040a 80%);
    min-height: 100vh;
}

h1, h2, h3, h4, .cinzel-font { font-family: 'Cinzel', serif; letter-spacing: 1px; }
.text-gold { color: var(--accent) !important; text-shadow: 0 0 15px var(--accent-glow); }
.text-neon { color: var(--primary) !important; text-shadow: 0 0 15px var(--primary-glow); }

.btn-epic {
    position: relative;
    padding: 12px 35px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);

    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-epic:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    transform: translateY(-2px);

    text-decoration: none !important;
}
.btn-gold { border-color: var(--accent); color: var(--accent); }
.btn-gold:hover { background: rgba(251, 191, 36, 0.1); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); color: #fff; }

header { background: rgba(5, 4, 10, 0.6); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); padding: 15px 0; transition: 0.3s; }
header.scrolled { padding: 10px 0; background: rgba(5, 4, 10, 0.95); }
.nav-link { font-size: 13px; font-weight: 600; color: #aaa !important; margin: 0 10px; text-transform: uppercase; }
.nav-link:hover { color: #fff !important; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

.hero-section {
    min-height: 100vh; background: url('https://w.wallhaven.cc/full/wq/wallhaven-wq8pm6.jpg') no-repeat center center;
    background-size: cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(5,4,10,0.3) 0%, rgba(5,4,10,0.9) 90%); }
.hero-content { position: relative; z-index: 2; }

.feature-card { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px 20px; border-radius: 4px; transition: 0.3s; height: 100%; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

.classes-wrapper { display: flex; gap: 10px; height: 500px; }
.class-card { flex: 1; position: relative; border-radius: 4px; overflow: hidden; cursor: pointer; transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1); border: 1px solid #333; }
.class-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; filter: brightness(0.5) grayscale(0.8); }
.class-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, #000 0%, transparent 100%); transform: translateY(100%); transition: 0.6s; opacity: 0; }
.class-card:hover { flex: 4; border-color: var(--accent); }
.class-card:hover img { filter: brightness(1.1) grayscale(0); transform: scale(1.05); }
.class-card:hover .class-info { transform: translateY(0); opacity: 1; }

.ucp-card { background: #0f0b15; border: 1px solid #2a2535; border-radius: 8px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); height: 100%; }
.table-glass { --bs-table-bg: transparent; --bs-table-color: #ccc; }
.table-glass th { border-bottom: 1px solid #444; color: var(--accent); font-family: 'Cinzel'; font-weight: normal; }
.table-glass td { border-bottom: 1px solid #222; vertical-align: middle; }

.nav-pills .nav-link { color: #aaa; padding: 14px 20px; text-align: left; border-radius: 6px; margin-bottom: 5px; display: flex; align-items: center; border: 1px solid transparent; transition: 0.3s; }
.nav-pills .nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-pills .nav-link.active { background: linear-gradient(90deg, rgba(139,92,246,0.2), transparent); border-left: 3px solid var(--primary); color: #fff; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
.inv-slot { height: 60px; background: rgba(0,0,0,0.3); border: 1px solid #333; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: 0.2s; }
.inv-slot.selected { border-color: var(--accent); box-shadow: inset 0 0 10px var(--accent-glow); }
.char-select-box { background: rgba(139, 92, 246, 0.1); border: 1px solid var(--primary); padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.pay-method { border: 1px solid #333; background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.pay-method.active { border-color: var(--accent); background: rgba(251, 191, 36, 0.1); }

.form-control, .form-select { background: rgba(0,0,0,0.4); border: 1px solid #444; color: #fff; }
.form-control:focus, .form-select:focus { background: rgba(0,0,0,0.6); border-color: var(--primary); color: #fff; box-shadow: none; }
.modal-content { background: #15121e; border: 1px solid var(--glass-border); border-radius: 12px; }
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.btn-close { filter: invert(1); }

.animate-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.classes-container {
    display: flex;
    gap: 10px;
    height: 600px;
    width: 100%;
    margin-bottom: 40px;
}


.class-item {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
    background: #000;
}


.class-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: top center;

    filter: brightness(0.6) grayscale(0.8);
    transition: all 0.6s ease;
    transform: scale(1.0);
}


.class-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 1;
}


.class-content {
    width: 100%;
    transform: translateY(20px);
    opacity: 0.7;
    transition: all 0.5s 0.1s;
}

.class-role,
.class-desc,
.btn-class {
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease;
    overflow: hidden;
}

.class-item h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transform-origin: left bottom;
    transition: 0.3s;
}


.class-item:hover {
    flex: 4;
    border-color: var(--accent);
    z-index: 2;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.class-item:hover img {
    filter: brightness(1.1) grayscale(0);
    transform: scale(1.1);
}

.class-item:hover .class-content {
    transform: translateY(0);
    opacity: 1;
}

.class-item:hover h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent) !important;
}

.class-item:hover .class-role,
.class-item:hover .class-desc,
.class-item:hover .btn-class {
    opacity: 1;
    max-height: 200px;
}

.class-role {
    display: block;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.class-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


.btn-class {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    transition: 0.3s;
}

.btn-class:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 991px) {
    .classes-container {
        flex-direction: column;
        height: auto;
    }
    .class-item {
        height: 120px;
        flex: none;
        width: 100%;
    }
    .class-item:hover {
        height: 400px;
        flex: none;
    }
    .class-item img {
        object-position: center 20%;
    }
}

.class-modal-bg {
    background: #0b0912;
    border: 1px solid var(--accent);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    overflow: hidden;
}

.class-modal-img-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
}

.class-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.img-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 50%, #0b0912 100%);
    z-index: 1;
}

.class-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.custom-pills .nav-link {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    margin-right: 10px;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    text-transform: uppercase;
}

.custom-pills .nav-link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: bold;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.tree-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tree-title {
    color: var(--primary);
    font-family: 'Cinzel', serif;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .img-gradient-overlay {
        background: linear-gradient(to bottom, transparent 0%, #0b0912 100%);
    }
    .class-modal-img-wrapper {
        height: 300px;
    }
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    font-size: 0.75em;
    text-transform: uppercase;
    margin: 20px 0;
    font-family: 'Montserrat', sans-serif;
}
.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.login-separator:not(:empty)::before { margin-right: .5em; }
.login-separator:not(:empty)::after { margin-left: .5em; }

.telegram-login-container {
    position: relative;
    margin-bottom: 1rem;
}

.btn-telegram {
    border-color: #0088cc;
    color: #33a9e1;
    background: rgba(0, 136, 204, 0.1);
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    border-color: #33a9e1;
    background: rgba(0, 136, 204, 0.2);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.telegram-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    cursor: pointer;
}

.telegram-widget-overlay iframe {
    width: 100% !important;
    height: 100% !important;
}

.form-control.text-center.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
}
#header-avatar-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--accent);
}

.char-card {
    transition: all 0.3s ease;
}
.char-card.offline {
    opacity: 0.6;
}
.char-card.offline img {
    filter: grayscale(1);
}
.char-card:hover {
    opacity: 1;
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.server-status-wrapper {
    background: linear-gradient(90deg, #05040a 0%, #0f0b15 50%, #05040a 100%);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.version-timeline {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 10px;
}

.timeline-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 1s ease;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #111;
    cursor: pointer;
    transition: 0.3s;
    margin-top: -3px;
}

.timeline-dot.past {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    transform: scale(1.3);
}

.timeline-dot:hover {
    transform: scale(1.5);
}

#server-clock {
    font-variant-numeric: tabular-nums;
}

.inv-page-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255,255,255,0.1);
    color: #aaa;
}
.inv-page-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.pw-tooltip-close {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}
.pw-tooltip-close:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.tt-desc-content {
    max-height: 60vh;
}
@media (max-width: 768px) {
    .pw-tooltip {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);

        width: 90% !important;
        max-width: 350px;
        max-height: 80vh;
        overflow-y: auto;

        box-shadow: 0 0 0 1000px rgba(0,0,0,0.7);
        pointer-events: auto;
        padding-top: 40px;
    }
    .pw-tooltip-close {
        display: block;
    }

    .tt-desc-content {
        font-size: 14px;
    }
}

.legal-text h4 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}
.legal-text p, .legal-text li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.legal-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.footer-disclaimer {
    display: inline-block;
    max-width: 700px;
    text-align: justify;
    text-align-last: center;
}
@media (max-width: 768px) {
    .footer-disclaimer {
        text-align: center;
        text-align-last: center;
    }
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.legal-header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
.legal-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto 0;
    box-shadow: 0 0 15px var(--primary);
}

.custom-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    transition: 0.3s;
}
.custom-accordion .accordion-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}
.custom-accordion .accordion-button {
    background: transparent;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none;
    padding: 20px;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.custom-accordion .accordion-button::after {
    filter: invert(1);
    opacity: 0.5;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
}
.custom-accordion .accordion-body {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
}
.legal-icon {
    width: 40px;
    text-align: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.modern-footer {
    background: linear-gradient(to top, #05040a, #0f0b15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.9rem;
    color: #888;
}
.footer-logo {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    display: inline-block;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
}
.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}
.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
}

.page-content-wrapper {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .page-content-wrapper {
        padding-top: 100px;
    }
}

.nav-pills .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    background: #15121e !important;
    border: 1px solid rgba(251, 191, 36, 0.3); /* Gold border */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 8px;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-family: 'Cinzel', serif;
    color: #fbbf24 !important; /* Gold text */
    letter-spacing: 1px;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    font-family: 'Montserrat', sans-serif;
    color: #ccc !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #8b5cf6 !important; /* Primary Purple */
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5) !important;
}

div:where(.swal2-icon).swal2-success {
    border-color: #28a745;
    color: #28a745;
}

.swal-item-list {
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
}

.swal-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.swal-item:last-child {
    border-bottom: none;
}

.swal-item-icon {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
}

.swal-item-info {
    margin-left: 15px;
}

.swal-item-name {
    color: #fff;
    font-weight: bold;
}

.swal-item-count {
    color: #999;
}
.list-group-item-action:hover {
    background-color: #2a2535 !important;
    color: #fbbf24 !important; /* Gold hover */
    border-color: #444 !important;
}

.list-group {
    max-height: 250px;
    overflow-y: auto;
}
.list-group::-webkit-scrollbar { width: 5px; }
.list-group::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }