/* ==========================================================================
   TrinityMU Template  —  WebEngine CMS
   ========================================================================== */

/* ── 1. CSS Custom Properties ─────────────────────────────────────────────── */
:root {
    --mu-bg:           #080c14;
    --mu-bg-alt:       #0a0e18;
    --mu-bg-card:      #0d1020;
    --mu-bg-card-alt:  #0f1225;

    --mu-gold:         #c9952c;
    --mu-gold-light:   #e8b84b;
    --mu-gold-pale:    #f0d080;
    --mu-gold-dark:    #8b6520;
    --mu-gold-glow:    rgba(201, 149, 44, 0.12);
    --mu-gold-border:  rgba(201, 149, 44, 0.22);
    --mu-gold-border2: rgba(201, 149, 44, 0.4);

    --mu-online:       #4caf50;
    --mu-online-dim:   rgba(76, 175, 80, 0.25);

    --mu-text:         #c0b8a8;
    --mu-text-bright:  #e0d8c8;
    --mu-text-muted:   #58555a;
    --mu-text-dim:     #888;

    --mu-radius:       6px;
    --mu-radius-lg:    10px;
    --mu-transition:   0.22s ease;

    --mu-nav-h:        62px;
    --mu-bar-h:        38px;
}

/* ── 2. Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent any overflowing fixed/wide element from expanding scroll width */
}

body {
    background-color: var(--mu-bg);
    background-image:
        radial-gradient(ellipse 80% 40% at 50% -20%, rgba(201,149,44,.06) 0%, transparent 60%),
        linear-gradient(rgba(201,149,44,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,149,44,.018) 1px, transparent 1px);
    background-size: 100% 100%, 55px 55px, 55px 55px;
    color: var(--mu-text);
    font-family: 'Rajdhani', 'PT Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    padding-top: calc(var(--mu-nav-h) + var(--mu-bar-h));
    min-height: 100vh;
}

a               { color: var(--mu-gold);     text-decoration: none; transition: color var(--mu-transition); }
a:hover         { color: var(--mu-gold-light); text-decoration: none; }
a:focus         { outline: 2px solid var(--mu-gold-border2); outline-offset: 2px; }
p               { margin: 0 0 12px; }
hr              { border-top: 1px solid var(--mu-gold-border); margin: 20px 0; }
strong, b       { color: var(--mu-text-bright); }
code, pre       { background: rgba(0,0,0,.4); border: 1px solid var(--mu-gold-border); color: var(--mu-gold-pale); border-radius: 4px; }
pre             { padding: 12px; }
img             { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--mu-text-bright);
    letter-spacing: .4px;
    margin-top: 0;
}

/* ── 3. Navigation bar ────────────────────────────────────────────────────── */
.mu-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--mu-nav-h);
    z-index: 1000;
    background: rgba(5, 7, 14, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mu-gold-border);
    transition: background var(--mu-transition), box-shadow var(--mu-transition);
}
.mu-navbar--scrolled {
    background: rgba(4, 6, 12, 0.97);
    border-bottom-color: var(--mu-gold-border2);
    box-shadow: 0 2px 20px rgba(0,0,0,.7);
}

.mu-navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 16px;
}

/* Logo */
.mu-navbar-logo         { display: flex; align-items: center; flex-shrink: 0; }
.mu-navbar-logo img     { height: 42px; width: auto; transition: filter var(--mu-transition); filter: drop-shadow(0 0 6px rgba(201,149,44,.35)); }
.mu-navbar-logo:hover img { filter: drop-shadow(0 0 12px rgba(201,149,44,.65)); }
.mu-navbar-logo-text    { font-family: 'Cinzel', serif; color: var(--mu-gold); font-size: 18px; letter-spacing: 1px; }

/* Nav list */
.mu-navbar-menu         { flex: 1; overflow: hidden; }
.mu-nav-list            { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: wrap; }
.mu-nav-item a {
    display: block;
    padding: 7px 13px;
    color: #a09890;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .9px;
    text-transform: uppercase;
    border-radius: var(--mu-radius);
    border: 1px solid transparent;
    transition: all var(--mu-transition);
}
.mu-nav-item a:hover {
    color: var(--mu-gold-light);
    background: var(--mu-gold-glow);
    border-color: var(--mu-gold-border);
}

/* Right side */
.mu-navbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mu-auth-btns    { display: flex; gap: 6px; }

/* ── Custom buttons ─────────────────────────────────────────────────────── */
.mu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: var(--mu-radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    border: 1px solid var(--mu-gold-border);
    color: var(--mu-text);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--mu-transition);
    line-height: 1;
}
.mu-btn:hover, .mu-btn:focus {
    color: var(--mu-gold-light);
    border-color: var(--mu-gold-border2);
    background: var(--mu-gold-glow);
    outline: none;
}
.mu-btn-sm   { padding: 5px 11px; font-size: 11px; }
.mu-btn-gold {
    background: linear-gradient(135deg, #8a5c18, var(--mu-gold));
    border-color: var(--mu-gold-dark);
    color: #fff8e0;
}
.mu-btn-gold:hover {
    background: linear-gradient(135deg, var(--mu-gold-dark), var(--mu-gold-light));
    border-color: var(--mu-gold);
    color: #fff;
    box-shadow: 0 0 14px rgba(201,149,44,.38);
}
.mu-btn-ghost { background: rgba(255,255,255,.04); }
.mu-btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--mu-text-bright); border-color: rgba(255,255,255,.18); }

