/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 =========================================================
 
*/
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    border-top: none !important;
}

a:focus,
a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    color: #666;
}

.form-control:focus {
    border: 1px solid #ccc;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border-color: #ff0000;
}

.btn-primary {
    color: #3f6588;
    background-color: transparent;
    border-color: #3f6588;
    -moz-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    -webkit-transition: all .1s ease-in;
    transition: all .1s ease-in;
    -moz-border-radius: 0px;
    border-radius: 0px;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    color: #fff !important;
    background-color: #3f6588 !important;
    border-color: #3f6588 !important;
}

/* Navbar Merge Styles */
#navbar {
    height: auto;
    padding: 10px 0;
    /* Slightly increased padding for initial state */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    transition: all 0.3s ease;
    /* Smooth transition */
    background-color: transparent;
    /* Start transparent */
}

#navbar.scrolled {
    padding: 0;
    /* Default padding on scroll */
    background-color: #0d0d0dcc;
    /* Darker background when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-content-container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.navbar-logo {
    max-height: 60px;
    /* Slightly larger initial logo */
    width: auto;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    filter: brightness(1.2);
}

#navbar.scrolled .navbar-logo {
    max-height: 50px;
    /* Default size when scrolled */
}

.navbar-left,
.navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar-center {
    flex: 2;
    text-align: center;
    display: flex;
    justify-content: center;
}

.navbar-right {
    justify-content: flex-end;
    gap: 15px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.navbar-right a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.navbar-right a:hover {
    color: #fff;
}

.navbar-separator {
    color: #444;
}

/* Adjust Language Selector in Navbar */
.webengine-language-selector-new {
    margin: 0;
}

/* Adjust existing navbar ul to behave well in flex */
#navbar ul {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

#navbar ul li {
    display: inline-block;
}

/* Fix for Language Dropdown items inheriting generic navbar styles */
#navbar .webengine-language-dropdown {
    white-space: normal;
}

#navbar .webengine-language-dropdown li {
    display: block;
}

#navbar ul li a {
    padding: 20px 15px;
    /* Reduce padding to fit everything */
    font-size: 14px;
}

.form-horizontal .control-label {
    text-align: left !important;
}

/* Language Switcher Redesign */
.webengine-language-selector-new {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.webengine-language-selector-new:hover .webengine-language-dropdown {
    display: block;
}

.webengine-language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
    background-color: transparent;
    color: rgb(200, 161, 101);
    border: 1px solid rgba(200, 161, 101, 0.2);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
}

.webengine-language-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.webengine-language-btn svg {
    display: block;
}

.webengine-language-btn .lucide-globe {
    width: 1rem;
    height: 1rem;
}

.webengine-language-btn .lucide-chevron-down {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.3s;
}

.webengine-language-switcher:hover .lucide-chevron-down {
    transform: rotate(180deg);
}

.webengine-language-btn .lang-code {
    font-weight: 500;
}

/* Refined Language Dropdown Styles */
.webengine-language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 5px;
    background-color: #0d0d0d;
    /* Extremely dark grey/black */
    border: 1px solid rgba(200, 161, 101, 0.4);
    /* Gold border */
    border-radius: 2px;
    padding: 5px 0;
    list-style: none;
    min-width: unset;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.webengine-language-dropdown li {
    display: block;
    margin: 0;
    padding: 0;
}

.webengine-language-dropdown li a {
    display: block;
    padding: 8px 15px !important;
    color: #a0a0a0 !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left !important;
    /* Force left alignment */
    line-height: normal;
    border-left: 2px solid transparent;
}


.webengine-language-dropdown li a:hover {
    background-color: rgba(200, 161, 101, 0.08);
    color: rgb(200, 161, 101) !important;
    border-left: 2px solid rgb(200, 161, 101);
}

/* Responsive Navbar Styles */
.navbar-toggle-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: #c8a165;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

