﻿/* ============================================
   Amentes Online - Main Stylesheet
   Three-Column Layout with Sidebars
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-gold: #d4af37;
    --color-gold-light: #f4d03f;
    --color-gold-dark: #b8860b;
    --color-bronze: #8b7355;
    --color-parchment: #2a2218;
    --color-parchment-light: #3d3425;
    --color-emerald: #2e8b57;
    --color-text: #e8e8e8;
    --color-text-dark: #1a1510;
    --color-text-muted: #a0a0a0;

    /* Fonts */
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', Georgia, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Sizes */
    --sidebar-width: 220px;
    --nav-height: 60px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    cursor: url('imgs/ui/cursor-talisman-default.png'), auto;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Custom Cursors */
a,
button,
.btn,
.btn--primary,
.btn--secondary,
.nav__toggle,
.nav__close,
[role="button"],
[type="submit"],
[type="button"] {
    cursor: url('imgs/ui/cursor-talisman-attack-pointer.png'), pointer !important;
}

input,
textarea,
select {
    cursor: url('imgs/ui/cursor-input-pointer.png'), text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 12, 8, 0.9);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 5px;
    border: 2px solid rgba(15, 12, 8, 0.9);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--color-gold);
}

.gold {
    color: var(--color-gold);
}

/* ============================================
   Page Background
   ============================================ */
.page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.page-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ============================================
   Hero Section - NEW CLEAN VERSION
   Text on far left, Image on far right
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.95) 0%, rgba(20, 10, 5, 0.9) 100%);
    border: 2px solid var(--color-gold-dark);
    position: relative;
    min-height: 500px;
    margin-bottom: 20px;
}

/* Hero Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
}

/* Each Slide - FLEXBOX for simple left-right layout */
.hero-slide {
    display: none !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 40px 60px;
    min-height: 500px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    display: flex !important;
    opacity: 1;
}

/* ---- TEXT SIDE (LEFT) ---- */
.hero-slide .hero__text {
    flex: 0 0 400px;
    max-width: 400px;
    padding-right: 40px;
}

.hero__welcome {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 20px;
    word-wrap: break-word;
}

.hero__title .gold {
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero__desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---- IMAGE/VIDEO SIDE (RIGHT) ---- */
.hero-slide .hero__video {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0;
}

/* Image styling */
.hero-slide .hero__video img,
.hero-slide .hero__video img.hero__image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--color-gold-dark);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.2);
    margin-right: 20px;
}

/* Video styling */
.hero-slide .hero__video video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--color-gold-dark);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.2);
    margin-right: 20px;
}

/* ---- SLIDER CONTROLS - HIDDEN ---- */
.hero-slider__prev,
.hero-slider__next {
    display: none !important;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    background: var(--color-gold);
    color: #1a1510;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider__prev {
    left: 20px;
}

.hero-slider__next {
    right: 20px;
}

/* Slider Dots */
.hero-slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid var(--color-gold-dark);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-slider__dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.hero-slider__dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    width: 30px;
    border-radius: 6px;
}

/* ---- FALLBACK (No Slider) ---- */
.hero:not(:has(.hero-slider)) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    padding: 40px 60px;
}

.hero>.hero__text {
    flex: 0 0 400px;
    max-width: 400px;
    padding-right: 40px;
}

.hero>.hero__video {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero>.hero__video video,
.hero>.hero__video img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--color-gold-dark);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.2);
}

/* ============================================
   Navigation Bar
   ============================================ */
.nav {
    position: relative;
    border-top: 2px solid var(--color-gold-dark);
    border-bottom: 2px solid var(--color-gold-dark);
    z-index: 1000;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}

.nav__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.nav__menu {
    position: absolute;
    left: 165px;
    top: 67%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    list-style: none;
    gap: 0;
}

/* Auth Buttons (Login/Register) */
.nav__auth {
    position: absolute;
    right: 192px;
    top: 67%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.nav__auth .btn {
    padding: 6px 16px;
    font-size: 0.75rem;
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--color-gold-dark);
}

.welcome-user {
    font-size: 0.8rem;
    font-family: var(--font-display);
}

.auth-notification {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.4s ease-out;
}

.auth-notification.error {
    background: #2a1010;
    border: 2px solid #f44336;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.auth-notification.success {
    background: #102a10;
    border: 2px solid #4caf50;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav__item {
    position: relative;
}

