/* =========================================================
   VARIABLES
========================================================= */
:root {
    --sidebar-width: 300px;

    --bg-light: #f9f8f3;
    --bg-white: #ffffff;
    --bg-alt: #f1efe8;

    --bg-parchment: linear-gradient(135deg, #ffffff 0%, #f4f1ea 100%);
    --bg-stone: linear-gradient(to bottom, #f0eee4 0%, #e6e3d8 100%);

    --text-dark: #1a1f24;
    --text-muted: #5a6470;

    --gold-primary: #d4af37;
    --gold-bright: #fcd96a;
    --gold-dark: #b5952f;
    --gold-glow: rgba(212, 175, 55, 0.5);

    --bronze-primary: #b87333;
    --bronze-glow: rgba(88, 101, 242, 0.35);

    --aegean-blue: #142a45;
    --aegean-light: #2c5a8e;

    --hero-bg: #05070a;
    --nav-bg: #080b10;
    --nav-bg-soft: #10161f;

    --success-soft: rgba(46, 204, 113, 0.12);
    --success-border: rgba(46, 204, 113, 0.28);
    --success-text: #168447;

    --font-epic: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================================
   BASE STYLES
========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================================
   LAYOUT & APP SHELL
========================================================= */
.app-shell {
    min-height: 100vh;
}

.content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
}

.section-padding {
    padding: 7rem 0 6rem 0;
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 20%, transparent 100%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-right: 2px solid rgba(212, 175, 55, 0.25);
    box-shadow: 8px 0 35px rgba(0, 0, 0, 0.35);
    z-index: 1035;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 22px 22px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand .brand-title {
    font-family: var(--font-epic);
    font-size: 1.15rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 1.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-brand .brand-title span {
    color: var(--gold-primary);
}

.sidebar-mini-text {
    font-size: 0.78rem;
    color: #9ca3af;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.sidebar-menu-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.95;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d5d9e0;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid transparent;
    background: transparent;
}

.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(44, 90, 142, 0.12));
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    transform: translateX(2px);
}

.sidebar-status {
    margin-top: 26px;
    padding: 18px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 42, 69, 0.92), rgba(8, 11, 16, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-status .status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sidebar-status .title,
.sidebar-status .status-top .title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 12px;
}

.sidebar-status .status-top .title {
    margin-bottom: 0;
}

.sidebar-status .server-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #7df0a8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-status .server-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.75);
}

.sidebar-status .status-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.sidebar-status .status-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #cfd6e1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.sidebar-status .status-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-status .status-meta-item strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.sidebar-actions {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================================
   BUTTONS
========================================================= */
.sidebar-btn-row {
    display: flex;
    gap: 10px;
}

.btn-text-nav {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    color: #fff;
    transition: color 0.3s ease;
    cursor: pointer;
}

.btn-text-nav:hover {
    color: var(--gold-primary);
}

.btn-glow-gold,
.btn-glow-bronze,
.btn-ghost,
.btn-nav-register,
.btn-outline-myth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-nav-register {
    background: linear-gradient(to bottom, #1f4269, var(--aegean-blue));
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark);
    padding: 10px 18px;
    font-size: 0.88rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.btn-nav-register:hover {
    background: linear-gradient(to bottom, #2a588c, #1f4269);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 15px rgba(28, 59, 94, 0.6);
    border-color: var(--gold-bright);
}

.btn-glow-gold {
    background: linear-gradient(to bottom, var(--gold-bright), var(--gold-dark));
    color: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 5px 15px var(--gold-glow);
    border: 1px solid #7a631c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow-bronze {
    background: #5865f2;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 15px var(--bronze-glow);
    border: 1px solid #283192;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-outline-myth {
    color: var(--gold-dark);
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    padding: 12px 22px;
    border-radius: 8px;
    letter-spacing: 1.6px;
}

.btn-glow-gold:hover,
.btn-glow-bronze:hover,
.btn-outline-myth:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.15);
}

/* =========================================================
   MOBILE TOPBAR & OFFCANVAS
========================================================= */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent 60%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mobile-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mobile-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-brand-text {
    font-family: var(--font-epic);
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-brand-text span {
    color: var(--gold-primary);
}

.mobile-menu-btn {
    border: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.03);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
}

.offcanvas.offcanvas-start.sidebar-mobile {
    width: min(88vw, 320px);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 20%, transparent 100%),
        linear-gradient(180deg, #0a0f16 0%, #080b10 100%);
    border-right: 2px solid rgba(212, 175, 55, 0.25);
    color: #fff;
}

.offcanvas.sidebar-mobile .offcanvas-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding: 18px 18px 14px;
}

