/* ============================================================
   GLOBAL + TYPOGRAPHY
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    background-color: #0A0A0C;
    color: #fff;
    color-scheme: dark;
    font-family: "Cinzel", serif;
    letter-spacing: 0.4px;
}

body, table, td, th, p, div, span, input, button, select, textarea {
    font-family: "Cinzel", serif;
    letter-spacing: 0.4px;
}

/* UI labels */
.ui-text, .bar-title, .gothic-statbox, .gothic-infobar, h1, h2, h3 {
    font-family: "Cinzel", serif;
    letter-spacing: 0.6px;
}

/* Body text */
body, p, td, th, .content-text {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.3;
}

/* Links */
a:link, a:visited {

}

/* Images */
.img2 img {
    opacity: 0.4;
    filter: brightness(0.85) saturate(0.8);
    transition: 0.1s ease-in-out;
}
.img2 img:hover {
    opacity: 1;
    filter: brightness(0.85) saturate(1);
}

/* ============================================================
   GENERAL LAYOUT + BACKGROUNDS
   ============================================================ */
.bgtop,
.bgtopleftrage,
.bgtopragerage,
.bgtoplightlight {
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bgtop            { background-image: url('images/bgtop88.png'); }
.bgtopleftrage    { background-image: url('images/leftragerightlight.png'); }
.bgtopragerage    { background-image: url('images/ragerage.png'); }
.bgtoplightlight  { background-image: url('images/lightlight2.png'); }



.equippedleft {
   background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    border: 1px solid rgba(200,170,110,0.37);
    border-radius: 25px 0 0 25px;
    text-align: center;
    font-style: italic;
    font-size: 14px;
}

/* ============================================================
   MAIN CONTENT CONTAINER
   ============================================================ */

.barheading {
    border-radius: 50px;
    color: #000;
    box-shadow: inset 0 0 3px #0A0A0C;
}

.darkbg { background: rgba(0,0,0,0.2); }

.endpage {
    width: 100%;
    height: 50px;
    background-color: #1A1A1A;
    color: #222831;
}

/* ============================================================
   GOTHIC STATBOXES
   ============================================================ */
.dark-bar {
    width: 150px;
    display: inline-block;
    background: rgba(10,10,12,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: inset 0 0 5px #0A0A0C;
}

.gothic-statbox {
    position: relative;
    border-radius: 6px;
    padding: 8px 10px;
}

.gothic-statbox i {
    color: #d9c48a;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #E1E1E1;
}

.gothic-statbox b {
    color: #E1E1E1;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #0A0A0C;
}

/* ============================================================
   PANELS (TOP / CONTENT / ORB THEMES)
   ============================================================ */
.barpanel,
.barpanel222,
.barpanelfront,
.barpanelfront222,
.barpanel9,
.otherbox2,
.otherboxlogin,
.barpanel5,
.barpanel37,
.barpanel4,
.barpanel3,
.barpanel10 {
    width: 100%;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 0 1px #0A0A0C;
    color: #fff;
}

.bannerlog, .banner, .bannero { margin-top: 12px; }
.bannerl { margin-top: 5px; }
.bannerr { margin-top: 7px; }

/* Base panel */
.barpanel {
    border-radius: 10px;
    background-image: url('bgtop88.png');
}

/* Themed panels */
.otherbarpanel,
.ragebarpanel,
.lightbarpanel {
    border-radius: 10px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.otherbarpanel { background-image: url('images/leftragerightlight.png'); }
.ragebarpanel  { background-image: url('images/ragerage.png'); }
.lightbarpanel { background-image: url('images/lightlight.png'); }

/* Top-only variants */
.barpanel2,
.barpanel2leftrage,
.barpanel2ragerage,
.barpanel2lightlight {
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px 10px 0 0;
 box-shadow: inset 5px 5px 5px #0A0A0C,
 inset -5px -5px 5px #0A0A0C;
    
}

.barpanel2            { background-image: url('images/bgtop88.png'); }
.barpanel2leftrage    { background-image: url('images/leftragerightlight.png'); }
.barpanel2ragerage    { background-image: url('images/ragerage.png'); }
.barpanel2lightlight  { background-image: url('images/lightlight2.png'); }

/* Variants */
.barpanel3 {
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    color: #000;
}
.barpanel7 {
    border-radius: 10px;
    width: 100%;
margin: 0 auto;
    /* bright interior based on #E1E1E1 */
    background: rgba(225,225,225,0.50);

    /* dark carved edge to blend into your darker sanctuary background */
    box-shadow:
        inset 0 0 18px rgba(10,10,12,0.75),
        inset 0 0 6px rgba(10,10,12,0.55);

    /* faint highlight border for definition */


    color: #000;
}










.barpanel9 {
    border-radius: 10px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 0 50px #0A0A0C;
    color: #000;
}

.otherbox2,
.otherboxlogin {
    width: 100%;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 0 5px #0A0A0C;
    color: #000;
}

.otherboxlogin { background: rgba(255,255,255,0.7); }

.barpanel5 {
    width: 100%;
    background: rgba(219,255,255,0.1);
    box-shadow: inset 0 0 5px #fff;
    color: #000;
}

.barpanel37 {
   background:
    repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        rgba(10,10,12,0.03) 2px,
        rgba(10,10,12,0.03) 4px
    ),
    linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(10,10,12,0.05)
    ),
    radial-gradient(
        circle at 50% 30%,
        rgba(26,26,26,0.55) 0%,
        rgba(10,10,10,0.55) 75%
    );

    border-radius: 10px 10px 0 0;
    color: #e8d7a8;
    border: 1px solid rgba(200,170,110,0.2);
    border-bottom: none;
}

.barpanel4 {
    width: 100%;
    background: rgba(0,0,0,0.2);
    color: #000;
}

.barpanel10 {
    border-radius: 10px;
    width: 100%;
    background: rgba(0,0,0,0.1);
    color: #000;
}

/* ============================================================
   ORB BOXES
   ============================================================ */
.orblevelbg {
    box-shadow: inset 0 0 3px #0A0A0C;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 2px, rgba(225,225,225,0.18) 2px, rgba(225,225,225,0.18) 4px),
        linear-gradient(135deg, rgba(225,225,225,0.25), rgba(225,225,225,0.05)),
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.85) 0%, rgba(225,225,225,0.55) 70%);
    color: #000;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-shadow: 0 0 1px #000;
}