/* Hamburger */
.mu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    cursor: pointer;
    margin-left: auto;
}
.mu-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--mu-gold);
    transition: all var(--mu-transition);
}
.mu-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.mu-hamburger.is-open span:nth-child(2) { opacity: 0;                                 }
.mu-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 4. Server stats bar ──────────────────────────────────────────────────── */
.mu-statsbar {
    position: fixed;
    top: var(--mu-nav-h);
    inset: var(--mu-nav-h) 0 auto 0;
    height: var(--mu-bar-h);
    z-index: 999;
    background: rgba(8, 10, 18, 0.97);
    border-bottom: 1px solid rgba(201,149,44,.1);
    overflow: hidden;
}
.mu-statsbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 0;
}
.mu-statsbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
}
.mu-statsbar-item .fa   { color: var(--mu-gold); font-size: 10px; }
.mu-statsbar-label      { color: var(--mu-text-muted); }
.mu-statsbar-val        { color: var(--mu-gold-light); font-weight: 600; }
.mu-date-dim            { color: var(--mu-text-muted); font-size: 10px; }
.mu-statsbar-sep        { border-left: 1px solid rgba(201,149,44,.14); }
.mu-statsbar-right      { margin-left: auto; border-left: 1px solid rgba(201,149,44,.14); }
.mu-online-dot          { color: var(--mu-online) !important; font-size: 8px !important; animation: mu-pulse 2s ease-in-out infinite; }

/* Online bar inside statsbar */
.mu-bar {
    width: 70px;
    height: 5px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 2px;
}
.mu-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, var(--mu-online));
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: width 1.2s ease;
}
.mu-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0 -100% 0 auto;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    animation: mu-shimmer 2.5s linear infinite;
}

/* ── 5. Hero banner ───────────────────────────────────────────────────────── */
.mu-hero {
    position: relative;
    width: 100%;
    padding: 80px 20px 72px;
    text-align: center;
    overflow: hidden;
    /* Layered background: central radial glow + faint top glow */
    background:
        radial-gradient(ellipse 70% 55% at 50% 110%, rgba(201,149,44,.10) 0%, transparent 65%),
        radial-gradient(ellipse 55% 50% at 50% -10%, rgba(201,149,44,.06) 0%, transparent 60%);
    border-bottom: 1px solid rgba(201,149,44,.13);
}

/* Bottom fade line */
.mu-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--mu-gold-border2) 35%, var(--mu-gold-border2) 65%, transparent 100%);
    pointer-events: none;
}

/* Corner accent brackets */
.mu-hero-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
}
.mu-hero-corner--tl { top: 20px;  left: 24px;  border-top: 1px solid var(--mu-gold-border2); border-left: 1px solid var(--mu-gold-border2); }
.mu-hero-corner--tr { top: 20px;  right: 24px; border-top: 1px solid var(--mu-gold-border2); border-right: 1px solid var(--mu-gold-border2); }
.mu-hero-corner--bl { bottom: 20px; left: 24px;  border-bottom: 1px solid var(--mu-gold-border2); border-left: 1px solid var(--mu-gold-border2); }
.mu-hero-corner--br { bottom: 20px; right: 24px; border-bottom: 1px solid var(--mu-gold-border2); border-right: 1px solid var(--mu-gold-border2); }

.mu-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

/* Small label above title */
.mu-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(201,149,44,.08);
    border: 1px solid var(--mu-gold-border2);
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mu-gold);
    margin-bottom: 22px;
}
.mu-hero-badge .fa { font-size: 10px; opacity: .8; }

/* Main heading */
.mu-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(30px, 5.5vw, 58px);
    font-weight: 700;
    color: var(--mu-text-bright);
    letter-spacing: 2px;
    line-height: 1.12;
    margin: 0 0 18px;
    text-shadow:
        0 0 60px rgba(201,149,44,.22),
        0 0 120px rgba(201,149,44,.10),
        0 3px 10px rgba(0,0,0,.9);
}

/* Sub-description */
.mu-hero-desc {
    font-size: 15px;
    color: var(--mu-text-muted);
    margin: 0 0 34px;
    letter-spacing: .3px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* CTA buttons */
.mu-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 38px;
}
.mu-btn-hero {
    padding: 11px 30px;
    font-size: 13px;
    letter-spacing: .9px;
}

/* Info chips row */
.mu-hero-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.mu-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 15px;
    background: rgba(201,149,44,.05);
    border: 1px solid var(--mu-gold-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--mu-text-muted);
    transition: all var(--mu-transition);
}
.mu-hero-chip:hover { border-color: var(--mu-gold-border2); background: rgba(201,149,44,.09); }
.mu-hero-chip .fa { font-size: 9px; color: var(--mu-gold); }
.mu-hero-chip .mu-online-dot { color: var(--mu-online) !important; }
.mu-hero-chip span { color: var(--mu-text); }

/* Responsive */
@media (max-width: 768px) {
    .mu-hero { padding: 52px 16px 48px; }
    .mu-hero-corner { display: none; }
    .mu-hero-desc { font-size: 14px; }
    .mu-hero-chips { gap: 7px; }
    .mu-hero-chip { font-size: 11px; padding: 4px 11px; }
}
@media (max-width: 480px) {
    .mu-hero-actions { flex-direction: column; align-items: center; }
    .mu-btn-hero { width: 100%; max-width: 260px; justify-content: center; }
}