.offcanvas.sidebar-mobile .offcanvas-body {
    padding: 0 18px 22px;
}

.offcanvas.sidebar-mobile .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

/* =========================================================
   HERO (MAIN PAGE)
========================================================= */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(circle at center, rgba(20, 42, 69, 0.7) 0%, var(--hero-bg) 85%),
        url('/resources/images/Interface/slider-3.png') center/cover;
    color: #fff;
    border-bottom: 5px solid var(--gold-dark);
    box-shadow: inset 0 -20px 50px rgba(0, 0, 0, 0.8);
    padding: 70px 0 120px;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.glitch-effect {
    font-family: var(--font-epic);
    font-size: calc(3.3rem + 2.7vw);
    color: #f7d774;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(28, 59, 94, 0.8), 3px 3px 0 #000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.8;
    pointer-events: none;
}

.glitch-effect::before {
    color: var(--gold-bright);
    z-index: -1;
    animation: mythic-glitch 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    text-shadow: -2px 0 var(--gold-primary);
}

.glitch-effect::after {
    color: var(--aegean-light);
    z-index: -2;
    animation: mythic-glitch 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite reverse;
    text-shadow: 2px 0 var(--aegean-blue);
}

@keyframes mythic-glitch {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(0); }
    10% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(-2px, 2px); }
    20% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(2px, -2px); }
    30% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); transform: translate(0); }
    40%, 100% { clip-path: polygon(0 0, 0 0, 0 0, 0 0); transform: translate(0); }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: #f1f5f9;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    font-weight: 600;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
}

.status-bar {
    position: absolute;
    left: 50%;
    bottom: -52px;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
    background: var(--bg-parchment);
    border: 2px solid var(--gold-dark);
    border-top: 5px solid var(--gold-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    z-index: 10;
    overflow: hidden;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 15px;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.status-item:last-child {
    border-right: none;
}

.status-icon {
    font-size: 2.2rem;
    color: var(--gold-dark);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.status-info .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
}

.status-info .value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--aegean-blue);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* =========================================================
   HERO (PROFILE PAGE)
========================================================= */
.profile-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(8, 11, 16, 0.2), rgba(8, 11, 16, 0.88)),
        radial-gradient(circle at top center, rgba(44, 90, 142, 0.55) 0%, rgba(5, 7, 10, 0.85) 70%),
        url('/resources/images/Interface/slider-1.jpg') center/cover;
    border-bottom: 4px solid var(--gold-dark);
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent 24%, transparent 76%, rgba(212, 175, 55, 0.08)),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.profile-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 38px 0 26px;
}

.hero-stack {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-copy h1 {
    font-family: var(--font-epic);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-bright);
    letter-spacing: 2px;
    text-shadow: 0 0 22px rgba(28, 59, 94, 0.8), 2px 2px 0 #000;
    margin-bottom: 10px;
}

.hero-copy p {
    color: #e5e7eb;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

.hero-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stat-chip {
    min-width: 130px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.hero-stat-chip .label {
    display: block;
    font-size: 0.68rem;
    color: #cfd6e1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
    font-weight: 700;
}

.hero-stat-chip .value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: #fff;
    font-weight: 700;
}

/* =========================================================
   SECTIONS & PANELS
========================================================= */
.bg-alt-section {
    background: var(--bg-stone);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.02);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title span {
    color: var(--gold-dark);
}

.section-title::before,
.section-title::after {
    content: '❖';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.5rem;
    opacity: 0.8;
}

.section-title::before { left: -50px; }
.section-title::after { right: -50px; }

.title-left {
    left: 0;
    transform: none;
    text-align: left;
}

.title-left::before,
.title-left::after {
    display: none;
}

/* Profiles Compact Container */
.compact-container {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-parchment);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04), inset 0 0 20px rgba(212, 175, 55, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--gold-dark);
    transition: color 0.4s ease;
}