.nav__link {
    display: block;
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.nav__link:hover {
    color: var(--color-gold-light);
    background: rgba(212, 175, 55, 0.15);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav__toggle {
    display: none;
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    cursor: pointer;
}

.nav__toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--color-gold);
    transition: all 0.3s;
}

/* Hide close button and mobile auth on desktop */
.nav__close {
    display: none;
}

.nav__item--mobile-auth {
    display: none;
}

/* ============================================
   Main Layout Wrapper (Everything inside)
   ============================================ */
.main-layout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navigation inside wrapper */
.main-layout-wrapper .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-height);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

/* Hero inside wrapper - uses styles from hero section above */

/* ============================================
   Main Layout (Three Columns)
   ============================================ */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: var(--spacing-sm);
}

/* ============================================
   Sidebars
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-widget {
    background: rgba(20, 15, 10, 0.95);
    border: 2px solid var(--color-gold-dark);
    border-radius: 8px;
    padding: var(--spacing-sm);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.sidebar-widget__header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.sidebar-widget__img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gold-dark);
}

.sidebar-widget__title {
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    color: var(--color-gold);
}

.sidebar-widget__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.sidebar-widget__subtext {
    font-size: 0.8rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-style: italic;
}

/* Sidebar Download Items */
.sidebar-download {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(30, 25, 20, 0.8);
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.sidebar-download:last-child {
    margin-bottom: 0;
}

.sidebar-download__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-download__icon {
    font-size: 1.1rem;
}

.sidebar-download__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
}

.sidebar-download__size {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.btn--full {
    width: 100%;
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.server-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
}

.server-status__dot.online {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.server-status__text {
    font-weight: 600;
    color: #4ade80;
}

/* Server Info List */
.server-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(30, 25, 20, 0.6);
    border-radius: 4px;
    border-left: 2px solid var(--color-gold-dark);
}

.server-info-item__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.server-info-item__value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
}

.server-stats {
    display: flex;
    justify-content: space-around;
}

.server-stat {
    text-align: center;
}

.server-stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: 700;
}

.server-stat__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Quick Links */
.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-links li {
    background: rgba(30, 25, 20, 0.6);
    border-radius: 4px;
    border-left: 2px solid var(--color-gold-dark);
    transition: all 0.3s ease;
}

