@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #0b0b0f;
    --bg-card: #15151a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-blue: #4dabf7;
    --accent-pink: #f06595;
    --accent-purple: #cc5de8;
    --accent-yellow: #fcc419;
    --accent-green: #69db7c;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* VIDEO BACKGROUND (HEADER) */
header {
    position: relative;
    overflow: hidden;
}

.header-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.55);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* FLOATING NAVBAR */
nav {
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 2.5rem;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: fit-content;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    animation: slideInNav 1s ease;
}

.logo {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    font-weight: 800;
}

.logo span {
    color: var(--accent-blue);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-pink);
    border-radius: 2px;
    opacity: 0.5;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Better control than margin-right on icon */
}

nav ul li a i {
    font-size: 0.8rem;
    opacity: 0.8;
}

nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(162, 210, 255, 0.2);
    transform: translateY(-2px);
}

nav ul li a.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(162, 210, 255, 0.4);
}

/* HEADER & ONLINE INTERFACE */
header {
    min-height: 550px;
    background: linear-gradient(to bottom, rgba(11, 11, 15, 0.3) 0%, rgba(11, 11, 15, 0.8) 100%),
        url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10rem 10% 5rem;
    position: relative;
    overflow: hidden;
}

header::before {
    display: none;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.header-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #333, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

.header-content p {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

/* HEADER TOP RANKS */
.header-top-ranks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.header-top-ranks .simple-rank-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

/* ONLINE INFO INTERFACE */
.online-interface {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: fit-content;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    display: flex;
    justify-content: center;
}

.info-card {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card.blue {
    background: var(--accent-blue);
}

.info-card.pink {
    background: var(--accent-pink);
}

.info-card.purple {
    background: var(--accent-purple);
}

.info-card.yellow {
    background: var(--accent-yellow);
}

.info-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.2rem;
}

.info-card .value {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card.yellow .value,
.info-card.yellow h4 {
    color: #888200;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #00e676;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

/* CONTAINER & SIDEBAR */
.container {
    display: grid;
    grid-template-columns: 280px 650px 280px;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1700px;
    margin: 0 auto;
}

.container.no-sidebar-right {
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    /* Optional: limit width for better readability */
}

aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-module {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-module h3 {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-module h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Side ranking items */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.ranking-item:last-child {
    border: none;
}

/* LOGIN FORM STYLING */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1);
}

.form-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.form-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.form-links a:hover {
    color: var(--accent-blue);
}

.rank-index {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.rank-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.rank-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.rank-name a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(77, 171, 247, 0.4);
}

/* RANKING TABLE LINKS */
.rankings-table a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.rankings-table a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(77, 171, 247, 0.4);
}

.character-avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rank-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.rank-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.view-all-link {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--accent-blue);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--accent-pink);
    transform: translateY(-2px);
}

/* SERVER INFO LIST */
.server-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.server-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* SIDEBAR WIDGETS */
.simple-rank-card {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Push content to edges */
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: left;
}

.simple-rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-image {
    width: 50px;
    height: 50px;
    position: relative;
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-image .rank-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a20;
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.player-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.player-name a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(77, 171, 247, 0.5);
}

.card-stat {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* CASTLE SIEGE WIDGET */
.cs-module {
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.cs-winner-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.cs-logo-container {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-guild-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-details {
    display: flex;
    flex-direction: column;
}

.cs-label {
    font-size: 0.65rem;
    color: #ffd700;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 2px;
}

.cs-guild-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cs-master {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cs-master i {
    color: var(--accent-blue);
    font-size: 0.8rem;
}

/* HERO HEADER STATS */
.hero-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.stat-capsule {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    /* Slight radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.stat-capsule:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.2);
}

.stat-capsule.left {
    transform: skewX(20deg);
    margin-right: -20px;
    border-right: none;
    /* Connect to diamond visually */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.stat-capsule.right {
    transform: skewX(-20deg);
    margin-left: -20px;
    border-left: none;
    /* Connect to diamond visually */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.stat-capsule .stat-value,
.stat-capsule .stat-label {
    display: block;
    transform: skewX(-20deg);
    /* Counter skew for Left */
}

.stat-capsule.right .stat-value,
.stat-capsule.right .stat-label {
    transform: skewX(20deg);
    /* Counter skew for Right */
}

.stat-capsule .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-capsule .stat-label {
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

.stat-diamond {
    width: 140px;
    height: 140px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #37ff00;
    box-shadow: 0 0 25px rgba(55, 255, 0, 0.4), inset 0 0 20px rgba(55, 255, 0, 0.2);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 40px;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.stat-diamond:hover {
    box-shadow: 0 0 40px rgba(55, 255, 0, 0.6), inset 0 0 30px rgba(55, 255, 0, 0.3);
    transform: rotate(45deg) scale(1.05);
}

.stat-diamond::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.stat-diamond-content {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150%;
    /* Ensure text doesn't wrap weirdly */
}

.live-count {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.live-label {
    color: #37ff00;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* LOADER */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0f;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#page-loader.fade-out {
    opacity: 0;
}

.loader-content {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 90px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-purple);
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.2);
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-purple);
    border-left-color: var(--accent-blue);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* HERO ACTIONS */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.btn-hero {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-white {
    background: #ffffff;
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    background: #f0f0f0;
}

.btn-orange {
    background: #ff8c00;
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.5);
    background: #ffa500;
}

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .hero-stats-container {
        flex-direction: column;
        gap: 20px;
    }

    .stat-circle {
        order: -1;
        /* Circle first on mobile */
        width: 160px;
        height: 160px;
    }

    .live-count {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

.server-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.server-info-list li span i {
    color: var(--accent-blue);
    margin-right: 8px;
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}
}

.server-info-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* MAIN CONTENT */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

article {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.article-thumb {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, rgba(80, 20, 100, 0.9) 0%, rgba(30, 30, 40, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.5rem;
    color: var(--accent-purple);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.article-thumb i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.article-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.article-body {
    padding: 1.8rem;
}

.article-body h2 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid rgba(77, 171, 247, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-more:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.25);
    background: linear-gradient(135deg, rgba(30, 60, 114, 1) 0%, rgba(42, 82, 152, 1) 100%);
    border-color: var(--accent-blue);
    filter: brightness(1.2);
}

.btn-more:active {
    transform: translateY(-1px);
}

/* FOOTER */
footer {
    padding: 4rem 10%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copy {
    color: #aaa;
    font-size: 0.85rem;
}

/* AUTH PAGES */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-card {
    background: rgba(21, 21, 26, 0.85);
    /* Dark background */
    backdrop-filter: blur(25px);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.auth-card a[href="index.html"] {
    transition: var(--transition);
}

.auth-card a[href="index.html"]:hover {
    color: var(--accent-blue) !important;
    transform: translateX(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    aside {
        order: 2;
    }

    .sidebar-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .header-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 2rem 5%;
    }
}

/* CUSTOM NAV ANIMATION TO KEEP CENTERED */
@keyframes slideInNav {
    from {
        opacity: 0;
        top: -50px;
        transform: translateX(-50%);
    }

    to {
        opacity: 1;
        top: 25px;
        transform: translateX(-50%);
    }
}

/* RANKINGS PAGE STYLES */

.rankings-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

.rankings-menu a {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.rankings-menu a:hover,
.rankings-menu a.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.rankings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
    margin-top: 1rem;
}

.rankings-table thead th,
.rankings-table tr:first-child td {
    /* WebEngine often puts headers in first tr */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.rankings-table tr {
    transition: var(--transition);
}

/* Skip hover for header row if it's a tr */
.rankings-table tr:not(:first-child):hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rankings-table td {
    padding: 0.6rem;
    vertical-align: middle;
    background: rgba(21, 21, 26, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rankings-table a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.rankings-table a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(77, 171, 247, 0.4);
}

.rankings-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.rankings-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.rankings-table .character-avatar-wrapper {
    position: relative;
    /* Keep the relative positioning for the absolute rank index */
    width: 45px;
    height: 45px;
    border-radius: 12px;
    /* ensure wrapper itself is rounded if it has bg */
}

/* Override rank index for inside table */
.rankings-table .rank-index {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    top: -5px;
    left: -5px;
}

.rankings-table .rank-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.rankings-update-time {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

.country-flag {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.online-status-indicator {
    width: 8px;
    height: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* RANKINGS CLASS FILTER */
.rankings-class-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.rankings-class-filter li {
    display: inline-block;
}

.rankings-class-filter-selection {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
    color: var(--text-secondary);
    text-decoration: none;
}

.rankings-class-filter-selection:hover {
    background: rgba(77, 171, 247, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.rankings-class-filter-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* DOWNLOADS MODULE */
.download-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.download-card:hover {
    background: rgba(21, 21, 26, 0.9);
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.download-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.download-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-size {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-pink);
    background: rgba(255, 0, 128, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.btn-download {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.rankings-class-filter-selection:hover .rankings-class-filter-image {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.3);
}

.rankings-class-filter-grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.rankings-class-filter-selection:hover .rankings-class-filter-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

/* PAGE TITLE STYLE */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
}

.page-title span {
    background: linear-gradient(to right, var(--accent-blue), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.5);
}

/* MAIN CONTENT STYLE */
main {
    background: rgba(21, 21, 26, 0.6);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Ensure inner content respects radius */
main>* {
    position: relative;
    z-index: 1;
}

/* DATATABLES CUSTOMIZATION */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    margin: 0 2px;
    padding: 0.3em 0.8em;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    border: 1px solid var(--accent-blue) !important;
    background: rgba(77, 171, 247, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border: 1px solid var(--accent-blue) !important;
    background: var(--accent-blue) !important;
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    color: #666 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing {
    color: var(--text-secondary) !important;
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    float: right !important;
    text-align: right !important;
    padding-top: 0.25em;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    padding-top: 0.755em;
}

/* Clear floats */
.dataTables_wrapper::after {
    content: "";
    clear: both;
    display: table;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    margin-left: 5px;
}

/* NEWS MODULE STYLES */
.news-item {
    background: rgba(21, 21, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.news-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.news-item-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.news-item-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.news-item-title a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
}

.news-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Roboto Mono', monospace;
    /* Tech feel */
}

.news-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-item-meta i {
    color: var(--accent-blue);
}

.news-item-content {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.news-item-content p {
    margin-bottom: 1rem;
}

.news-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.news-readmore {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(77, 171, 247, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.news-readmore:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.4);
}

/* USERCP MODULE STYLES */


/* USERCP MODULE STYLES */

.usercp-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 0.9rem;
    /* Slightly smaller base font */
}

.usercp-table td,
.usercp-table th {
    padding: 0.75rem 0.5rem;
    /* Reduced horizontal padding */
    background: rgba(255, 255, 255, 0.03);
    border: none;
    vertical-align: middle;
    /* Ensure vertical alignment */
}

.usercp-table tr:first-child td {
    background: rgba(77, 171, 247, 0.1);
    color: var(--accent-blue);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    /* Consistent padding */
}

/* ... existing code ... */

.btn-action {
    display: inline-block;
    padding: 4px 15px;
    /* Reduced padding */
    font-size: 0.75rem;
    /* Smaller font */
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    /* Ensure minimum width */
    text-align: center;
}

.usercp-table tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-secondary);
}

.usercp-table tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: right;
    color: var(--text-primary);
}

.usercp-table img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}


.btn-action {
    display: inline-block;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    background: #fff;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.4);
    transform: translateY(-2px);
}

.usercp-character-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px;
    height: 100%;
}

.usercp-character-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.usercp-character-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.usercp-character-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 1rem;
    display: block;
    transition: var(--transition);
}

.usercp-character-card:hover .usercp-character-img {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
}

.usercp-character-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.usercp-character-level {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* UserCP Forms */
.usercp-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 15px !important;
    height: auto !important;
    transition: var(--transition) !important;
}

.usercp-input:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.1) !important;
}

.usercp-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.module-requirements p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-right: 5px;
}

/* UserCP Sidebar Links */
.user-panel-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.user-panel-links li {
    margin-bottom: 8px;
    padding: 0;
}

.user-panel-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.user-panel-links li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.user-panel-links li img {
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0.8;
    transition: var(--transition);
    max-width: 16px;
    height: auto;
}

.user-panel-links li a:hover img {
    opacity: 1;
}

/* INFO MODULE */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(21, 21, 26, 0.9);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* CUSTOM TABLES */
.custom-table {
    width: 100%;
    margin-bottom: 2rem;
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.custom-table table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.custom-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* RESPONSIVE VIDEO */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

/* ADDSTATS MODULE */
.addstats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.addstats-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.addstats-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    padding: 3px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(77, 171, 247, 0.3);
}

.addstats-charname {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.addstats-points {
    font-size: 1.1rem;
    color: var(--accent-pink);
    font-weight: 600;
    background: rgba(255, 0, 128, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.addstats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.addstats-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.addstats-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.addstats-item .stats-current {
    color: var(--accent-blue);
    font-weight: 600;
}

.addstats-item input {
    width: 100%;
}

.addstats-submit {
    text-align: center;
    margin-top: 1rem;
}

/* USERCP CHARACTER CARD (MyAccount) */
.usercp-character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.usercp-character-card {
    background: rgba(21, 21, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    /* Ensure full height in grid */
    transition: var(--transition);
}

.usercp-character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.usercp-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.usercp-card-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.usercp-card-title {
    display: flex;
    flex-direction: column;
}

.usercp-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usercp-card-name a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.usercp-card-name a:hover {
    color: var(--accent-blue);
}

.usercp-card-classname {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.usercp-card-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.usercp-card-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.stat-row.has-progress {
    flex-direction: column;
    gap: 4px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row b {
    color: #fff;
    font-weight: 600;
}

.usercp-card-actions .btn-action {
    display: block;
    text-align: center;
    width: 100%;
}