/* ── 6. Main content area (below hero) ────────────────────────────────────── */
.mu-main {
    min-height: calc(100vh - var(--mu-nav-h) - var(--mu-bar-h) - 260px);
    padding: 28px 0 60px;
}
.mu-container {
    max-width: 1240px;
    width: auto; /* Bootstrap 3 sets fixed width via grid.less; override so max-width controls */
}
.mu-content-area { /* wrapper so module content has consistent spacing */ }

/* ── 6. Panels (Bootstrap .panel overrides) ───────────────────────────────── */
.panel {
    background: var(--mu-bg-card);
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius-lg);
    box-shadow: 0 4px 28px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.02);
    margin-bottom: 20px;
    transition: border-color var(--mu-transition), box-shadow var(--mu-transition);
}
.panel:hover { border-color: var(--mu-gold-border2); }

.panel-heading {
    background: linear-gradient(180deg, rgba(201,149,44,.08) 0%, rgba(201,149,44,.03) 100%);
    border-bottom: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius-lg) var(--mu-radius-lg) 0 0 !important;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.panel-title {
    color: var(--mu-gold) !important;
    font-family: 'Cinzel', serif;
    font-size: 12.5px !important;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}
.panel-title .fa, .panel-title .fas, .panel-title .fab { font-size: 11px; opacity: .85; }
.panel-body  { padding: 18px; color: var(--mu-text); }
.panel-footer { background: rgba(0,0,0,.2); border-top: 1px solid var(--mu-gold-border); padding: 10px 16px; border-radius: 0 0 var(--mu-radius-lg) var(--mu-radius-lg); }
.no-padding  { padding: 0 !important; }

/* Sidebar-specific panels */
.mu-panel-sidebar { margin-bottom: 14px; }

/* ── 7. Tables ────────────────────────────────────────────────────────────── */
.table {
    color: var(--mu-text);
    margin-bottom: 0;
    width: 100%;
}
.table > thead > tr > th {
    background: rgba(201,149,44,.07);
    border-bottom: 1px solid var(--mu-gold-border) !important;
    color: var(--mu-gold);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    vertical-align: middle;
    font-weight: 600;
}
.table > tbody > tr > td {
    border-top: 1px solid rgba(255,255,255,.035) !important;
    padding: 10px 14px;
    vertical-align: middle;
}
/* Reset Bootstrap's hard-coded light TR backgrounds */
.table > tbody > tr,
.table > thead > tr,
.table > tfoot > tr { background-color: transparent !important; }
.table > tbody > tr:hover,
.table > tbody > tr:hover > td  { background: rgba(201,149,44,.045); }
/* Striped rows — must target TR (not just TD) to beat Bootstrap specificity */
.table-striped > tbody > tr:nth-of-type(odd)      { background-color: rgba(201,149,44,.04) !important; }
.table-striped > tbody > tr:nth-of-type(even)     { background-color: transparent !important; }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: transparent; }
.table-hover > tbody > tr:hover                    { background-color: rgba(201,149,44,.07) !important; }
.table-bordered { border: 1px solid var(--mu-gold-border) !important; }
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td { border: 1px solid rgba(255,255,255,.05) !important; }

/* Sidebar info table */
.mu-info-table > tbody > tr > td {
    padding: 8px 16px;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.03) !important;
}
.mu-info-table > tbody > tr > td:last-child { color: var(--mu-text-bright); text-align: right; font-weight: 600; }
.mu-info-bold  { color: var(--mu-text-bright) !important; font-weight: 700 !important; }
.mu-info-online { color: var(--mu-online) !important; font-weight: 700 !important; }

/* ── 8. Forms ─────────────────────────────────────────────────────────────── */
.form-control {
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(201,149,44,.2);
    border-radius: var(--mu-radius);
    color: var(--mu-text-bright);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    height: 38px;
    transition: border-color var(--mu-transition), box-shadow var(--mu-transition);
}
.form-control:focus {
    background: rgba(0,0,0,.55);
    border-color: var(--mu-gold);
    box-shadow: 0 0 0 3px rgba(201,149,44,.14);
    color: var(--mu-text-bright);
    outline: none;
}
.form-control::-webkit-input-placeholder { color: var(--mu-text-muted); }
.form-control:-ms-input-placeholder      { color: var(--mu-text-muted); }
.form-control::placeholder               { color: var(--mu-text-muted); }
textarea.form-control { height: auto; min-height: 90px; }

.control-label { color: var(--mu-text); font-weight: 500; letter-spacing: .3px; }
.form-group    { margin-bottom: 14px; }
.help-block    { color: var(--mu-text-muted); font-size: 12px; }

.input-group-addon {
    background: rgba(201,149,44,.1);
    border: 1px solid rgba(201,149,44,.2);
    color: var(--mu-gold);
    border-radius: var(--mu-radius);
}