.orbbox,
.orbboxblue {
    box-shadow:
        inset 25px 10px 10px rgba(10,10,12,1),
        inset -25px -10px 10px rgba(10,10,12,1);
    background-repeat: no-repeat;
    background-position: center;
}

.orbbox {
    background-image:
        linear-gradient(rgba(60,45,30,0.35), rgba(60,45,30,0.35)),
        url('images/redcloud.png');
}

.orbboxblue {
    background-image:
        linear-gradient(rgba(60,45,30,0.35), rgba(60,45,30,0.35)),
        url('images/bluecloud.png');
}


.otherbox {
 box-shadow: inset 5px 2px 20px #0A0A0C,
 inset -5px -2px 20px #0A0A0C;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.10) 0px,
            rgba(255,255,255,0.10) 2px,
            rgba(225,225,225,0.10) 2px,
            rgba(225,225,225,0.10) 4px
        ),
        linear-gradient(
            135deg,
            rgba(225,225,225,0.15),
            rgba(225,225,225,0)
        ),
        radial-gradient(
            circle at 50% 30%,
            rgb(255,255,255) 0%,
            rgb(225,225,225) 70%
        );
    /* Centering magic */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Optional but recommended for divs */
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;

}




.banner22 { border: 5px solid #fff; }


/* ============================================================
   STAT BAR CONTAINER
   ============================================================ */
#bars-container {
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    gap: 40px;
}

.bar-block {
    text-align: center;
    font-family: "Cinzel", serif;
    color: #000;
}

.bar-title,
.bar-value {
    color: #000;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #0A0A0C;
}
.bar-title { font-size: 13px; letter-spacing: 1px; margin-bottom: 4px; }
.bar-value { font-size: 12px; margin-top: 3px; }

/* Width hierarchy */
.gothic-light   { width: 22%; }
.gothic-rage    { width: 22%; }
.gothic-energy  { width: 20%; }
.gothic-hunger  { width: 18%; }
.gothic-thirst  { width: 18%; }

/* ============================================================
   UNIVERSAL BAR FRAME (CARVED STONE)
   ============================================================ */