.quick-links li:hover {
    background: rgba(40, 35, 25, 0.8);
    border-left-color: var(--color-gold);
    transform: translateX(3px);
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.quick-links a::before {
    content: "→";
    color: var(--color-gold-dark);
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.quick-links li:hover a::before {
    transform: translateX(3px);
    color: var(--color-gold);
}

.quick-links a:hover {
    color: var(--color-gold);
}

/* Top Players */
.top-players {
    list-style: none;
}

.top-player {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-player:last-child {
    border-bottom: none;
}

.top-player__rank-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.top-player__class {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.top-player__name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-player__level {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 600;
}

.top-player--gold .top-player__name {
    color: #ffd700;
}

.top-player--silver .top-player__name {
    color: #c0c0c0;
}

.top-player--bronze .top-player__name {
    color: #cd7f32;
}

.sidebar-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-top: var(--spacing-xs);
}

/* ============================================
   Main Content (Parchment)
   ============================================ */
.main-content {
    min-width: 0;
}

.parchment {
    position: relative;
    background: rgba(25, 20, 15, 0.95);
    border: 3px solid var(--color-gold-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.parchment__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    pointer-events: none;
}

.parchment__content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Divider */
.divider {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.divider__img {
    max-width: 300px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Section */
.section {
    margin-bottom: var(--spacing-md);
}

.section__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.content-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Content Card */
.content-card {
    background: rgba(30, 25, 18, 0.9);
    border: 1px solid var(--color-gold-dark);
    border-radius: 8px;
    padding: var(--spacing-sm);
    transition: all 0.3s;
}

.content-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.content-card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.content-card__title {
    font-size: 1rem;
    margin: var(--spacing-xs) 0;
}

.content-card__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.content-card__link {
    font-size: 0.8rem;
    font-family: var(--font-display);
}

/* Info Box */
.info-box {
    text-align: center;
    background: rgba(30, 25, 18, 0.9);
    border: 1px solid var(--color-gold-dark);
    border-radius: 8px;
    padding: var(--spacing-sm);
    transition: all 0.3s;
}

.info-box:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.info-box__icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.info-box__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
    font-weight: 700;
}

.info-box__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Download Box */
.download-box {
    text-align: center;
    background: rgba(30, 25, 18, 0.9);
    border: 2px solid var(--color-gold-dark);
    border-radius: 10px;
    padding: var(--spacing-md);
    transition: all 0.3s;
}

.download-box:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.download-box__icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.download-box__title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.download-box__size {
    display: block;
    font-size: 0.85rem;
    color: var(--color-emerald);
    margin-bottom: var(--spacing-xs);
}

.download-box__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Register Form */
.register-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
}

.form-group input {
    padding: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--color-gold-dark);
    border-radius: 5px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder {
    color: #666;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #1a1510;
    border-color: var(--color-gold);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    color: #1a1510;
}

.btn--secondary {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn--secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn--discord {
    background: #5865F2;
    color: white;
    border-color: #5865F2;
    width: 100%;
}

.btn--discord:hover {
    background: #4752C4;
    color: white;
}

.btn--donate {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border-color: #ff6b6b;
    width: 100%;
}

.btn--donate:hover {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    color: white;
}

.btn--vote {
    background: linear-gradient(135deg, var(--color-emerald) 0%, #1f6b42 100%);
    color: white;
    border-color: var(--color-emerald);
    width: 100%;
}

.btn--vote:hover {
    box-shadow: 0 0 15px rgba(46, 139, 87, 0.5);
    color: white;
}

.btn--full {
    width: 100%;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal__container {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(180deg, rgba(25, 20, 15, 0.98) 0%, rgba(15, 12, 8, 0.99) 100%);
    border: 2px solid var(--color-gold-dark);
    border-radius: 10px;
    padding: var(--spacing-md);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
}

.modal.active .modal__container {
    transform: scale(1) translateY(0);
}

.modal__header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.modal__header-img {
    max-width: 200px;
    margin-bottom: 5px;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    background: rgba(30, 25, 20, 0.8);
    border: 1px solid var(--color-gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal__close:hover {
    background: var(--color-gold);
    color: #1a1510;
    border-color: var(--color-gold);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 10px 12px;
    background: rgba(15, 12, 8, 0.9);
    border: 1px solid var(--color-gold-dark);
    border-radius: 5px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder {
    color: rgba(200, 180, 150, 0.4);
}

.form-group--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Form Row for 2-column layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

/* Select Dropdown */
.form-group select {
    padding: 10px 12px;
    background: rgba(15, 12, 8, 0.9);
    border: 1px solid var(--color-gold-dark);
    border-radius: 5px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group select option {
    background: #1a1510;
    color: var(--color-text);
}

/* Wide Modal Container */
.modal__container--wide {
    max-width: 550px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-gold);
}

.form-link {
    font-size: 0.8rem;
    color: var(--color-gold);
}

.form-link:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

.modal__footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, rgba(15, 12, 8, 0.98) 0%, rgba(8, 6, 4, 0.99) 100%);
    border-top: 2px solid var(--color-gold-dark);
    padding: 0;
    margin-top: var(--spacing-md);
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    /* max-width: 1400px; - Removed to inherit from wrapper */
    /* margin: 0 auto; - Removed */
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.footer__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-gold-dark);
}

/* Social Icons */
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: var(--spacing-sm);
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 25, 20, 0.8);
    border: 1px solid var(--color-gold-dark);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.social-icon--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.social-icon--discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
}

.social-icon--youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

/* Footer Links */
.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer__links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

/* Payment Badges */
.footer__payment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    padding: 6px 12px;
    background: rgba(30, 25, 20, 0.8);
    border: 1px solid var(--color-gold-dark);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    /* max-width: 1400px; - Removed */
    /* margin: 0 auto; - Removed */
}

.footer__hosting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.hosting-link {
    display: flex;
    align-items: center;
}

.hosting-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.hosting-logo:hover {
    opacity: 1;
}

.footer__copyright {
    color: #666;
    font-size: 0.8rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 180px 1fr 180px;
    }

    .content-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smaller nav items before mobile breakpoint */
@media (max-width: 1160px) and (min-width: 1026px) {
    .nav__link {
        padding: 4px 8px;
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .nav__auth .btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .nav__menu {
        left: 120px;
        top: 72%;
    }

    .nav__auth {
        right: 120px;
        top: 72%;
    }
}

@media (max-width: 1025px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: block;
        order: 2;
    }

    .sidebar--left {
        order: 2;
    }

    .sidebar--right {
        order: 3;
    }

    .main-content {
        order: 1;
    }

    /* Center sidebar buttons on mobile */
    .sidebar-widget {
        text-align: center;
    }

    .sidebar-widget .btn {
        display: block;
        margin: 0 auto;
        max-width: 250px;
    }

    .sidebar-download {
        align-items: center;
    }

    .sidebar-download .btn {
        max-width: 200px;
    }

    /* Hide nav background image on mobile */
    .nav__bg {
        display: none;
    }

    /* Hide desktop auth buttons */
    .nav__auth {
        display: none;
    }

    /* Mobile menu fullscreen */
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, rgba(15, 10, 5, 0.98) 0%, rgba(25, 18, 10, 0.98) 100%);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        padding: 40px 20px;
        gap: 10px;
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    /* Close button */
    .nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        color: var(--color-gold);
        background: rgba(20, 15, 10, 0.9);
        border: 2px solid var(--color-gold-dark);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .nav__close:hover {
        background: var(--color-gold);
        color: #1a1510;
    }

    .nav__menu .nav__item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 12px 20px;
        border: 1px solid var(--color-gold-dark);
        border-radius: 5px;
        background: rgba(20, 15, 10, 0.9);
        display: block;
        width: 100%;
    }

    .nav__item--mobile-auth {
        display: block;
    }

    .nav__item--mobile-lang {
        display: block !important;
    }

    .nav__link--login {
        border-color: var(--color-gold);
    }

    .nav__link--register {
        background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
        color: #1a1510;
        border-color: var(--color-gold);
    }

    .nav__toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .content-grid--2col,
    .content-grid--3col {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Profile & Member Dashboard Styles
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.char-selector {
    background: rgba(26, 21, 16, 0.95);
    border: 1px solid var(--color-gold-dark);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.account-menu {
    margin-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 20px;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.03);
}

.account-link:hover,
.account-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
    border-color: var(--color-gold-dark);
}

.char-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
}

.char-card:hover {
    border-color: var(--color-gold-dark);
    background: rgba(212, 175, 55, 0.05);
}

.char-card.active {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.char-avatar-mini {
    width: 40px;
    height: 40px;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* In-game Styled Frame */
.ingame-frame {
    background: linear-gradient(to bottom, #2a221b, #15100a);
    border: 3px double var(--color-gold-dark);
    border-radius: 12px;
    padding: 0;
    position: relative;
    min-height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.frame-header {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #3d3125;
}

.frame-title {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 4px #000;
}

.frame-content {
    padding: 30px;
    display: none;
}

.frame-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.pk-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #4a0000;
    border: 1px solid #ff4444;
    color: #ff4444;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ============================================
   Character Profiles & Dashboards
   ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    width: 100%;
}

.char-model-frame {
    width: 440px;
    max-width: 100%;
    height: 540px;
    background: radial-gradient(circle at center, #2a2118 0%, #000 85%);
    border: 2px solid var(--color-gold-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
    margin: 0 auto;
}

.char-portrait {
    width: 100%;
    height: 96%;
    object-fit: contain;
    z-index: 1;
    margin-top: -20px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 1));
}

.eq-column-left {
    position: absolute;
    left: 30px;
    top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.eq-column-right {
    position: absolute;
    right: 30px;
    top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.bottom-eq-row {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.char-name-overlay {
    position: absolute;
    bottom: 35px;
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-shadow: 0 2px 4px #000;
    letter-spacing: 1px;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    text-align: center;
    padding: 20px 0 10px 0;
}

.char-class-badge {
    position: absolute;
    bottom: 15px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 3px 15px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 11;
}

.character-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.info-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-gold-dark);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.stats-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.section-header {
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    /* Slightly more compact padding */
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.stat-row:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-gold-dark);
}

.stat-label {
    color: #aaa;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.bar-container {
    margin-bottom: 4px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.65rem;
}

.game-bar {
    height: 10px;
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.bar-hp {
    background: linear-gradient(to right, #8b0000, #ff4444);
}

.bar-mp {
    background: linear-gradient(to right, #004d40, #00bfa5);
}

.bar-exp {
    background: linear-gradient(to right, #4a148c, #7b1fa2);
}

.item-tag {
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    width: 48px;
    height: 48px;
}

.item-tag:hover {
    transform: translateY(-2px);
    z-index: 2000;
}

.item-icon-box {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-icon {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.enhance-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(to bottom, #fbbf24, #d97706);
    color: #000;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: bold;
    border: 1px solid #fde047;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.item-tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-gold-dark);
    border-radius: 4px;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    text-align: left;
    padding: 10px;
}

.item-tag:hover .item-tooltip {
    display: block;
}

.tooltip-title {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 5px;
    border-bottom: 1px solid #444;
}

.tooltip-combine {
    color: #fff;
    font-size: 0.75rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.tooltip-desc {
    color: #00bfff;
    font-size: 0.75rem;
    line-height: 1.2;
}

.t-gold {
    color: #fbbf24 !important;
}

.t-blue {
    color: #60a5fa !important;
}

.t-green {
    color: #4ade80 !important;
}

.t-white {
    color: #00ff00 !important;
}

.equipment-container {
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 12px;
    padding: 5px;
    position: relative;
    overflow: visible;
    /* Restore tooltips */
}

/* ============================================
   Mobile Responsiveness Fixes
   ============================================ */

/* Generic Table Container */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.table-container::-webkit-scrollbar {
    height: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 3px;
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar--left,
    .sidebar--right {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 1150px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    .ingame-frame {
        width: 100% !important;
        max-width: 100vw;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        justify-items: center !important;
        width: 100% !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 992px) {

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    .ingame-frame {
        width: 100% !important;
        max-width: 100vw;
    }

    .char-selector {
        order: 2;
    }

    .ingame-frame {
        order: 1;
    }

    .profile-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 20px;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .parchment__content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .char-model-frame {
        transform: scale(0.95);
        transform-origin: center top;
        margin: 0 auto -20px auto;
    }

    .stats-info-grid {
        grid-template-columns: 1fr;
    }

    .stats-row-group {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .info-section {
        padding: 12px;
        margin: 0 auto 20px auto !important;
        width: 100%;
        max-width: 320px;
        /* Narrower per user request */
    }

    .equipment-container {
        margin: 0 auto !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .game-bar {
        height: 8px;
        /* Slightly thinner bars */
    }

    .bar-label {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }

    .section-header {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .wiki-page__content {
        grid-template-columns: 1fr;
    }

    .wiki-page__media {
        order: -1;
    }

    .wiki-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .main-layout-wrapper {
        padding: 0 10px;
    }

    .parchment__content {
        padding: 40px 15px !important;
    }

    .section__title {
        font-size: 1.5rem;
    }

    /* Navigation Fixes */
    .nav__menu {
        padding-top: 80px;
    }

    .nav__menu.active {
        display: flex !important;
    }

    /* Hero Slider Mobile Fixes */
    .hero {
        min-height: auto !important;
        min-height: 400px !important;
    }

    .hero-slider {
        min-height: auto !important;
        min-height: 400px !important;
    }

    .hero-slide {
        flex-direction: column !important;
        padding: 30px 15px !important;
        text-align: center;
        min-height: auto !important;
    }

    .hero-slide .hero__text {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }

    .hero-slide .hero__video {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-slide .hero__video img,
    .hero-slide .hero__video img.hero__image,
    .hero-slide .hero__video video {
        width: 100% !important;
        max-width: 320px !important;
        /* Smaller on mobile */
        min-height: auto !important;
        max-height: 250px !important;
        /* Limit height */
        margin-right: 0 !important;
    }

    .hero__title {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
    }

    .hero__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 15px !important;
        font-size: 0.9rem !important;
    }

    .hero__buttons {
        justify-content: center;
        gap: 10px !important;
    }

    .hero-slider__dots {
        bottom: 10px !important;
    }

    /* Footer Mobile Fixes */
    .footer__top {
        grid-template-columns: 1fr !important;
        /* Single column for better fit */
        gap: 20px;
        text-align: center;
    }

    .footer__title {
        border-bottom: 1px solid rgba(212, 175, 55, 0.4);
        display: inline-block;
        margin: 0 auto 15px auto;
        padding-bottom: 5px;
    }

    .footer__payment {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__logo {
        text-align: center;
        display: block;
    }

    .footer__tagline {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 15px;
    }

    .footer__payment {
        justify-content: center;
    }

    /* Rankings Table Mobile */
    .ranking-table th:nth-child(4),
    .ranking-table td:nth-child(4),
    .ranking-table th:nth-child(6),
    .ranking-table td:nth-child(6) {
        display: none;
        /* Hide Class and HP on mobile, use icons instead */
    }

    /* Sub Tabs (Wiki) */
    .sub-tabs-container {
        padding-bottom: 5px;
        margin-bottom: 20px;
    }

    .sub-tab-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Profile Specific */
    .char-card {
        padding: 10px;
    }

    .ingame-frame {
        padding: 10px 0;
    }

    .frame-content {
        padding: 10px !important;
        overflow: visible;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center;
        margin: 0 auto !important;
    }

    .char-model-frame {
        transform: scale(0.85);
        transform-origin: center top;
        margin: 0 auto -60px auto;
    }

    .eq-column-left {
        left: 10px;
    }

    .eq-column-right {
        right: 10px;
    }

    .bottom-eq-row {
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .footer__top {
        grid-template-columns: 1fr !important;
    }

    /* Items Shop Mobile Fixes */
    .items-grid {
        grid-template-columns: 1fr !important;
    }

    .shop-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-balance {
        width: 100%;
        justify-content: center;
    }

    .shop-item {
        grid-template-columns: 80px 1fr;
    }

    .item-icon-box {
        width: 80px;
        height: 80px;
    }

    .char-model-frame {
        transform: scale(0.7);
        transform-origin: center top;
        margin: 0 auto -140px auto;
    }

    /* Equipment Tags sizing for small phones */
    .item-tag {
        width: 44px;
        height: 44px;
        padding: 2px;
    }

    .item-icon-box {
        width: 100%;
        height: 100%;
    }

    .item-icon {
        width: 36px;
        height: 36px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer__hosting img {
        max-width: 120px;
    }

    .frame-title {
        font-size: 1.4rem;
    }

    /* Hide Guild in Rankings too if very small */
    .ranking-table th:nth-child(5),
    .ranking-table td:nth-child(5) {
        display: none;
    }
}

/* ============================================
   SERVER INFORMATION - PREMIUM REDESIGN
   ============================================ */

/* Main Grid Container */
.content-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* 3 Columns for Server Info (Desktop) */
.content-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive Breakpoints for Grid */
@media (max-width: 900px) {
    .content-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .content-grid--3col {
        grid-template-columns: 1fr;
    }
}

/* Info Box Card Styling */
.info-box {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 25, 20, 0.9), rgba(10, 5, 0, 0.95));
    border: 1px solid rgba(184, 134, 11, 0.3);
    /* Subtle Gold Border */
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Hover Effect: Lift & Glow */
.info-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 0 15px rgba(212, 175, 55, 0.1);
    background: linear-gradient(145deg, rgba(40, 35, 25, 0.95), rgba(20, 15, 5, 0.98));
}

/* Icon Styling */
.info-box__icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.info-box:hover .info-box__icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Value (Number) Styling */
.info-box__value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #f0f0f0;
    margin-bottom: 5px;
    line-height: 1;
    background: linear-gradient(to bottom, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Special styling for 'Golden' text */
.info-box__value--golden {
    background: linear-gradient(to bottom, #ffd700 0%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

/* Label Styling */
.info-box__label {
    font-size: 0.85rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    width: 80%;
    transition: color 0.3s;
}

.info-box:hover .info-box__label {
    color: var(--color-gold);
    border-top-color: var(--color-gold-dark);
}

/* Decorative corner accents */
.info-box::before,
.info-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.info-box::before {
    top: 0;
    left: 0;
    border-top-color: var(--color-gold);
    border-left-color: var(--color-gold);
    border-top-left-radius: 8px;
}

.info-box::after {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--color-gold);
    border-right-color: var(--color-gold);
    border-bottom-right-radius: 8px;
}

.info-box:hover::before,
.info-box:hover::after {
    opacity: 1;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}