/* ── 9. Buttons ───────────────────────────────────────────────────────────── */
.btn {
    border-radius: var(--mu-radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: all var(--mu-transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #7a5014, var(--mu-gold));
    border-color: var(--mu-gold-dark);
    color: #fff8e0;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--mu-gold-dark), var(--mu-gold-light));
    border-color: var(--mu-gold);
    color: #fff;
    box-shadow: 0 0 14px rgba(201,149,44,.35);
}
.btn-default {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
    color: var(--mu-text);
}
.btn-default:hover, .btn-default:focus { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: var(--mu-text-bright); }
.btn-success  { background: linear-gradient(135deg, #1b5e20, #2e7d32); border-color: #1b5e20; color: #c8ffc8; }
.btn-success:hover { background: linear-gradient(135deg, #2e7d32, #43a047); color: #fff; }
.btn-danger   { background: linear-gradient(135deg, #5c1111, #7c1c1c); border-color: #5c1111; color: #ffc8c8; }
.btn-danger:hover  { background: linear-gradient(135deg, #7c1c1c, #b71c1c); color: #fff; }
.btn-warning  { background: linear-gradient(135deg, #5c4000, #8a6000); border-color: #5c4000; color: #ffe8a0; }
.btn-warning:hover { background: linear-gradient(135deg, #8a6000, #c89000); color: #fff; }
.btn-info     { background: linear-gradient(135deg, #0d2e4a, #1565c0); border-color: #0d2e4a; color: #c0deff; }
.btn-info:hover    { background: linear-gradient(135deg, #1565c0, #1e88e5); color: #fff; }
.btn-xs       { font-size: 10px; padding: 3px 8px; }
.btn-sm       { font-size: 12px; padding: 5px 12px; }
.btn-lg       { font-size: 15px; padding: 10px 22px; }
.btn-block    { display: block; width: 100%; }

/* ── 10. Alerts ───────────────────────────────────────────────────────────── */
.alert {
    border-radius: var(--mu-radius);
    border: none;
    border-left: 3px solid;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
}
.alert-success { background: rgba(46,125,50,.15);  border-left-color: #2e7d32; color: #81c784; }
.alert-danger  { background: rgba(124,28,28,.15);  border-left-color: #7c1c1c; color: #e57373; }
.alert-warning { background: rgba(138,96,0,.15);   border-left-color: #8a6000; color: #ffca28; }
.alert-info    { background: rgba(21,101,192,.15);  border-left-color: #1565c0; color: #64b5f6; }

/* ── 11. Labels / Badges ──────────────────────────────────────────────────── */
.label-primary { background: var(--mu-gold);  color: #180f00; }
.label-success { background: #2e7d32; }
.label-danger  { background: #7c1c1c; }
.label-warning { background: #8a6000; }
.label-info    { background: #1565c0; }
.label-default { background: rgba(255,255,255,.1); color: var(--mu-text); }

/* ── 12. Pagination ───────────────────────────────────────────────────────── */
.pagination > li > a, .pagination > li > span {
    background: var(--mu-bg-card);
    border-color: var(--mu-gold-border);
    color: var(--mu-text);
}
.pagination > li > a:hover { background: var(--mu-gold-glow); border-color: var(--mu-gold); color: var(--mu-gold-light); }
.pagination > .active > a,
.pagination > .active > a:hover {
    background: var(--mu-gold);
    border-color: var(--mu-gold);
    color: #180f00;
}
.pagination > .disabled > a { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.06); color: var(--mu-text-muted); }

/* ── 13. Language switcher ────────────────────────────────────────────────── */
.mu-lang-wrap        { position: relative; }
.mu-lang-switcher    { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.mu-lang-active > a  {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    color: var(--mu-text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    background: rgba(201,149,44,.05);
}
.mu-lang-active > a:hover { border-color: var(--mu-gold); color: var(--mu-gold-light); }
.mu-lang-caret       { font-size: 8px !important; margin-left: 2px; transition: transform var(--mu-transition); }
.mu-lang-option      { display: none; }

.mu-lang-wrap:hover .mu-lang-option {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;
    background: rgba(6, 8, 16, 0.98);
    border: 1px solid var(--mu-gold-border);
    border-top: none;
    min-width: 110px;
    border-radius: 0 0 var(--mu-radius) var(--mu-radius);
}
.mu-lang-wrap:hover .mu-lang-option:first-of-type { border-top: 1px solid var(--mu-gold-border); margin-top: 2px; }
.mu-lang-option > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--mu-text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.mu-lang-option > a:hover { background: var(--mu-gold-glow); color: var(--mu-gold-light); }
.mu-lang-switcher img { width: 16px; height: 11px; border-radius: 1px; }

/* ── 14. Sidebar components ───────────────────────────────────────────────── */
/* UserCP list */
.mu-usercp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mu-usercp-list > li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255,255,255,.03);
    transition: background var(--mu-transition);
}
.mu-usercp-list > li:last-child { border-bottom: none; }
.mu-usercp-list > li:hover { background: var(--mu-gold-glow); }
.mu-usercp-icon { width: 17px; height: 17px; opacity: .65; flex-shrink: 0; }
.mu-usercp-list > li a { color: var(--mu-text); font-size: 13.5px; font-weight: 500; }
.mu-usercp-list > li a:hover { color: var(--mu-gold-light); }

/* Banners */
.mu-sidebar-banner {
    display: block;
    margin-bottom: 14px;
    border-radius: var(--mu-radius-lg);
    overflow: hidden;
    border: 1px solid var(--mu-gold-border);
    transition: all var(--mu-transition);
    text-decoration: none;
}
.mu-sidebar-banner:hover { border-color: var(--mu-gold); box-shadow: 0 0 16px rgba(201,149,44,.2); }
.mu-sidebar-banner--join {
    background: linear-gradient(135deg, #1a0a00, #3d1f00);
    padding: 22px 16px;
    text-align: center;
}
.mu-sidebar-banner--download {
    background: linear-gradient(135deg, #0a0e20, #101630);
    padding: 18px 16px;
    text-align: center;
}
.mu-sidebar-banner-text {
    color: var(--mu-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Siege sidebar card */
.mu-panel-castle .mu-siege-info { display: grid; gap: 2px; }
.mu-siege-label { color: var(--mu-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; margin-top: 6px; display: block; }
.mu-siege-val   { color: var(--mu-text-bright); font-weight: 600; font-size: 14px; display: block; }
.mu-siege-countdown-row { margin-top: 16px; text-align: center; border-top: 1px solid var(--mu-gold-border); padding-top: 14px; }
.mu-siege-stage { display: block; color: var(--mu-gold); font-size: 13px; margin: 4px 0 10px; }
.mu-siege-timer {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--mu-gold-light);
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(201,149,44,.5);
}

/* ── 15. WebEngine online bar (used inside modules) ───────────────────────── */
.webengine-online-bar {
    height: 5px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}
.webengine-online-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, var(--mu-online));
    border-radius: 3px;
}
.online-count { color: var(--mu-online); font-weight: 700; }

/* ── 16. News module ──────────────────────────────────────────────────────── */
.panel-news, .news-item { }
.news-date {
    font-size: 11px;
    color: var(--mu-text-muted);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .3px;
}
.news-author { color: var(--mu-gold); font-weight: 600; }
.news-body   { color: var(--mu-text); line-height: 1.75; margin-top: 10px; }
.news-body img { border-radius: var(--mu-radius); border: 1px solid var(--mu-gold-border); }

/* ── 17. Rankings module ──────────────────────────────────────────────────── */
.rankings_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.rankings_menu a {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--mu-bg-card);
    border: 1px solid var(--mu-gold-border);
    border-radius: 4px;
    color: var(--mu-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--mu-transition);
    white-space: nowrap;
}
.rankings_menu a:hover {
    background: rgba(201,149,44,.15);
    border-color: var(--mu-gold);
    color: var(--mu-gold-light);
    text-decoration: none;
}
.rankings_menu a.active {
    background: rgba(201,149,44,.22);
    border-color: var(--mu-gold);
    color: var(--mu-gold);
    box-shadow: 0 0 8px rgba(201,149,44,.18);
}

.rankings-table { width: 100%; }

/* Compact rankings table: less row padding, vertically centered */
.rankings-table > tbody > tr > td { padding: 5px 10px; vertical-align: middle; }
.rankings-table-place {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: var(--mu-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
}

/* Class avatar inside table rows: fixed compact size */
.rankings-class-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Online indicator dot */
.online-status-indicator {
    width: 10px;
    height: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Class filter bar: horizontal pill row */
.rankings-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.rankings-class-filter li { margin: 0; }

/* Class filter buttons: image + label side by side */
.rankings-class-filter-selection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--mu-gold-glow);
    border: 1px solid var(--mu-gold-border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--mu-text);
    cursor: pointer;
    transition: all var(--mu-transition);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: .4px;
    white-space: nowrap;
}
/* Hide the <br> the PHP puts between the image and label */
.rankings-class-filter-selection br { display: none; }

/* Class avatar inside filter buttons: small */
.rankings-class-filter-image {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.rankings-class-filter-selection:hover { background: rgba(201,149,44,.2); color: var(--mu-gold-light); border-color: var(--mu-gold); }
.rankings-class-filter-grayscale { opacity: .35; filter: grayscale(80%); }

/* ── 18. Download module ──────────────────────────────────────────────────── */
.thumbnail {
    background: var(--mu-bg-card);
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    transition: all var(--mu-transition);
    padding: 12px;
}
.thumbnail:hover { border-color: var(--mu-gold); box-shadow: 0 0 14px rgba(201,149,44,.2); }
.thumbnail .caption { color: var(--mu-text); padding: 8px 0 0; }

/* ── 19. Profile pages ────────────────────────────────────────────────────── */
.well {
    background: var(--mu-bg-card-alt);
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    box-shadow: none;
}
.alt { color: var(--mu-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .7px; }

/* ----- Player profile card ----- */
.profiles_player_card {
    background: var(--mu-bg-card);
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    overflow: hidden;
}
.profiles_player_content { padding: 0; }

/* Header: name + class table — stacked gradient + class artwork on right */
.profiles_player_table:not(.profiles_player_table_info) {
    width: 100%;
    background-color: var(--mu-bg-card-alt);
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--mu-gold-border);
    margin-bottom: 0;
}
.profiles_player_table:not(.profiles_player_table_info) tr,
.profiles_player_table:not(.profiles_player_table_info) td {
    background: transparent !important;
    border: none !important;
}
.profiles_player_table:not(.profiles_player_table_info) .cname {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    display: block;
    padding: 30px 28px 6px;
    text-shadow: 0 2px 14px rgba(0,0,0,.9);
}
.profiles_player_table:not(.profiles_player_table_info) .cclass {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--mu-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    padding: 0 28px 30px;
}

/* Per-class profile artwork (image sits on right, gradient covers left) */
.profiles_player_card.DW  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SW  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/wiz.jpg');
}
.profiles_player_card.DK  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.BK  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.BM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.DGK .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/knight.jpg');
}
.profiles_player_card.ELF .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.ME  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.HE  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.NE  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/elf.jpg');
}
.profiles_player_card.MG  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.DM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.MK  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/mg.jpg');
}
.profiles_player_card.DL  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LE  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.EL  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/dl.jpg');
}
.profiles_player_card.SUM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.BS   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.DSM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.DS   .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/sum.jpg');
}
.profiles_player_card.RF  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.FM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.FB  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/rf.jpg');
}
.profiles_player_card.GL  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.ML  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SL  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/gl.jpg');
}
.profiles_player_card.RW   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.RSM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GRM  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/rw.jpg');
}
.profiles_player_card.SLR   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SLRR  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.MSLR  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SLTR  .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), url('../img/profiles/sl.jpg');
}
/* Gun Crusher family */
.profiles_player_card.GC,  .profiles_player_card.GBR, .profiles_player_card.LCM,
.profiles_player_card.DSC, .profiles_player_card.GCN {
    --profile-bg: url('../img/profiles/gc.jpg');
}
/* White Wizard family */
.profiles_player_card.WW,  .profiles_player_card.WMR, .profiles_player_card.SHM,
.profiles_player_card.LUM, .profiles_player_card.WWN {
    --profile-bg: url('../img/profiles/liw.jpg');
}
/* Lemuria family */
.profiles_player_card.LEM,  .profiles_player_card.LMN,  .profiles_player_card.GLM,
.profiles_player_card.TLEM, .profiles_player_card.LEMN {
    --profile-bg: url('../img/profiles/lem.jpg');
}
/* Illusion Knight family */
.profiles_player_card.IK,  .profiles_player_card.PHK, .profiles_player_card.GHK,
.profiles_player_card.TIK, .profiles_player_card.IKN {
    --profile-bg: url('../img/profiles/ik.jpg');
}
/* Alchemist family */
.profiles_player_card.ALC,  .profiles_player_card.AEX,  .profiles_player_card.GALC,
.profiles_player_card.TALC, .profiles_player_card.ALCN {
    --profile-bg: url('../img/profiles/alc.jpg');
}
/* Crusader family (no dedicated artwork yet — falls back to default card bg) */

/* Apply the --profile-bg variable to the header table for all new classes */
.profiles_player_card.GC   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GBR  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LCM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.DSC  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GCN  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.WW   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.WMR  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.SHM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LUM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.WWN  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LEM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LMN  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GLM  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.TLEM .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.LEMN .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.IK   .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.PHK  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GHK  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.TIK  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.IKN  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.ALC  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.AEX  .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.GALC .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.TALC .profiles_player_table:not(.profiles_player_table_info),
.profiles_player_card.ALCN .profiles_player_table:not(.profiles_player_table_info) {
    background-image: linear-gradient(100deg, rgba(10,8,4,.92) 0%, rgba(10,8,4,.7) 50%, rgba(10,8,4,.25) 100%), var(--profile-bg);
}

/* Stats info table */
.profiles_player_table_info {
    width: 100%;
    margin-bottom: 0;
}
.profiles_player_table_info tr {
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    background-color: transparent !important;
}
.profiles_player_table_info tr:nth-child(even) {
    background-color: rgba(255,255,255,.02) !important;
}
.profiles_player_table_info tr:last-child { border-bottom: none !important; }
.profiles_player_table_info td {
    padding: 11px 24px !important;
    border: none !important;
    vertical-align: middle;
}
.profiles_player_table_info td:first-child {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--mu-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 42%;
}
.profiles_player_table_info td:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--mu-text-bright);
    text-align: right;
}

/* Online / offline status badges */
.isonline, .isoffline {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.isonline {
    background: rgba(74,222,128,.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,.3);
}
.isoffline {
    background: rgba(255,255,255,.05);
    color: var(--mu-text-muted);
    border: 1px solid rgba(255,255,255,.1);
}

/* ── 20. PayPal / Donation ───────────────────────────────────────────────── */
.paypal-gateway { text-align: center; padding: 20px; }

/* ── 21. Page headers (Bootstrap .page-header) ───────────────────────────── */
.page-header {
    border-bottom: 1px solid var(--mu-gold-border);
    margin: 0 0 20px;
    padding: 0 0 14px;
}
.page-header h1, .page-header h2, .page-header h3 { color: var(--mu-text-bright); font-size: 22px; }

/* Module page title — output by every module as <div class="page-title"><span>...</span></div> */
.page-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mu-gold-border);
}
.page-title span {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mu-text-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ── 22. AdminCP button (injected by handler after </html>) ──────────────── */
.admincp-button {
    position: fixed !important;
    bottom: 22px !important;
    right: 22px !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #7a5014, var(--mu-gold)) !important;
    border: 1px solid var(--mu-gold-dark) !important;
    border-radius: var(--mu-radius) !important;
    color: #fff8e0 !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    padding: 8px 18px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.65), 0 0 10px rgba(201,149,44,.18) !important;
    text-decoration: none !important;
    transition: all var(--mu-transition) !important;
    display: inline-block !important;
}
.admincp-button:hover,
.admincp-button:focus {
    background: linear-gradient(135deg, var(--mu-gold-dark), var(--mu-gold-light)) !important;
    border-color: var(--mu-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 28px rgba(0,0,0,.75), 0 0 20px rgba(201,149,44,.38) !important;
    text-decoration: none !important;
}

/* ── 23. Footer ───────────────────────────────────────────────────────────── */
.mu-footer {
    background: #040608;
    border-top: 1px solid var(--mu-gold-border);
    margin-top: 60px;
    padding: 52px 0 0;
}
.mu-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.mu-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}
.mu-footer-brand h3  {
    font-family: 'Cinzel', serif;
    color: var(--mu-gold);
    font-size: 17px;
    margin: 10px 0 8px;
}
.mu-footer-brand p   { color: #555; font-size: 13px; line-height: 1.7; max-width: 270px; }
.mu-footer-logo      { height: 36px; width: auto; opacity: .85; }

.mu-footer-col h4 {
    font-family: 'Cinzel', serif;
    color: var(--mu-gold);
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mu-gold-border);
}
.mu-footer-col ul    { list-style: none; padding: 0; margin: 0; }
.mu-footer-col li    { margin-bottom: 7px; }
.mu-footer-col li a  { color: #555; font-size: 13px; display: flex; align-items: center; gap: 7px; transition: color var(--mu-transition); }
.mu-footer-col li a:hover { color: var(--mu-gold-light); }
.mu-footer-col li a .fa { font-size: 11px; color: var(--mu-gold-dark); width: 14px; }

/* Social icons */
.mu-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.mu-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--mu-radius);
    border: 1px solid var(--mu-gold-border);
    color: #555;
    font-size: 14px;
    transition: all var(--mu-transition);
}
.mu-footer-social a:hover { border-color: var(--mu-gold); color: var(--mu-gold-light); background: var(--mu-gold-glow); }

/* Bottom strip */
.mu-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.04);
    padding: 18px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mu-footer-bottom p   { color: #3a3a3a; font-size: 12px; margin: 0; }
.mu-footer-bottom a   { color: #444; }
.mu-footer-bottom a:hover { color: var(--mu-gold); }

/* ── 24. Miscellaneous ────────────────────────────────────────────────────── */
.text-muted  { color: var(--mu-text-muted) !important; }
.text-gold   { color: var(--mu-gold)       !important; }
.text-online { color: var(--mu-online)     !important; }
.nopadding   { padding: 0 !important; }
.vcenter     { display: flex; align-items: center; }

/* List groups */
.list-group-item {
    background: var(--mu-bg-card-alt);
    border-color: rgba(255,255,255,.06);
    color: var(--mu-text);
}
.list-group-item:hover { background: rgba(201,149,44,.06); }
.list-group-item.active, .list-group-item.active:hover {
    background: var(--mu-gold-glow);
    border-color: var(--mu-gold-border2);
    color: var(--mu-gold-light);
}

/* Nav tabs */
.nav-tabs { border-bottom: 1px solid var(--mu-gold-border); }
.nav-tabs > li > a { color: var(--mu-text-muted); background: transparent; border: 1px solid transparent; border-radius: var(--mu-radius) var(--mu-radius) 0 0; }
.nav-tabs > li > a:hover { color: var(--mu-text); background: var(--mu-gold-glow); border-color: var(--mu-gold-border); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover {
    background: var(--mu-bg-card);
    border-color: var(--mu-gold-border);
    border-bottom-color: var(--mu-bg-card);
    color: var(--mu-gold-light);
}
.tab-content { padding: 16px 0; }

/* Dropdowns */
.dropdown-menu {
    background: rgba(6, 8, 16, 0.98);
    border: 1px solid var(--mu-gold-border);
    border-radius: var(--mu-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.6);
    padding: 6px 0;
}
.dropdown-menu > li > a { color: var(--mu-text); padding: 7px 14px; font-size: 13px; }
.dropdown-menu > li > a:hover { background: var(--mu-gold-glow); color: var(--mu-gold-light); }

/* Select */
select.form-control { -webkit-appearance: none; appearance: none; cursor: pointer; }

/* Scrollbar (webkit) */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--mu-bg); }
::-webkit-scrollbar-thumb { background: rgba(201,149,44,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,149,44,.55); }

/* ── 25b. Grand Opening countdown banner ─────────────────────────────────── */
.go-banner {
    background: linear-gradient(90deg, rgba(10,8,4,.98) 0%, rgba(25,18,6,.98) 50%, rgba(10,8,4,.98) 100%);
    border-top: 1px solid var(--mu-gold-border);
    border-bottom: 1px solid var(--mu-gold-border);
    padding: 14px 0;
    position: relative;
    overflow: hidden;
}
/* animated shimmer line */
.go-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(201,149,44,.06) 50%, transparent 100%);
    animation: go-banner-shimmer 3s linear infinite;
    pointer-events: none;
}
@keyframes go-banner-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.go-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.go-banner-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mu-gold);
    white-space: nowrap;
}
.go-banner-label .fa { font-size: 24px; }
.go-banner-digits {
    display: flex;
    align-items: center;
    gap: 6px;
}
.go-banner-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.go-banner-num {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--mu-gold-light);
    background: rgba(201,149,44,.08);
    border: 1px solid rgba(201,149,44,.2);
    border-radius: 5px;
    min-width: 52px;
    text-align: center;
    padding: 5px 6px 3px;
    letter-spacing: -1px;
    text-shadow: 0 0 18px rgba(201,149,44,.45);
}
.go-banner-unit-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mu-text-muted);
}
.go-banner-colon {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mu-gold-border);
    line-height: 1;
    margin-bottom: 14px;
    align-self: center;
}
@media (max-width: 576px) {
    .go-banner-inner { justify-content: center; }
    .go-banner-label { font-size: 11px; }
    .go-banner-num   { font-size: 22px; min-width: 42px; }
}

/* ── 25. Keyframe animations ──────────────────────────────────────────────── */
@keyframes mu-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%);  }
}
@keyframes mu-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: .5; transform: scale(1.25); }
}
@keyframes mu-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.mu-main .panel { animation: mu-fadein .28s ease both; }

/* ── 26. Responsive ───────────────────────────────────────────────────────── */

/* ── 26a. General overflow guard (applies at all sizes) ── */
body          { overflow-x: hidden; }
.mu-main      { overflow-x: hidden; }

/* Prevent long words / URLs / character names from blowing out containers */
.panel-body,
.panel-heading,
.mu-content-area,
.table > tbody > tr > td,
.table > thead > tr > th { word-break: break-word; overflow-wrap: break-word; }

/* Module tables: always allow horizontal scroll rather than breaking layout */
.mu-main .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
}
/* Bare <table> elements output by modules that aren't wrapped in .table-responsive */
.mu-main table { max-width: 100%; }