@media (max-width: 991px) {

    /* Increase navbar height on mobile */
    #navbar {
        padding: 20px 0 !important;
        /* Force even larger padding */
    }

    .navbar-content-container {
        width: 100%;
        padding: 0 25px;
        /* Increased padding from edge */
    }

    .navbar-toggle-btn {
        display: block;
    }

    .navbar-toggle-btn svg {
        width: 48px;
        /* Extra Big button */
        height: 48px;
    }

    /* Hide the center menu by default on mobile */
    .navbar-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0d0d0d;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
        /* More padding in dropdown */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    /* Show when active */
    .navbar-center.active {
        display: block;
    }

    .navbar-center ul {
        display: block;
    }

    #navbar ul li {
        display: block;
        margin: 0;
        text-align: center;
    }

    #navbar ul li a {
        display: block;
        padding: 25px;
        /* Huge touch target */
        font-size: 20px;
        /* Huge text */
    }

    /* Adjust navbar logo for mobile */
    .navbar-logo {
        max-height: 40px !important;
        /* Force extra large logo */
    }


}

/* Enhancements for smaller screens */
@media (max-width: 480px) {
    .navbar-content-container {
        padding: 0 20px;
    }

    .navbar-logo {
        max-height: 40px !important;
        /* Keep it extra large even on small screens */
    }

    .navbar-right {
        gap: 12px;
        /* Slightly more space */
    }

    .webengine-language-selector-new {
        display: none;
    }
}

/* Hero Header Styles */
#header {
    position: relative;
    width: 100%;
    min-height: 110dvh;
    /* Use dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken video slightly to make logo pop */
    z-index: 1;
}

.webengine-mu-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    width: 600px !important;
    max-width: 90% !important;
    height: auto !important;

    margin: 0 !important;
    transform: translateY(20px) scale(1);

    z-index: 10;

    transform-origin: center center;
    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        filter .4s ease;

    filter:
        brightness(1)
        saturate(1.05)
        drop-shadow(0 4px 10px rgba(0,0,0,.45));
}


/* PREMIUM HOVER */
.webengine-mu-logo:hover {
    transform: translateY(15px) scale(1.06);

    animation: xandoria-logo-glow 1.4s ease-in-out infinite alternate;
}


/* BLUE + RED ENERGY GLOW */
@keyframes xandoria-logo-glow {

    0% {
        filter:
            brightness(1.08)
            saturate(1.18)
            contrast(1.05)

            drop-shadow(-10px 0 12px rgba(0,140,255,.35))
            drop-shadow(10px 0 12px rgba(255,30,70,.35))
            drop-shadow(0 5px 15px rgba(0,0,0,.55));
    }

    100% {
        filter:
            brightness(1.22)
            saturate(1.35)
            contrast(1.10)

            drop-shadow(-18px 0 22px rgba(0,170,255,.55))
            drop-shadow(18px 0 22px rgba(255,40,80,.55))
            drop-shadow(0 0 18px rgba(170,80,255,.25))
            drop-shadow(0 6px 20px rgba(0,0,0,.60));
    }
}

@media (max-width: 768px) {
    .webengine-mu-logo {
        width: 90% !important;
        /* Use percentage to avoid viewport overflow */
        max-width: 500px !important;
        /* Cap it reasonably */
        transform: translateY(10px) !important;
    }
}

@media (max-width: 480px) {
    .webengine-mu-logo {
        width: 95% !important;
        /* Maximize within container */
        max-width: 400px !important;
        /* Cap for small screens */
    }
}

/* Prevent scrollbar disappearance and layout shift */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Custom Rankings Title Styles */
.rankings-title-container {
    text-align: center;
    margin-bottom: 48px;
    margin-top: 24px;
}

.rankings-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgb(102, 163, 216) 0%, rgb(63, 101, 136) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: rgb(102, 163, 216);
    /* Fallback */
}