.gothic-bar {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    box-shadow: 0 1px 1px rgba(0,0,0,1);
    background: #1a1a1a;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   BAR HEIGHTS (SLIM)
   ============================================================ */
.gothic-hunger .gothic-bar,
.gothic-energy .gothic-bar,
.gothic-thirst .gothic-bar {
    height: 8px;
    padding: 1px;
}

.gothic-light .gothic-bar,
.gothic-rage .gothic-bar {
    height: 9px;
    padding: 1px;
}

/* ============================================================
   BAR FILL
   ============================================================ */
.gothic-bar-fill {
    height: 100%;
    width: 0;
    transition: width .3s ease-out;
    box-shadow: inset 0 0 4px #000;
}

/* ============================================================
   BAR COLORS
   ============================================================ */

/* ENERGY — enchanted green */
.gothic-energy .gothic-bar-fill {
    background: linear-gradient(90deg, #5fa85f, #2f6a2f);
    animation: energyPulse 2.2s ease-in-out infinite;
}

/* HUNGER — muted brown */
.gothic-hunger .gothic-bar-fill {
    background: linear-gradient(90deg, rgba(168,140,90,0.55), rgba(107,86,54,0.55));
}

/* THIRST — muted blue */
.gothic-thirst .gothic-bar-fill {
    background: linear-gradient(90deg, rgba(111,156,207,0.55), rgba(63,95,135,0.55));
}

/* LIGHT — sacred cyan/white */
.gothic-light .gothic-bar-fill {
    background: linear-gradient(90deg, #87D9EB, #FFFFFF);
}

/* RAGE — deep blood red */
.gothic-rage .gothic-bar-fill {
    background: #701F2A;
}

/* ============================================================
   ENERGY PULSE ANIMATION
   ============================================================ */
@keyframes energyPulse {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

/* ============================================================
   WRAPPER SPACING
   ============================================================ */
.gothic-hunger,
.gothic-thirst,
.gothic-energy,
.gothic-light,
.gothic-rage {
    display: block;
    text-align: center;
    margin: 3px 0;
}

/* ============================================================
   ORB HOVER SWAP
   ============================================================ */
.orb-pulse {
    position: relative;
    display: inline-block;
}

.orb-pulse .orb-frame {
    display: block;
    max-width: 100%;
    height: auto;
}

.orb-pulse .orb-frame-alt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .1s ease-in-out;
}

.orb-pulse:hover .orb-frame-alt {
    opacity: 1;
}

/* ============================================================
   OBSIDIAN RELIC HEADER — TEXTURED + COMPACT
   ============================================================ */
.relic-header {
    width: 100%;
    box-sizing: border-box;
    margin: 6px auto;
    padding: 6px 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    border: 1px solid rgba(200,170,110,0.37);
    border-radius: 10px;

    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.95),
        inset 0 0 12px rgba(255,215,160,0.07),
        0 0 12px rgba(0,0,0,0.8);

    text-shadow: 0 0 3px #000;
    font-family: "Cinzel", serif;
}

/* Center block */
.relic-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* ============================================================
   LEFT SIDE — LEVEL + EXP
   ============================================================ */
.relic-glyph {
    color: #e8d7a8;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #FFF;
}

.relic-glyph-small {
    color: #c9b37f;
    font-size: 10px;
    margin-top: -2px;
}

/* ============================================================
   CENTER — USERNAME + TITLES
   ============================================================ */
.relic-name {
    color: #f5f2e8;
    font-size: 19px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 3px #FFF;
}

.relic-name2 {
    color: #f5f2e8;
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #FFF;
}

.relic-subtitle {
    color: #c9b37f;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 0 2px #FFF;
}

/* ============================================================
   RIGHT SIDE — MAIL / EVENTS
   ============================================================ */
.relic-rune {
    color: #e8d7a8;
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 1px #FFF;
}

.relic-left,
.relic-right,
.relic-mid-left,
.relic-mid-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Middle blocks expand */
.relic-mid-left,
.relic-mid-right {
    flex: 1;
    min-width: 90px;
    padding: 0 6px;
}

.relic-mid-left { margin-left: -80px; }
.relic-mid-right { margin-right: -45px; }
.relic-right { margin-right: 15px; }

.relic-mini {
    color: #e8d7a8;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px #FFF;
    margin: 1px 0;
}

/* ============================================================
   HOVER EFFECTS
   ============================================================ */
.titlehover {
    transition: transform 0.35s ease, filter 0.35s ease;
    transform-origin: center;
}
.titlehover:hover {
    transform: scale(1.08);
    filter: brightness(2);
}

/* ============================================================
   EXP BAR
   ============================================================ */
.exp-bar-container {
    width: 140px;
    height: 10px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
}

.exp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #CD9015, #CD9015);
    box-shadow: inset 0 0 4px #000;
    transition: width 0.3s ease;
    position: relative;
    margin-left: 0;
    float: left;
}

.exp-bar-text-left {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #e6e6e6;
    text-shadow: 0 0 3px #000;
    pointer-events: none;
    text-align: left;
}

/* ============================================================
   GAME WRAP — HOLDS SIDEBARS + MAIN 933px CONTAINER
   ============================================================ */
.game-wrap {
    position: relative;
    width: 1133px; /* 100px left + 933px main + 100px right */
    margin: 0 auto;
    display: block;
    z-index: 1001;
}

/* ============================================================
   SIDEBARS
   ============================================================ */
.sidebar-left,
.sidebar-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
}
.sidebar-left { left: 0; }
.sidebar-right { right: 0; }