/* Images inside module content stay within their containers */
.mu-main img,
.panel-body img { max-width: 100%; height: auto; }

@media (max-width: 1100px) {
    .mu-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .mu-statsbar-hide-sm { display: none !important; }
}

/* ── 26b. Tablet / small desktop (≤ 768px) ── */
@media (max-width: 768px) {
    body { font-size: 14px; }

    /* ── Navbar: collapse into hamburger ── */
    .mu-navbar-menu {
        display: none;
        position: fixed;
        inset: var(--mu-nav-h) 0 auto 0;
        background: rgba(4, 6, 12, 0.99);
        border-bottom: 1px solid var(--mu-gold-border);
        padding: 10px 0;
        max-height: calc(100vh - var(--mu-nav-h));
        overflow-y: auto;
        z-index: 999;
    }
    .mu-navbar-menu.is-open { display: block; }
    .mu-nav-list     { flex-direction: column; gap: 0; }
    .mu-nav-item a   { border-radius: 0; border: none; border-bottom: 1px solid rgba(255,255,255,.03); padding: 12px 20px; font-size: 13px; }
    .mu-hamburger    { display: flex; }
    .mu-auth-btns .mu-btn span { display: none; }
    .mu-auth-btns .mu-btn      { padding: 6px 8px; }

    /* ── Statsbar: truncate overflow ── */
    .mu-statsbar-inner { overflow: hidden; }
    .mu-statsbar-item  { padding: 0 8px; }
    .mu-statsbar-label { display: none; }

    /* ── Content: Bootstrap grid columns stack ── */
    /* col-sm-* / col-md-* have no float below 768px in Bootstrap 3,
       so they naturally become full-width blocks — nothing extra needed.
       BUT: col-xs-* always float, so force them to stack on mobile too. */
    .mu-main [class*="col-xs-"] {
        float: none !important;
        width: 100% !important;
    }

    /* Panel headings: wrap instead of overflowing */
    .panel-heading { flex-wrap: wrap; gap: 6px; }
    .panel-title   { font-size: 11px !important; }

    /* Content area horizontal scroll guard */
    .mu-content-area { overflow-x: hidden; }

    /* Rankings filter buttons: allow wrap */
    .rankings-class-filter-selection { margin: 2px; }

    /* Footer */
    .mu-footer-grid   { grid-template-columns: 1fr; gap: 28px; }
    .mu-footer-bottom { flex-direction: column; text-align: center; }

    /* Table responsive border */
    .table-responsive { border: none; }
}