.rankings-subtitle {
    color: rgb(150, 180, 200);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Ensure Menu Container centering */
.rankings_menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Refined Rankings Title Styles (Stronger Specificity) */
body .rankings-title-container {
    text-align: center !important;
    margin-bottom: 48px !important;
    margin-top: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

body .rankings-title {
    font-family: 'Cinzel', serif !important;
    font-size: 6rem !important;
    /* Even bigger */
    font-weight: 700 !important;
    margin-bottom: 0px !important;
    background: linear-gradient(135deg, rgb(102, 163, 216) 0%, rgb(63, 101, 136) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

body .rankings-subtitle {
    color: rgb(150, 180, 200) !important;
    font-size: 1.5rem !important;
    /* Increased from 1.125rem */
    font-weight: 400 !important;
    margin-top: 0 !important;
}

/* Rankings Class Filter Redesign */
.rankings-filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: rgba(13, 20, 30, 0.6);
    border: 1px solid rgba(102, 163, 216, 0.2);
    border-radius: 16px;
    margin-bottom: 32px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(4px);
}

.rankings-filter-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rankings-filter-btn:hover {
    transform: scale(1.1);
    opacity: 1 !important;
    filter: grayscale(0%) !important;
}

.rankings-filter-ring {
    padding: 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
    /* Default border for inactive state logic handled inline or here */
}

.rankings-filter-all-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(63, 101, 136) 0%, rgb(102, 163, 216) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.rankings-filter-img-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
}

.rankings-filter-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rankings Filter Active States */
.rankings-filter-btn {
    opacity: 0.6;
    filter: grayscale(100%);
}

.rankings-filter-btn.active {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.1);
}

.rankings-filter-btn .rankings-filter-ring {
    background: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rankings-filter-btn.active .rankings-filter-ring {
    background: linear-gradient(135deg, rgb(102, 163, 216) 0%, rgb(63, 101, 136) 100%);
    box-shadow: 0 0 15px rgba(102, 163, 216, 0.4);
    border-color: transparent;
}

.rankings-filter-btn.active .rankings-filter-all-icon {
    box-shadow: 0 0 15px rgba(102, 163, 216, 0.6);
}

/* Rankings Table Card Design */
.rankings-card {
    background: linear-gradient(135deg, rgba(13, 20, 30, 0.85) 0%, rgba(18, 9, 9, 0.8) 100%);
    border: 1px solid rgba(102, 163, 216, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.rankings-table thead th {
    padding: 16px 24px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgb(102, 163, 216);
    border-bottom: 1px solid rgba(102, 163, 216, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.rankings-table tbody tr {
    border-bottom: 1px solid rgba(102, 163, 216, 0.1);
    transition: background-color 0.3s ease;
}

.rankings-table tbody tr:hover {
    background-color: rgba(102, 163, 216, 0.05);
}

.rankings-table td {
    padding: 16px 24px;
    vertical-align: middle;
    color: #e6d6c6;
    font-size: 0.95rem;
}

/* Position Circles */
.rank-pos-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.rank-1 {
    background: linear-gradient(135deg, rgb(255, 215, 0) 0%, rgb(255, 165, 0) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-2 {
    background: linear-gradient(135deg, rgb(224, 224, 224) 0%, rgb(169, 169, 169) 100%);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    background: linear-gradient(135deg, rgb(205, 127, 50) 0%, rgb(160, 82, 45) 100%);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
}

.rank-n {
    background: rgba(102, 163, 216, 0.1);
    color: rgb(102, 163, 216);
    border: 1px solid rgba(102, 163, 216, 0.3);
}

/* Avatar & Info */
.rankings-table .player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rankings-table .player-name {
    font-weight: 700;
    color: #e6d6c6;
    text-decoration: none;
    transition: color 0.2s;
}

.rankings-table .player-name:hover {
    color: rgb(102, 163, 216);
}

.rankings-table .class-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rankings-table .class-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(102, 163, 216, 0.3);
}

/* Center alignment helper */
.text-center {
    text-align: center !important;
}

/* Info Module Styles */
.info-card-title {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(102, 163, 216, 0.2);
    background: linear-gradient(90deg, rgba(8, 14, 25, 0.4) 0%, rgba(8, 14, 25, 0) 100%);
    border-radius: 12px 12px 0 0;
}

.info-card-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #c7d1db;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-left: 3px solid rgb(102, 163, 216);
    padding-left: 10px;
}

.info-table {
    width: 100%;
    margin: 0;
}

.info-table th {
    background: rgba(8, 14, 25, 0.3);
    color: rgb(102, 163, 216);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 15px;
    border: none !important;
}

.info-table td {
    padding: 15px;
    font-size: 1.1rem;
    color: #aebbc9;
    border-top: 1px solid rgba(102, 163, 216, 0.1) !important;
}

.info-table tr:hover {
    background: rgba(102, 163, 216, 0.05);
}

.text-blue {
    color: rgb(102, 163, 216) !important;
    font-weight: bold;
}

.text-highlight {
    color: #e6e6e6 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.table-responsive {
    overflow-x: auto;
}

/* Embed responsive for video */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Login Modal Styles */
/* Login Modal Styles */
#loginModal {
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
}

#loginModal.in,
#loginModal.show {
    display: flex !important;
    /* Only flex when active */
}

#loginModal .modal-dialog {
    margin: 0;
    max-width: 400px;
    width: 100%;
}

.login-modal-content {
    background-color: rgba(13, 20, 30, 0.9);
    border: 1px solid rgb(102, 163, 216);
    color: #c7d1db;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(102, 163, 216, 0.2);
    backdrop-filter: blur(5px);
}

.login-modal-header {
    border-bottom: 1px solid rgba(102, 163, 216, 0.3);
}

.login-modal-header .close {
    color: rgb(102, 163, 216);
    opacity: 0.8;
    text-shadow: none;
}

.login-modal-header .close:hover {
    opacity: 1;
    color: #fff;
}

.login-modal-body input.form-control {
    background-color: rgba(13, 20, 30, 0.6);
    border: 1px solid rgba(102, 163, 216, 0.3);
    color: #fff;
}

.login-modal-body input.form-control:focus {
    border-color: rgb(102, 163, 216);
    box-shadow: 0 0 10px rgba(102, 163, 216, 0.3);
}

.login-submit-btn {
    background-color: rgba(102, 163, 216, 0.2);
    border: 1px solid rgb(102, 163, 216);
    color: rgb(102, 163, 216);
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    background-color: rgb(102, 163, 216);
    border-color: rgb(102, 163, 216);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 163, 216, 0.6);
}

.forgot-password-link {
    color: #888;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: rgb(102, 163, 216);
}

/* =========================================
   Advanced Premium Glass Registration Styles
   ========================================= */

.register-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    width: 100%;
    min-height: 80vh;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-main-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgb(102, 163, 216);
    background: linear-gradient(135deg, rgb(102, 163, 216) 0%, #fff 50%, rgb(63, 101, 136) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-shadow: 0 4px 20px rgba(102, 163, 216, 0.3);
}

.register-subtitle {
    color: rgb(150, 180, 200);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Glass Card */
.register-glass-card {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: linear-gradient(135deg, rgba(8, 14, 25, 0.95) 0%, rgba(13, 20, 30, 0.85) 50%, rgba(8, 14, 25, 0.95) 100%);
    border: 1px solid rgba(102, 163, 216, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 100px rgba(102, 163, 216, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    z-index: 10;
}

/* Decorative Blobs (Ambients) */
.register-blob {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.blob-top-left {
    top: -40px;
    left: -40px;
    background: radial-gradient(circle, rgb(102, 163, 216) 0%, transparent 70%);
}

.blob-bottom-right {
    bottom: -40px;
    right: -40px;
    background: radial-gradient(circle, rgb(63, 101, 136) 0%, transparent 70%);
}

.register-content {
    position: relative;
    z-index: 10;
}

.register-form-space {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs */
.register-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(102, 163, 216);
    margin: 0;
    text-align: left;
}

.register-field-wrapper {
    position: relative;
}

.register-icon-wrapper {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    color: rgb(102, 163, 216);
    pointer-events: none;
}

.limit-icon {
    width: 20px;
    height: 20px;
}

.register-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    /* Space for icon */
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(63, 101, 136, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 50;
    /* Ensure clickable */
    cursor: text;
}

.register-input:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgb(102, 163, 216);
    box-shadow: 0 0 15px rgba(102, 163, 216, 0.2);
}

.register-input::placeholder {
    color: #5a6b7c;
}

.register-help {
    font-size: 0.75rem;
    color: #5a6b7c;
    margin: 0;
    text-align: right;
}

/* Checkboxes */
.register-terms-container {
    background: rgba(63, 101, 136, 0.1);
    border: 1px solid rgba(63, 101, 136, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #c7d1db;
    margin: 0;
    position: relative;
    z-index: 50;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 20px;
    width: 20px;
    z-index: 50;
    left: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 163, 216, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-checkbox:hover .checkmark {
    background-color: rgba(102, 163, 216, 0.1);
}

.custom-checkbox input:checked~.checkmark {
    background-color: rgb(102, 163, 216);
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.checkbox-text a {
    color: rgb(102, 163, 216);
    text-decoration: underline;
    font-weight: 600;
}

/* Shiny Button */
.register-submit-wrapper {
    margin-top: 20px;
}

.register-shiny-btn {
    position: relative;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgb(63, 101, 136) 0%, rgb(102, 163, 216) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(63, 101, 136, 0.4);
}

.register-shiny-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 163, 216, 0.5);
}

.btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
    pointer-events: none;
}

.register-shiny-btn:hover .btn-shine {
    transform: skewX(-20deg) translateX(150%);
    transition: transform 1s ease-in-out;
}

/* Login Link */
.register-login-link {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(102, 163, 216, 0.2);
    padding-top: 20px;
    color: #c7d1db;
}

.register-login-link a {
    color: rgb(102, 163, 216);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s;
}

.register-login-link a:hover {
    color: #fff;
}

/* Recaptcha */
.register-recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.9;
}

/* UserCP Unified Card Utilities */
.border-right {
    border-right: 1px solid rgba(102, 163, 216, 0.1);
}

@media (max-width: 991px) {
    .border-right {
        border-right: none !important;
        border-bottom: 1px solid rgba(102, 163, 216, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Sidebar Banner Fix (Re-adding if missing) */
.sidebar-banner img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.sidebar-banner img:hover {
    transform: translateY(-2px);
}

/* Hero Responsive Fixes */
@media (max-width: 480px) {
    .hero-server-info-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
        /* Reduced padding slightly as container is narrower */
        width: 90% !important;
        /* Shrink width */
        max-width: 90% !important;
        margin: 0 auto 30px auto !important;
        box-sizing: border-box;
    }

    .hero-stat-card {
        width: 100% !important;
        height: 110px !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    .hero-action-buttons {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }
}

/* Even Smaller Screens Fix */
@media (max-width: 360px) {
    .hero-server-info-grid {
        gap: 8px !important;
        padding: 0 5px !important;
        width: 95% !important;
        max-width: 95% !important;
    }

    .hero-stat-card {
        height: 95px !important;
        padding: 8px !important;
    }

    .hero-stat-label {
        font-size: 10px !important;
    }

    .hero-stat-value {
        font-size: 13px !important;
    }
}

/* Responsive Fixes */
html {
    min-width: auto !important;
}

#container {
    width: 100% !important;
    max-width: 1200px !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.footer>.footer-container {
    width: 100% !important;
    max-width: 1200px !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.global-top-bar .global-top-bar-content {
    width: 100% !important;
    max-width: 1200px !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* UserCP Horizontal Menu */
.usercp-menubar {
    margin-bottom: 20px;
    background: rgba(13, 20, 30, 0.6);
    border: 1px solid rgba(102, 163, 216, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.usercp-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.usercp-menu-list li {
    width: 100%;
}

.usercp-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 163, 216, 0.1);
    border-radius: 4px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.usercp-menu-item:hover,
.usercp-menu-item.active {
    background: rgba(102, 163, 216, 0.1);
    border-color: rgba(102, 163, 216, 0.4);
    color: rgb(102, 163, 216);
    text-decoration: none;
}

.usercp-menu-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.usercp-menu-icon img {
    max-width: 20px;
    max-height: 20px;
}

.usercp-menu-text {
    font-weight: 500;
    font-size: 14px;
}
/* =========================================================
   XANDORIAMU - USER CP READABILITY OVERRIDE
   Darker cards + stronger text contrast across all UserCP
   ========================================================= */

/* Main UserCP content: readable typography on busy backgrounds */
.usercp-content {
    color: #e9f1f8 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

/* Page/module titles */
.usercp-content .page-title,
.usercp-content .page-title span,
.usercp-content h1,
.usercp-content h2,
.usercp-content h3 {
    color: #72b9ee !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.85), 0 0 14px rgba(79,154,211,.18) !important;
}

.usercp-content .page-title {
    margin-bottom: 22px !important;
    font-weight: 700 !important;
}

/* Generic WebEngine/UserCP cards */
.usercp-content .panel,
.usercp-content .panel-default,
.usercp-content .panel-body,
.usercp-content .general-table-ui,
.usercp-content .myaccount-table,
.usercp-content .module-requirements,
.usercp-content .reset-history-box,
.usercp-content .vip-panel {
    background: linear-gradient(135deg, rgba(8,14,23,.96), rgba(17,25,36,.94)) !important;
    border: 1px solid rgba(105,185,238,.28) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.025) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Don't create a double visible card where panel-body is inside a panel */
.usercp-content .panel > .panel-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Tables - dark body, clear separators */
.usercp-content table,
.usercp-content .table,
.usercp-content .general-table-ui,
.usercp-content .myaccount-table {
    color: #edf4fa !important;
}

.usercp-content .general-table-ui,
.usercp-content .table:not(.table-condensed),
.usercp-content .myaccount-table {
    background: rgba(8,14,23,.93) !important;
    border: 1px solid rgba(105,185,238,.25) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.usercp-content table td,
.usercp-content table th,
.usercp-content .table td,
.usercp-content .table th,
.usercp-content .general-table-ui td,
.usercp-content .general-table-ui th,
.usercp-content .myaccount-table td,
.usercp-content .myaccount-table th {
    color: #edf4fa !important;
    border-color: rgba(148,180,205,.14) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.8) !important;
}

/* Header row / labels */
.usercp-content table tr:first-child td,
.usercp-content table thead th,
.usercp-content .general-table-ui tr:first-child td,
.usercp-content .general-table-ui thead th {
    color: #76bdf0 !important;
    background: rgba(25,42,59,.72) !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(105,185,238,.28) !important;
}

/* Table row readability */
.usercp-content table tbody tr,
.usercp-content .general-table-ui tbody tr {
    background: rgba(7,13,21,.42) !important;
    transition: background .18s ease, box-shadow .18s ease;
}

.usercp-content table tbody tr:nth-child(even),
.usercp-content .general-table-ui tbody tr:nth-child(even) {
    background: rgba(17,26,38,.58) !important;
}

.usercp-content table tbody tr:hover,
.usercp-content .general-table-ui tbody tr:hover {
    background: rgba(47,91,126,.24) !important;
    box-shadow: inset 3px 0 0 #69b9ee !important;
}

/* Stronger regular text inside UserCP */
.usercp-content p,
.usercp-content label,
.usercp-content span,
.usercp-content small,
.usercp-content .help-block,
.usercp-content .module-requirements p {
    color: #d9e6f0;
}

.usercp-content a:not(.btn):not(.usercp-menu-item) {
    color: #79c4f5 !important;
}

.usercp-content a:not(.btn):not(.usercp-menu-item):hover {
    color: #ffffff !important;
}

/* Forms */
.usercp-content .form-control,
.usercp-content input[type="text"],
.usercp-content input[type="password"],
.usercp-content input[type="email"],
.usercp-content input[type="number"],
.usercp-content select,
.usercp-content textarea {
    background: rgba(5,10,17,.90) !important;
    color: #f1f6fa !important;
    border: 1px solid rgba(105,185,238,.32) !important;
    border-radius: 7px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35) !important;
}

.usercp-content .form-control:focus,
.usercp-content input:focus,
.usercp-content select:focus,
.usercp-content textarea:focus {
    border-color: rgba(105,185,238,.75) !important;
    box-shadow: 0 0 0 2px rgba(105,185,238,.10), 0 0 12px rgba(105,185,238,.16) !important;
    outline: none !important;
}

.usercp-content .form-control::placeholder,
.usercp-content input::placeholder,
.usercp-content textarea::placeholder {
    color: #8396a8 !important;
    opacity: 1 !important;
}

/* Primary UserCP buttons */
.usercp-content .btn-primary,
.usercp-content button.btn.btn-primary,
.usercp-content input.btn.btn-primary {
    color: #eaf6ff !important;
    background: linear-gradient(135deg, rgba(47,108,153,.88), rgba(29,75,111,.92)) !important;
    border: 1px solid rgba(111,196,249,.55) !important;
    border-radius: 7px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.55) !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.28) !important;
}

.usercp-content .btn-primary:hover,
.usercp-content button.btn.btn-primary:hover,
.usercp-content input.btn.btn-primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(61,135,190,.96), rgba(38,94,137,.96)) !important;
    border-color: #7cc9f6 !important;
    box-shadow: 0 0 16px rgba(105,185,238,.28) !important;
}

/* Secondary/default buttons */
.usercp-content .btn-default {
    color: #dce9f3 !important;
    background: rgba(16,27,39,.92) !important;
    border-color: rgba(135,169,196,.30) !important;
}

.usercp-content .btn-default:hover {
    color: #fff !important;
    background: rgba(35,58,78,.95) !important;
    border-color: rgba(105,185,238,.55) !important;
}

/* Requirements / info boxes */
.usercp-content .module-requirements {
    padding: 16px 20px !important;
    margin-top: 20px !important;
}

.usercp-content .module-requirements p {
    margin: 5px 0 !important;
    color: #cbdbe7 !important;
    font-size: 13px !important;
}

/* Alerts/messages */
.usercp-content .alert,
.usercp-content .message {
    border-radius: 8px !important;
    color: #f3f7fa !important;
    text-shadow: none !important;
}

/* Character/class images stand out from dark cards */
.usercp-content img.rankings-class-image,
.usercp-content .character-avatar img,
.usercp-content .general-table-ui img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.55));
}

/* Mobile UserCP */
@media (max-width: 767px) {
    .usercp-content .general-table-ui,
    .usercp-content .table,
    .usercp-content .myaccount-table {
        font-size: 12px !important;
    }

    .usercp-content table td,
    .usercp-content table th,
    .usercp-content .general-table-ui td,
    .usercp-content .general-table-ui th {
        padding: 9px 7px !important;
    }

    .usercp-content .page-title,
    .usercp-content .page-title span {
        font-size: 28px !important;
    }
}

/* USER CP - success / error / info messages */
.usercp-content .alert,
.usercp-content .message,
.usercp-content .msg,
.usercp-content .notice {
    border-radius: 14px !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
}

/* SUCCESS */
.usercp-content .alert-success,
.usercp-content .alert.alert-success,
.usercp-content .message.success,
.usercp-content .success,
.usercp-content .msg-success {
    background: linear-gradient(135deg, rgba(16, 42, 28, 0.96) 0%, rgba(24, 66, 42, 0.96) 100%) !important;
    border: 1px solid rgba(72, 211, 133, 0.55) !important;
    color: #f3fff8 !important;
}

.usercp-content .alert-success *,
.usercp-content .alert.alert-success *,
.usercp-content .message.success *,
.usercp-content .success *,
.usercp-content .msg-success * {
    color: #f3fff8 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}

/* ERROR */
.usercp-content .alert-danger,
.usercp-content .alert.alert-danger,
.usercp-content .message.error,
.usercp-content .error,
.usercp-content .msg-error {
    background: linear-gradient(135deg, rgba(55, 16, 22, 0.96) 0%, rgba(82, 24, 34, 0.96) 100%) !important;
    border: 1px solid rgba(255, 93, 93, 0.55) !important;
    color: #fff5f5 !important;
}

.usercp-content .alert-danger *,
.usercp-content .alert.alert-danger *,
.usercp-content .message.error *,
.usercp-content .error *,
.usercp-content .msg-error * {
    color: #fff5f5 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}

/* INFO / WARNING */
.usercp-content .alert-info,
.usercp-content .alert-warning,
.usercp-content .message.info,
.usercp-content .warning {
    color: #ffffff !important;
}

.usercp-content .alert-info * ,
.usercp-content .alert-warning * ,
.usercp-content .message.info * ,
.usercp-content .warning * {
    color: #ffffff !important;
}