.feature-card:hover .icon-wrapper {
    background: var(--gold-primary);
    transform: rotateY(180deg);
}

.feature-card:hover .feature-icon {
    color: #fff;
    transform: rotateY(-180deg);
}

.feature-card h3 {
    color: var(--aegean-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Event Cards */
.event-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.event-img {
    height: 200px;
    background-color: var(--aegean-blue);
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 42, 69, 0.9), transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-img::after {
    opacity: 0.4;
}

.event-info {
    padding: 25px 20px;
    background: var(--bg-parchment);
    flex-grow: 1;
    border-top: 2px solid var(--gold-primary);
}

.event-info h3 {
    font-size: 1.25rem;
    color: var(--aegean-blue);
    margin-bottom: 10px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* System Requirements Box */
.sys-req-box {
    background: var(--bg-stone);
    padding: 45px 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--aegean-blue);
    position: relative;
}

.sys-req-box::before,
.sys-req-box::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--gold-dark);
    opacity: 0.5;
}

.sys-req-box::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.sys-req-box::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.sys-req-box h3 {
    color: var(--aegean-blue);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 2px;
}

.sys-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sys-req-list li {
    padding: 14px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sys-req-list li:last-child {
    border-bottom: none;
}

.sys-req-list strong {
    width: 130px;
    color: var(--gold-dark);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.sys-req-list span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Myth Panel (Profiles) */
.myth-panel {
    background: var(--bg-parchment);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 4px solid var(--gold-primary);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09), inset 0 0 18px rgba(212, 175, 55, 0.03);
    overflow: hidden;
    height: 100%;
}

.myth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 239, 232, 0.9));
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.myth-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.myth-panel-title .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1f4269, #142a45);
    color: var(--gold-primary);
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.08);
    flex-shrink: 0;
}

.myth-panel-title h2,
.myth-panel-title h3 {
    font-size: 1rem;
    letter-spacing: 1.3px;
    color: var(--aegean-blue);
}

.myth-panel-body {
    padding: 16px 18px 18px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-dark);
    white-space: nowrap;
}

.mini-badge.success {
    background: var(--success-soft);
    border-color: var(--success-border);
    color: var(--success-text);
}

/* Grids (Profiles) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-item {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.info-item .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item .value {
    display: block;
    font-weight: 700;
    color: var(--aegean-blue);
    font-size: 0.96rem;
    word-break: break-word;
}

.info-item.full {
    grid-column: 1 / -1;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    min-width: 0;
}

.resource-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.resource-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1d3859, #142a45);
    color: var(--gold-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.resource-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    line-height: 1.25;
}

.resource-value {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    color: var(--aegean-blue);
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.earning-card {
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
    min-width: 0;
}

.earning-card .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-weight: 700;
    margin-bottom: 6px;
}

.earning-card .value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--aegean-blue);
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    color: var(--aegean-blue);
    font-weight: 600;
    min-width: 0;
}

.achievement-item i {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   TABLES
========================================================= */
.table-custom {
    background: var(--bg-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.page-item.active .page-link {
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-dark) !important;
    color: #fff !important;
    box-shadow: 0 2px 5px var(--gold-glow);
}

.page-link {
    color: var(--aegean-blue) !important;
    background-color: var(--bg-light) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--gold-glow) !important;
    color: var(--aegean-blue) !important;
}

.table-custom table {
    margin-bottom: 0;
    width: 100% !important;
    border-collapse: collapse !important;
}