/* ============================================================
   SIDEBAR CONTENT (GOTHIC PLACEHOLDERS)
   ============================================================ */
.sidebar-inner {
    padding: 15px 8px;
    text-align: center;
    color: #d9c48a;
    font-size: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 4px #000;
}

.sidebar-divider {
    width: 70%;
    height: 1px;
    margin: 10px auto;
    background: rgba(200,170,110,0.35);
    box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.sidebar-icon {
    width: 38px;
    height: 38px;
    margin: 10px auto;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    box-shadow:
        inset 0 0 8px rgba(0,0,0,0.9),
        0 0 4px rgba(200,170,110,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ============================================================
   CHAT POPUP (BOTTOM BAR OVERLAY)
   ============================================================ */
#chat-popup {
    position: fixed;
    bottom: 36px;
    right: 20px;
    width: 280px;
    height: 330px;
    background: rgba(15,15,15,0.92);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.6);
    display: none;
    z-index: 2001;
    backdrop-filter: blur(2px);
}

#chat-popup-messages {
    height: 270px;
    overflow-y: auto;
    padding: 8px;
    font-size: 12px;
    color: #e8e0c8;
    font-family: "Georgia", serif;
}
#chat-popup-messages div { margin-bottom: 6px; }
#chat-popup-messages b { color: #f0dca8; }
#chat-popup-messages span {
    color: #8a7f6a;
    font-size: 10px;
}

#chat-popup-input {
    width: 94%;
    margin: 6px;
    padding: 4px;
    background: rgba(30,30,30,0.9);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 4px;
    color: #e8e0c8;
    font-size: 12px;
}
#chat-popup-input:focus {
    outline: none;
    border-color: rgba(255,220,150,0.6);
    box-shadow: 0 0 6px rgba(200,170,110,0.4);
}

/* ============================================================
   BOTTOM BAR (GLOBAL FOOTER)
   ============================================================ */
#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(to top, rgba(10,10,10,0.95), rgba(25,25,25,0.85));
    border-top: 1px solid rgba(200,170,110,0.25);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    color: #d9c48a;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
    z-index: 3000;
}

.bottom-left,
.bottom-right {
    flex: 0 0 auto;
    width: 50px;
    display: flex;
    white-space: nowrap;
    font-size: 12px;
}
.bottom-left { padding-left: 12px; }
.bottom-right { padding-right: 12px; cursor: pointer; font-size: 13px; }

.bottom-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}
.bottom-center a {
    color: #d9c48a;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

/* ============================================================
   SETTINGS MENU
   ============================================================ */
#settings-menu {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 160px;
    background: rgba(15,15,15,0.92);
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7), inset 0 0 12px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    z-index: 3001;
    backdrop-filter: blur(2px);
}

#settings-menu a {
    padding: 10px;
    color: #d9c48a;
    text-decoration: none;
    font-family: "Cinzel", serif;
    font-size: 13px;
    border-bottom: 1px solid rgba(200,170,110,0.15);
}
#settings-menu a:last-child { border-bottom: none; }
#settings-menu a:hover {
    background: rgba(40,40,40,0.6);
    color: #f0dca8;
}

/* Shared toggle button style */
#settings-toggle,
#chat-toggle,
#staff-toggle {
    font-size: 18px;
    color: #d9c48a;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#settings-toggle,
#staff-toggle { margin-left: 12px; position: relative; top: 2px; }

#settings-toggle:hover,
#chat-toggle:hover,
#staff-toggle:hover {
    opacity: 1;
    color: #f0dca8;
    transform: translateY(-1px);
}

/* Mod button */
.mod-btn {
    cursor: pointer;
    color: #d9c48a;
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
    transition: opacity 0.15s ease, color 0.15s ease;
}
.mod-btn:hover {
    opacity: 1;
    color: #f0dca8;
}

/* Chat fade-out animation */
.chat-line { transition: opacity 0.25s ease; }
.chat-line.removing { opacity: 0; }

/* Spacers */
.spacer-3px,
.spacer-end {
    width: 100%;
    display: block;
    background: transparent;
}
.spacer-3px { height: 8px; }
.spacer-end { height: 30px; }

/* ============================================================
   PROFILE FRAME (two sizes used in different contexts)
   ============================================================ */
.profile-frame {
    border-radius: 6px;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255,255,255,0.25),
        rgba(180,180,200,0.15),
        rgba(60,60,80,0.25)
    );
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.35),
        inset 0 0 25px rgba(120,120,160,0.25),
        0 0 8px rgba(0,0,0,0.6);
}

.profile-frame.small { width: 80px; height: 80px; }
.profile-frame.wide  { width: 150px; height: 80px; }

/* ============================================================
   INVENTORY (STANDARD + ULTRA-SLIM)
   ============================================================ */