/* ── 26c. Phone (≤ 576px) ── */
@media (max-width: 576px) {
    /* Ensure ALL bootstrap columns (xs / sm / md / lg) collapse to full width */
    .mu-main [class*="col-xs-"],
    .mu-main [class*="col-sm-"],
    .mu-main [class*="col-md-"],
    .mu-main [class*="col-lg-"] {
        float: none !important;
        width: 100% !important;
    }
    /* Rows: clear any residual floats */
    .mu-main .row { overflow: hidden; }

    /* Forms: inputs full width */
    .form-control { width: 100% !important; }

    /* Buttons inside panels: allow wrapping */
    .panel-heading .btn-group { display: flex; flex-wrap: wrap; gap: 4px; }
    .panel-heading .btn { flex: 1 0 auto; }

    /* Hero tweaks */
    .mu-hero { padding: 44px 12px 40px; }
}

/* ── 26d. Small phone (≤ 480px) ── */
@media (max-width: 480px) {
    .mu-navbar-inner { padding: 0 12px; gap: 8px; }
    .mu-container    { padding-left: 10px; padding-right: 10px; }

    /* Pagination: smaller */
    .pagination > li > a,
    .pagination > li > span { padding: 4px 8px; font-size: 12px; }

    /* Stats bar: hide all but online count */
    .mu-statsbar-item + .mu-statsbar-item { display: none !important; }
    .mu-statsbar-item:first-child          { padding: 0 12px; }

    /* Hero */
    .mu-hero-actions  { flex-direction: column; align-items: center; }
    .mu-btn-hero      { width: 100%; max-width: 260px; justify-content: center; }
    .mu-hero-badge    { font-size: 10px; letter-spacing: 1.5px; }
}