.table-custom thead {
    background: linear-gradient(to right, #142a45, #1c3b5e);
}

.table-custom th {
    color: #f4f6f9 !important;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    padding: 18px 20px !important;
    border-bottom: 3px solid var(--gold-dark) !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    opacity: 0.7;
    color: var(--gold-bright);
}

.table-custom td {
    padding: 18px 20px;
    color: var(--text-dark);
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    background: var(--bg-white);
    transition: background 0.2s ease;
}

.table-custom tbody tr:hover td {
    background: rgba(212, 175, 55, 0.05) !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.rank-icon {
    font-size: 1.3rem;
    margin-right: 8px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.rank-1 { color: #d4af37; font-weight: 800; font-size: 1.15rem; }
.rank-2 { color: #8ea0b3; font-weight: 700; font-size: 1.05rem; }
.rank-3 { color: #c06c23; font-weight: 700; font-size: 1.05rem; }

.table-custom .badge {
    padding: 8px 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =========================================================
   MODAL
========================================================= */
.mmo-modal .modal-content {
    background: var(--bg-parchment);
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.08);
}

.mmo-modal .modal-header {
    background: linear-gradient(to right, #142a45, #1c3b5e);
    border-bottom: 3px solid var(--gold-dark);
    padding: 20px 25px;
}

.mmo-modal .modal-title {
    color: var(--gold-bright);
    font-family: var(--font-epic);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
}

.mmo-modal .modal-body {
    padding: 30px 40px;
}

.mmo-modal .form-label {
    color: var(--aegean-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.mmo-modal .form-control {
    background: var(--bg-white);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--text-dark);
    border-radius: 6px;
    padding: 12px 15px;
    font-weight: 500;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.mmo-modal .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03), 0 0 8px var(--gold-glow);
    outline: none;
    background: #fff;
}

.mmo-modal .modal-switch-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--aegean-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mmo-modal .modal-switch-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background-color: var(--nav-bg);
    border-top: 3px solid var(--gold-primary);
    padding-top: 70px;
    color: #d1d5db;
    margin-top: 50px;
}

.footer-brand .logo {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    color: #9ca3af !important;
}

.footer-title {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 12px;
    display: inline-block;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #d1d5db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-bright);
    transform: translateX(8px);
    display: inline-block;
    text-shadow: 0 0 8px var(--gold-glow);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-primary);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.footer-bottom {
    background-color: #05070a;
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================================
   RESPONSIVE QUERIES
========================================================= */
@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 270px;
    }

    .glitch-effect {
        font-size: calc(2.8rem + 2.8vw);
        letter-spacing: 4px;
    }

    .earnings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .mobile-topbar {
        display: block;
    }

    #hero {
        min-height: auto;
        padding: 60px 0 0;
    }

    .status-bar {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: 32px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .status-item {
        border-right: 1px solid rgba(212, 175, 55, 0.3);
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding: 20px 15px;
    }

    .status-item:nth-child(even) {
        border-right: none;
    }

    .status-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .compact-container {
        margin-top: -34px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .earnings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .glitch-effect {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.08rem;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .section-title::before {
        left: -30px;
    }

    .section-title::after {
        right: -30px;
    }

    .mmo-modal .modal-body {
        padding: 25px 20px;
    }

    div.dataTables_wrapper div.dataTables_filter {
        text-align: left;
        margin-top: 15px;
    }

    .footer-brand .logo {
        font-size: 1.2rem !important;
    }

    .footer-brand .logo img {
        height: 32px !important;
    }

    .sys-req-box {
        padding: 32px 24px;
    }

    .hero-stack {
        align-items: stretch;
    }

    .hero-quick-stats {
        width: 100%;
    }

    .hero-stat-chip {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .info-grid,
    .resource-grid,
    .earnings-grid,
    .achievement-list {
        grid-template-columns: 1fr;
    }

    .myth-panel-header {
        padding: 14px 16px;
    }

    .myth-panel-body {
        padding: 14px 16px 16px;
    }

    .profile-hero-inner {
        padding: 34px 0 22px;
    }
}

@media (max-width: 576px) {
    .mobile-topbar-inner {
        padding: 12px 14px;
    }

    .mobile-brand-text {
        font-size: 0.86rem;
    }

    .glitch-effect {
        font-size: 2.15rem;
        letter-spacing: 1px;
    }

    .hero-content .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        padding: 0 10px;
    }

    .hero-content .d-flex a {
        width: 100%;
        justify-content: center;
    }

    .status-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 10px;
    }

    .sys-req-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sys-req-list strong {
        width: auto;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .hero-copy p {
        font-size: 0.92rem;
    }

    .hero-stat-chip {
        width: 100%;
        flex: 1 1 100%;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar a {
        width: 100%;
    }
}