/* ============================================
   BASE INVENTORY ROW — SMALLER + TIGHTER
============================================ */

.inv-row {
    width: 92%;
    margin: 2px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    font-size: 10px;          /* smaller */
    color: #dcdcdc;
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 2px 5px;         /* tighter */
}

/* Standard mode overrides */
.inv-row.standard {
    margin: 3px auto;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;          /* slightly larger than base */
}

/* ============================================
   LEFT SIDE CONTENT
============================================ */

.inv-left {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;                 /* tighter */
    align-items: center;
}
.inv-left.standard { gap: 5px; }

/* Item name */
.inv-name {
    font-weight: 500;
    color: #e6e6e6;
    cursor: help;
    font-size: 9px;           /* smaller */
}
.inv-name.standard {
    font-weight: 600;
    font-size: 10px;
}

/* ============================================
   RARITY DOTS
============================================ */

.inv-dot {
    width: 5px;               /* smaller */
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.inv-dot.standard {
    width: 7px;
    height: 7px;
}

.rarity-0 { background:#777; }
.rarity-1 { background:#4a7bd1; }
.rarity-2 { background:#8a4ad1; }
.rarity-3 { background:#d1b04a; }
.rarity-empty { background:#444; }

/* ============================================
   STAT CHIPS
============================================ */

.inv-chip {
    font-size: 9px;           /* smaller */
    color: #aaa;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 1px 3px;
}
.inv-chip.standard {
    font-size: 10px;
    background: #181818;
    border: 1px solid #333;
    padding: 1px 4px;
}

/* ============================================
   QUANTITY BADGE
============================================ */

.inv-qty {
    background: #222;
    border: 1px solid #444;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 9px;           /* smaller */
    color: #ccc;
}
.inv-qty.standard {
    background: #333;
    border: 1px solid #555;
    padding: 1px 4px;
    font-size: 10px;
}

/* ============================================
   ACTION BUTTONS
============================================ */

.inv-actions { white-space: nowrap; }

.inv-btn {
    padding: 1px 4px;         /* tighter */
    margin-left: 3px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 9px;           /* smaller */
}
.inv-btn.standard {
    padding: 2px 5px;
    margin-left: 4px;
    background: #222;
    border: 1px solid #444;
    font-size: 10px;
}

.inv-btn:hover { background: #333; }
.inv-btn.standard:hover { background: #444; }

/* ============================================
   CATEGORY HEADERS
============================================ */

.inv-header {
    color:#c9b37f;
    margin-left:40px;
    margin-top:15px;
    font-size: 12px;          /* smaller */
    font-weight: 500;
}




/* === CHAT POPUP OVERRIDES === */
#chat-popup {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 99999;
}
#chat-popup-messages {
    position: relative;
    z-index: 99999;
}

/* === BUFF RARITY SHADOWS === */
.buff-shadow-1 { box-shadow: inset 0 0 4px rgba(77,163,255,0.7); }
.buff-shadow-2 { box-shadow: inset 0 0 4px rgba(197,107,255,0.7); }
.buff-shadow-3 { box-shadow: inset 0 0 4px rgba(212,175,55,0.7); }

.buff-plus {
    color: #90EE90;
    font-weight: bold;
    font-size: 20px;
    line-height: 38px;
    text-shadow: 0 0 6px #000;
}

/* === RARITY ICON SQUARES === */
.light-square, .rage-square {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 2px;
}
.light-square { background: #4da3ff; }
.rage-square { background: #ff4d4d; }

.rarity-label {
    margin-left: 6px;
    font-size: 0.9em;
    font-weight: bold;
}
.rarity-common { display: none; }
.rarity-rare { color: #4da3ff; }
.rarity-epic { color: #c56bff; }
.rarity-ancient { color: #d4af37; }

.level-tag {
    color: #6fa8dc;
    margin-right: 6px;
    font-weight: bold;
    font-size: 0.9em;
}

/* === LIGHT / RAGE ORBS === */
.light-orb, .rage-orb {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
.light-orb { background-image: url('images/lightorb.png'); }
.rage-orb  { background-image: url('images/rageorb38.png'); }

/* === CENTER SANCTUARY BARS === */
.sanctuary-wrapper,
.page-wrapperindex {
    width: 933px;
    margin: 0 auto;
}

/* === TOOLTIP === */
.tooltip { position: relative; cursor: help; }

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    max-width: 240px;
    white-space: pre-line;
    background: rgba(15,15,15,0.95);
    color: #e8d7a8;
    padding: 6px 10px;
    border: 1px solid rgba(200,170,110,0.35);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    z-index: 999999;
    box-shadow: 0 0 8px rgba(0,0,0,0.8), inset 0 0 6px rgba(0,0,0,0.6);
    pointer-events: none;
}

.tooltip:hover::before {
    content: "";
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent rgba(15,15,15,0.95) transparent transparent;
}

/* === HEADER WRAPPER === */
.header-wrapper {
    width: 100%;
    padding: 0;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

    box-shadow:
        inset 0 12px 18px rgba(10,10,12,1),
        inset 0 -12px 18px rgba(10,10,12,1),
        inset 0 0 40px rgba(10,10,12,1);

    border: none;
}


/* === INNER HEADER TABLE === */
.header-wrapper table[width="1133px"] {
    margin: 0 auto;
}

/* === DARK BAR TEXT === */
.dark-bar i { opacity: 0.85; }

/* === PROFILE FRAME OVERRIDE === */
.profile-frame {
    width: 150px;
    height: 80px;
    border-radius: 6px;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255,255,255,0.25),
        rgba(180,180,200,0.15),
        rgba(60,60,80,0.25)
    );
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.35),
        inset 0 0 25px rgba(120,120,160,0.25),
        0 0 10px rgba(0,0,0,0.7);
}

/* === HEADER SPACING === */
.header-wrapper td { padding: 0 6px; }

.header-center {
    padding: 4px 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}


/* ============================================================
   PAGE TITLE BAR — SECONDARY, SLIMMER, LESS ORNATE
   ============================================================ */
.page-title-bar {
    width: 100%;
    padding: 6px 20px;
    margin: 1px auto 3px auto;

    box-sizing: border-box; /* ← THIS FIXES THE OVERHANG */



    border-radius: 6px;

    box-shadow:
        inset 0 0 10px rgba(0,0,0,0.6),
        0 0 6px rgba(0,0,0,0.4);

    display: flex;
    justify-content: space-between;
    align-items: center;
}




/* Left side: Title + Subtitle inline */
.page-title-left {
    display: flex;
    align-items: baseline;
    gap: 8px; /* spacing between title and subtitle */
}

.page-title-main {
    font-family: "Cinzel", serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #E1E1E1;
    text-shadow: 0 0 2px #e8d7a8;
}

.page-title-sub {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #E1E1E1;
    opacity: 0.85;
    text-shadow: 0 0 1px #e8d7a8;
}

.page-sanctuary-btn {
      color: #e8d7a8;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px #E1E1E1;
    margin: 1px 0;

    display: flex;
    align-items: center;
    justify-content: center;
}
.page-title-main2 {
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #e8d7a8;
    text-shadow: 0 0 2px #E1E1E1;
}

.page-title-sub2 {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #e8d7a8;
    opacity: 0.85;
    text-shadow: 0 0 1px #E1E1E1;
}

.potion-table {
    border-collapse: separate;
    border-spacing: 6px;   /* visible gap */
    table-layout: fixed;
    margin: auto;
}

.potion-table td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.potionbox {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background-color: #575757;
    box-shadow: inset 0 0 5px #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.potion-inner {
    width: 80%;
    height: 80%;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 14px 14px 10px 10px;
    background: rgba(225,225,225,0.20);
    box-shadow:
        inset 0 0 6px rgba(255,255,255,0.08),
        inset 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.equip-flex {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    
}

.equip-col {
    width: 75%;
    
}

.potion-col {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top:14px;
}

.potion-table {
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.potion-table td {
    padding: 3px;
    text-align: center;
}

.potionbox {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ============================================
   EQUIPPED ITEMS — SMALLER + TIGHTER
============================================ */

.equip-flex {
    width: 97%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
}

.equip-col {
    width: 70%;
    padding: 1px 0;
}

.inventory-col {
    width: 30%;
    padding: 1px 0;
}
.equip-col2 {
    width: 50%;
    padding: 1px 0;
}
.potion-col2 {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top:14px;
}

.equip-flex table {
    border-collapse: collapse;
    margin: 0 0 2px 0;
    padding: 0;
}

.equip-flex table tr {
    height: 18px; /* slightly smaller */
}

/* LEFT LABEL (Weapon, Armor, etc.) */
.equippedleft {
    background-color: #575757;
    box-shadow: inset 0 0 5px #E1E1E1;
    border-radius: 20px 0 0 20px;
    text-align: center;
    font-style: italic;
    font-size: 10px;      /* smaller */
    padding: 2px 4px;     /* tighter */
    line-height: 1.0;
}

/* RIGHT SIDE (item name, rarity, unequip button) */
.equipped {


    padding: 2px 4px;     /* tighter */
    line-height: 1.0;
    font-size: 10px;      /* smaller */
    color: #ddd;
}

/* Buttons inside equipped section */
.equipped .inv-btn {
    font-size: 9px;       /* smaller */
    padding: 1px 4px;
    margin-left: 4px;
}


.otherboxinv {
 box-shadow: inset 15px 15px 15px #000,
 inset -15px -15px 15px #000
 ;

background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);

  
    /* Centering magic */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Optional but recommended for divs */
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;

}
/* Make index.php equipped section match inventory styling */


.otherbox .equipped .inv-name {
    color: #dcdcdc !important;
}

.otherbox .equipped .level-tag {
    color: #bfbfbf !important;
}
/* ============================================================
   EQUIPPED SECTION — READABILITY + GLOW FIXES
   ============================================================ */

.equipped {
    color: #e0e0e0;
    font-size: 11px;
    font-weight: 600;
    position: relative;
}

/* Dark readable item names */
.equipped .inv-name,
.potion-name {
    color: #dcdcdc !important;
    font-weight: 600;
}

/* Level tag light grey */
.equipped .level-tag,
.potion-inner .level-tag {
    color: #bfbfbf !important;
    font-weight: bold;
}

/* Rarity glow fix */
.equipped.rarity-rare,
.potion-inner.rarity-rare {
    box-shadow: inset 0 0 6px rgba(77,163,255,0.55);
}
.equipped.rarity-epic,
.potion-inner.rarity-epic {
    box-shadow: inset 0 0 6px rgba(197,107,255,0.55);
}
.equipped.rarity-ancient,
.potion-inner.rarity-ancient {
    box-shadow: inset 0 0 6px rgba(212,175,55,0.55);
}

/* Hover tooltip fix */
.equipped:hover .tooltip::after,
.equipped:hover .tooltip::before {
    opacity: 1;
}

/* Push UNEQUIP to far right */
.unequip-right {
    float: right;
    margin-left: auto;
}

/* ============================================================
   LIGHT / RAGE GLOW BEHIND TEXT
   ============================================================ */

.glow-light {
    background: radial-gradient(circle, rgba(120,170,255,0.18) 0%, rgba(0,0,0,0) 70%);
}

.glow-rage {
    background: radial-gradient(circle, rgba(255,90,90,0.18) 0%, rgba(0,0,0,0) 70%);
}
/* ============================================================
   EQUIPPED ROW — OUTER SHADOW BASED ON LIGHT/RAGE BALANCE
   ============================================================ */

/* Light-leaning item: faint icy blue outer shadow */
.equipped.glow-light {
    box-shadow:
        0 0 6px rgba(120,170,255,0.35),
        inset 0 0 2px #000;
}

/* Rage-leaning item: faint deep red outer shadow */
.equipped.glow-rage {
    box-shadow:
        0 0 6px rgba(255,60,60,0.35),
        inset 0 0 2px #000;
}

/* Equal light/rage → no outer shadow */
.equipped:not(.glow-light):not(.glow-rage) {
    box-shadow: inset 0 0 2px #000;
}
/* ============================================================
   RESTORE LIGHT BACKGROUND FOR EQUIPPED ROWS
   ============================================================ */


.otherbox .equipped.rarity-rare,
.otherbox .equipped.rarity-epic,
.otherbox .equipped.rarity-ancient {
   background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0)),
        radial-gradient(circle at 50% 30%, #1a1a1a 0%, #0a0a0a 75%);
}

/* ============================================================
   EQUIPPED ITEM NAME + LEVEL TAG COLOUR FIX
   ============================================================ */

/* Item name: deep near-black */
.equipped .inv-name,
.potion-inner .potion-name {
    color: #0A0A0C !important;
    font-weight: 600;
}

/* Level tag: darker grey */
.equipped .level-tag,
.potion-inner .level-tag {
    color: #7A7A7A !important;
    font-weight: bold;
}
/* ============================================================
   FORCE ITEM NAME + LEVEL TAG COLOURS IN BOTH INVENTORY + INDEX
   ============================================================ */

/* Item name: deep near-black */
.otherbox .equipped .inv-name,
.otherboxinv .equipped .inv-name,
.equipped .inv-name {
    color: #0A0A0C !important;
    font-weight: 600;
}

/* Level tag: darker grey */
.otherbox .equipped .level-tag,
.otherboxinv .equipped .level-tag,
.equipped .level-tag {
    color: #7A7A7A !important;
    font-weight: bold;
}
/* ============================================================
   FULL EQUIPPED BOX — RARITY INNER GLOW (GOTHIC STYLE)
   ============================================================ */

/* Rare */
.equipped.rarity-rare {
    box-shadow:
        inset 0 0 12px rgba(90,150,255,0.55),
        inset 0 0 6px rgba(0,0,0,0.65),
        0 0 0 rgba(0,0,0,0); /* preserve outer shadow layer */
}

/* Epic */
.equipped.rarity-epic {
    box-shadow:
        inset 0 0 14px rgba(180,80,255,0.60),
        inset 0 0 7px rgba(0,0,0,0.70),
        0 0 0 rgba(0,0,0,0);
}

/* Ancient */
.equipped.rarity-ancient {
    box-shadow:
        inset 0 0 16px rgba(212,175,55,0.70),
        inset 0 0 8px rgba(0,0,0,0.75),
        0 0 0 rgba(0,0,0,0);
}
/* ============================================================
   INVENTORY PAGE — LEVEL TAG + RARITY TEXT SHADOW
   ============================================================ */

/* Smaller, darker level tag */
.otherboxinv .equipped .level-tag,
.otherboxinv .inv-row .level-tag {
    font-size: 0.75em !important;
    color: #6A6A6A !important;
    font-weight: bold;
}

/* Rarity name with dark outer shadow */
.otherboxinv .equipped .rarity-label,
.otherboxinv .inv-row .rarity-label {
    text-shadow: 0 0 1px rgba(0,0,0,0.8);
}
/* ============================================================
   INDEX PAGE — LEVEL TAG + RARITY TEXT SHADOW
   ============================================================ */

/* Smaller, darker level tag */
.otherbox .equipped .level-tag {
    font-size: 0.75em !important;
    color: #6A6A6A !important;
    font-weight: bold;
}

/* Rarity name with dark outer shadow */
.otherbox .equipped .rarity-label {
    text-shadow: 0 0 1px rgba(0,0,0,0.8);
}
/* ============================================================
   INVENTORY PAGE — COOLER ITEM NAME
   ============================================================ */

.otherboxinv .equipped .inv-name,
.otherboxinv .inv-row .inv-name {
    color: #0A0A0C !important;
    font-weight: 650;
    letter-spacing: 0.3px;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.4),   /* subtle top highlight */
        0 0 3px rgba(0,0,0,0.35);        /* faint outer lift */
}
/* ============================================================
   INDEX PAGE — COOLER ITEM NAME
   ============================================================ */

.otherbox .equipped .inv-name {
    color: #0A0A0C !important;
    font-weight: 650;
    letter-spacing: 0.3px;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.4),
        0 0 3px rgba(0,0,0,0.35);
}
/* ============================================================
   INVENTORY PAGE — TEXT-ONLY LIGHT/RAGE GLOW
   ============================================================ */

/* ============================================================
   INVENTORY PAGE — ITEM NAME COLOUR BASED ON LIGHT/RAGE
   ============================================================ */

/* ============================================================
   INVENTORY PAGE — LIGHTER SKY-BLUE + DARK RED ITEM NAME
   ============================================================ */

/* Light-leaning item name (sky blue) */
.otherboxinv .inv-name.glow-light {
    color: #FFFFFF !important;
    text-shadow: 0 0 5px #000000;
}

/* Rage-leaning item name (dark red) */
.otherboxinv .inv-name.glow-rage {
    color: #B02020 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

/* Equal → normal colour */
.otherboxinv .inv-name:not(.glow-light):not(.glow-rage) {
    color: #0A0A0C !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

/* ============================================================
   INDEX PAGE — LIGHTER SKY-BLUE + DARK RED ITEM NAME
   ============================================================ */

/* Light-leaning item name (sky blue) */
.otherbox .inv-name.glow-light {
    color: #FFFFFF !important;
    text-shadow: 0 0 5px #000000;
}

/* Rage-leaning item name (dark red) */
.otherbox .inv-name.glow-rage {
    color: #B02020 !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

/* Equal → normal colour */
.otherbox .inv-name:not(.glow-light):not(.glow-rage) {
    color: #0A0A0C !important;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

/* ============================================================
   INVENTORY PAGE — DARKER BOX WHEN EQUIPPED
   ============================================================ */

/* Darker box whenever something is equipped */



.inventorystairs {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    border-radius: 10px;
margin-top: 3px;
    /* Tone balancing */


}

/* ============================================
   PRESTIGE ORB COLUMNS (LEFT + RIGHT)
============================================ */
.prestige-orb-wrapper {
    width: 100%;
    margin-top: -5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

/* Each side (left or right) */
.prestige-orb-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Two rows of 5 */
.prestige-orb-row {
    display: flex;
    gap: 6px;
}

/* Orb style */
.prestige-orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image: url('images/lightorb.png');
    background-size: cover;
    background-position: center;

    border: 1px solid rgba(200,170,110,0.25);
    box-shadow:
        inset 0 0 6px rgba(0,0,0,0.9),
        0 0 4px rgba(0,0,0,0.6);
}

/* Faded inactive look */
.prestige-faded {
    opacity: 0.25;
    filter: grayscale(100%) brightness(0.6);
}


