/*! ==========================================================================
 *  MOMU – DMN CMS "wealth" template  ·  Dark Bronze / Gold design system
 *  --------------------------------------------------------------------------
 *  Layout  : top-nav 40px → site-header 80px → hero → 3 columns (300 / 1fr / 300)
 *  Fonts   : Montserrat (variable), system fallbacks
 *  Palette : bg #0d0c0a · panel #0f0907→#1a130f · accent #d9a14b / #f0b24d
 *            parchment #e6d3ad · ink #3a2e1f
 *  All sizes are px based, layout is fully responsive (see mobile.css)
 * ========================================================================== */

/* ------------------------------------------------------------------------
   0. DESIGN TOKENS
   ------------------------------------------------------------------------ */
:root {
    /* surfaces */
    --bg:            #0d0c0a;
    --bg-deep:       #080504;
    --panel:         #151412;
    --panel-grad:    linear-gradient(90deg, #0f0907 0%, #1a130f 50%, #0f0907 100%);
    --panel-grad-v:  linear-gradient(180deg, rgba(42, 31, 22, .98) 0%, rgba(22, 17, 12, .98) 100%);
    --glass:         rgba(255, 255, 255, .03);
    --glass-2:       rgba(255, 255, 255, .05);
    --line:          rgba(255, 255, 255, .05);
    --line-warm:     rgba(110, 68, 37, .25);
    --inset:         inset 0 0 25px rgba(0, 0, 0, 1);

    /* text */
    --white:         #e6eef3;
    --cream:         #efe4d6;
    --muted:         #8f8975;
    --muted-2:       #9f8975;

    /* accents */
    --accent:        #d9a14b;
    --accent-2:      #e95f2b;
    --accent-3:      #f0b24d;
    --accent-deep:   #c87c1a;
    --gold-grad:     linear-gradient(180deg, #f0b24d 0%, #c87c1a 100%);
    --bronze-grad:   linear-gradient(180deg, #6f4529 0%, #4b2b1b 100%);
    --dark-grad:     linear-gradient(180deg, #4c3d2d 0%, #2d2319 100%);
    --green:         #87cd1c;
    --green-grad:    linear-gradient(180deg, #6f8a45 0%, #4f6831 100%);
    --red:           #ff6577;
    --red-grad:      linear-gradient(180deg, #8f2d2d 0%, #5a1c1c 100%);
    --blue:          #5aa6d6;

    /* parchment */
    --paper:         #e6d3ad;
    --paper-2:       #dcc59b;
    --paper-3:       #cfb588;
    --ink:           #3a2e1f;
    --ink-2:         #2c1810;
    --ink-muted:     #6b5a3a;
    --ink-link:      #7b1f1f;
    --paper-line:    rgba(110, 68, 37, .25);
    --paper-frame:   rgba(139, 69, 19, .2);

    /* layout */
    --max-w:         1320px;
    --col:           300px;
    --gap:           10px;
    --radius:        8px;
    --radius-sm:     4px;
    --transition:    all .25s cubic-bezier(.4, 0, .2, 1);

    --font:          'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* inline vector ornaments (no image files needed) */
    --icon-diamond:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 22.5 12 12 22.5 1.5 12Z' fill='none' stroke='%23d9a14b' stroke-width='1.4'/%3E%3Cpath d='M12 6.5 17.5 12 12 17.5 6.5 12Z' fill='%23f0b24d'/%3E%3Cpath d='M12 9.5 14.5 12 12 14.5 9.5 12Z' fill='%23fff1c7'/%3E%3C/svg%3E");
    --icon-chevron:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5 6.5 5 3 8.5' fill='none' stroke='%23e6974b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-arrow:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23f0b24d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-user:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a872' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
    --icon-lock:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a872' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    --icon-server:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a872' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1.5'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E");
    --icon-mail:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a872' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
    --icon-check:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6 12l7.5-8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-close:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2 2 12' stroke='%23ead4a3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --paper-noise:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li, form, label, table, tbody, thead, tr, th, td, header, footer, nav, section, main, aside, figure {
    margin: 0; padding: 0; border: 0;
}
html { overflow-y: scroll; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    color: var(--white);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}
#wrapper { position: relative; width: 100%; overflow: clip; }
#wrapper::after { /* warm bottom glow before footer */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 420px; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 100%, rgba(197, 118, 40, .28) 0%, rgba(120, 70, 25, .12) 35%, transparent 70%);
}
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent-3); text-decoration: none; transition: color .2s ease, background .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease; }
a:hover { color: #ffc46b; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: inherit; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; } h5, h6 { font-size: 13px; }
p { margin: 0 0 8px; }
strong, b { font-weight: 700; }
small { font-size: 85%; }
hr { border: 0; border-top: 1px solid var(--line-warm); margin: 14px 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(240, 178, 77, .55); outline-offset: 2px; }
::selection { background: rgba(240, 178, 77, .35); color: #fff; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { width: 100%; border-collapse: collapse; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); box-shadow: inset 0 0 5px rgba(0, 0, 0, .3); }
::-webkit-scrollbar-thumb { background: #24170f; border-radius: 5px; box-shadow: inset 0 0 5px rgba(0, 0, 0, .5); }
::-webkit-scrollbar-thumb:hover { background: #3b2516; }
* { scrollbar-width: thin; scrollbar-color: #24170f var(--bg-deep); }

/* ------------------------------------------------------------------------
   2. UTILITIES
   ------------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; flex-wrap: wrap; }
.flex-c { display: flex; align-items: center; flex-wrap: wrap; }
.flex-s { display: flex; justify-content: space-between; flex-wrap: wrap; }
.flex-s-c { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.flex-c-c { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-right { text-align: right; }
.accent { color: var(--accent); } .accent-2 { color: var(--accent-2); } .accent-3 { color: var(--accent-3); }
.muted { color: var(--muted); } .white { color: var(--cream); } .green { color: var(--green); } .red { color: var(--red); }
.gold { color: goldenrod; } .silver { color: silver; } .bronze { color: #c8884a; }
.online-green, .online, .verified-green { color: var(--green); }
.offline, .canceled-red { color: var(--red); }
.online-status { color: var(--green); text-shadow: 0 0 10px rgba(135, 205, 28, .5); }
.offline-status { color: var(--red); text-shadow: 0 0 10px rgba(255, 101, 119, .35); }
.bright:hover { filter: brightness(1.15); }
.text-gold-gradient {
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-3);
}
.tab { display: none; }
.tab.active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(135, 205, 28, .55); } 70% { box-shadow: 0 0 0 6px rgba(135, 205, 28, 0); } }

/* ------------------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------------------ */
.btn-gold, .btn-dark, .btn-bronze, .btn-green, .btn-red, .btn-ghost,
button.btn, a.btn, .btn,
.footer-login-btn, .gold-button, .green-button, .button, .button-small, .button-large, .button-smal,
.dmn-download-button, .dmn-donate-button, .buy_button, .custom_button, .more, .rating-more-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; padding: 8px 22px;
    font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .6px; line-height: 1.2;
    text-transform: uppercase; text-decoration: none; white-space: nowrap; text-align: center;
    border: 0; border-radius: var(--radius-sm); cursor: pointer; user-select: none;
    transition: filter .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
/* primary (gold) */
.btn-gold, .btn, .btn-primary, .footer-login-btn, .gold-button, .dmn-download-button, .dmn-donate-button, .more, .rating-more-btn, .buy_button {
    background: var(--gold-grad); color: #151412 !important; text-shadow: 0 1px 0 rgba(255, 240, 200, .35);
    box-shadow: inset 0 1px 0 rgba(255, 232, 185, .35), 0 6px 14px rgba(0, 0, 0, .35);
}
.btn-gold:hover, .btn:hover, .btn-primary:hover, .footer-login-btn:hover, .gold-button:hover, .dmn-download-button:hover, .dmn-donate-button:hover, .more:hover, .rating-more-btn:hover, .buy_button:hover {
    filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 232, 185, .4), 0 0 14px rgba(240, 178, 77, .6), 0 6px 14px rgba(0, 0, 0, .35); transform: translateY(-1px);
}
.btn-gold:active, .btn:active, .btn-primary:active { transform: translateY(0); filter: brightness(.95); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .28); }
.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:focus, .btn-primary.focus {
    background: var(--gold-grad); color: #151412; border: 0; box-shadow: 0 0 0 3px rgba(240, 178, 77, .25);
}
/* dark */
.btn-dark, .btn-secondary, .button-small, .button-smal, .custom_button {
    background: var(--dark-grad); color: #fff !important; text-shadow: 1px 1px 1px #000;
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .35);
}
.btn-dark:hover, .btn-secondary:hover, .button-small:hover, .button-smal:hover, .custom_button:hover {
    filter: brightness(1.13); border-color: rgba(210, 160, 105, .42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 18px rgba(125, 91, 55, .45); transform: translateY(-1px);
}
/* bronze */
.btn-bronze, .button, .btn-info, .btn-light, .btn-outline-primary {
    background: var(--bronze-grad); color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .65);
    border: 1px solid rgba(69, 37, 20, .75);
    box-shadow: inset 0 1px 0 rgba(255, 220, 170, .12), 0 1px 2px rgba(50, 25, 10, .15);
}
.btn-bronze:hover, .button:hover, .btn-info:hover, .btn-light:hover, .btn-outline-primary:hover {
    background: linear-gradient(180deg, #84552f 0%, #59331f 100%); border-color: rgba(137, 84, 38, .85); transform: translateY(-1px);
}
/* green */
.btn-green, .btn-success, .green-button { background: var(--green-grad); color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .55); border: 1px solid rgba(61, 86, 35, .75); box-shadow: inset 0 1px 0 rgba(230, 255, 190, .14), 0 1px 2px rgba(45, 55, 20, .14); }
.btn-green:hover, .btn-success:hover, .green-button:hover { background: linear-gradient(180deg, #7f9d50 0%, #5a7437 100%); border-color: rgba(77, 105, 42, .9); transform: translateY(-1px); }
/* red */
.btn-red, .btn-danger, .btn-warning { background: var(--red-grad); color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .55); border: 1px solid rgba(120, 40, 40, .75); }
.btn-red:hover, .btn-danger:hover, .btn-warning:hover { background: linear-gradient(180deg, #a83737 0%, #6d2222 100%); transform: translateY(-1px); }
/* ghost */
.btn-ghost, .btn-link, .btn-outline-secondary { background: transparent; border: 1px solid rgba(255, 255, 255, .1); color: var(--muted) !important; box-shadow: none; }
.btn-ghost:hover, .btn-link:hover, .btn-outline-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff !important; }
/* sizes */
.btn-sm, .btn-group-sm > .btn, .button-small { min-height: 28px; padding: 4px 12px; font-size: 11px; letter-spacing: .4px; }
.btn-lg, .button-large { min-height: 48px; padding: 12px 32px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn.disabled, button:disabled, .button:disabled { opacity: .5; cursor: default; filter: none; transform: none; box-shadow: none; }
.btn-primary.dropdown-toggle::after { border-top-color: #151412; }

/* ------------------------------------------------------------------------
   4. FORMS (dark context)
   ------------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="date"],
select, textarea, .form-control, .custom-select {
    width: 100%; height: 40px; line-height: 40px; padding: 0 12px;
    font-family: var(--font); font-size: 13px; color: #fff;
    background: transparent; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm);
    box-shadow: var(--inset); outline: none; appearance: none; -webkit-appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea, textarea.form-control { height: auto; min-height: 120px; line-height: 1.5; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #777; opacity: 1; }
input:hover, select:hover, textarea:hover, .form-control:hover { border-color: rgba(240, 178, 77, .55); }
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--accent-3); box-shadow: var(--inset), 0 0 8px rgba(240, 178, 77, .4); color: #fff; background: transparent; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; line-height: 1; padding: 0; margin: 0 6px 0 0; vertical-align: -3px; box-shadow: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; background: rgba(0, 0, 0, .4); cursor: pointer; position: relative; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--gold-grad); border-color: var(--accent-deep); }
input[type="checkbox"]:checked::after { content: ""; position: absolute; inset: 0; background: var(--icon-check) center / 11px no-repeat; }
input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #151412; }
input[type="file"] { height: auto; line-height: 1.4; padding: 8px; box-shadow: none; border-style: dashed; color: var(--muted); font-size: 12px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 12px; border: 0; border-radius: 3px; background: var(--dark-grad); color: #fff; font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
select, .custom-select { padding-right: 32px; background: var(--icon-arrow) right 12px center / 12px 8px no-repeat; cursor: pointer; }
select option { background: var(--bg-deep); color: #fff; }
select:has(option.placeholder:checked) { color: #777; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff; caret-color: #fff; -webkit-box-shadow: var(--inset), 0 0 0 1000px #100b08 inset; transition: background-color 9999s ease-in-out 0s;
}
label, .control-label { display: inline-block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-3); }
.form-group { position: relative; margin-bottom: 18px; }
.form-group > div { position: relative; }
.form-text { color: var(--muted); font-size: 12px; }
/* floating label + icon variant (sidebar login) */
.fg-float { position: relative; margin-bottom: 20px; }
.fg-float label { position: absolute; top: -7px; left: 40px; z-index: 2; margin: 0; padding: 0 6px; font-size: 10px; font-weight: 600; color: var(--accent-3); background: linear-gradient(180deg, #1a130f 0%, #0f0907 100%); border-radius: 4px; pointer-events: none; }
.fg-float input, .fg-float select { padding-left: 44px; }
.fg-float .input-icon { position: absolute; top: 50%; left: 14px; width: 16px; height: 16px; transform: translateY(-50%); opacity: .55; pointer-events: none; z-index: 2; background: center / contain no-repeat; }
.fg-float .input-icon.user { background-image: var(--icon-user); }
.fg-float .input-icon.pass { background-image: var(--icon-lock); }
.fg-float .input-icon.server { background-image: var(--icon-server); }
.fg-float .input-icon.mail { background-image: var(--icon-mail); }
.fg-float input:focus ~ .input-icon, .fg-float:hover .input-icon { opacity: .95; }
.input-wrap { position: relative; }
.input-wrap::before { display: none; }
/* switch */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #241a12; border-radius: 22px; transition: .3s; box-shadow: var(--inset); }
.slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #8f8975; border-radius: 50%; transition: .3s; }
input:checked + .slider { background: var(--accent-deep); }
input:checked + .slider::before { transform: translateX(20px); background: #fff; }
/* captcha slider (QapTcha) */
.QapTcha { padding: 6px 0; }
.QapTcha .bgSlider { width: 100%; max-width: 260px; height: 40px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--inset); position: relative; }
.QapTcha .bgSlider .slider { position: absolute; top: 3px; left: 3px; width: 44px; height: 32px; border-radius: 3px; background: var(--gold-grad); cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.QapTcha .txtStatus { margin-top: 6px; font-size: 11px; color: var(--muted); }
.QapTcha .dropSuccess { color: var(--green); }
.QapTcha .dropError { color: var(--muted); }
.g-recaptcha { display: inline-block; padding: 5px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 5px; }

/* ------------------------------------------------------------------------
   5. TOP NAV (40px quick bar)
   ------------------------------------------------------------------------ */
.top-nav { position: relative; z-index: 6; height: 40px; font-size: 12px; background: var(--panel-grad); }
.top-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(185, 103, 43, .35), transparent); }
.top-nav-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; height: 40px; }
.top-nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; }
.top-nav-left { display: flex; align-items: center; gap: 14px; color: var(--cream); white-space: nowrap; }
.top-nav-left .time-text { color: var(--muted-2); }
.top-nav-left b { font-weight: 600; color: var(--cream); }
.top-nav-center { position: absolute; left: 50%; top: 0; transform: translateX(-50%); line-height: 40px; font-size: 11px; color: var(--cream); white-space: nowrap; }
.top-nav-center .online-green { color: var(--green); font-weight: 700; }
.top-nav-right { display: flex; align-items: center; gap: 6px; color: var(--cream); white-space: nowrap; }
.top-nav-right a { color: var(--accent); font-weight: 600; }
.top-nav-right a:hover { color: #ffc46b; text-decoration: underline; text-underline-offset: 3px; }
.top-nav-right .sep { color: rgba(255, 255, 255, .2); margin: 0 4px; }
.top-nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: #fff; transition: background .3s ease; }
.top-nav-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.top-nav-btn.exit-btn:hover { color: var(--red); }
.top-nav-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ------------------------------------------------------------------------
   6. SITE HEADER (brand + main nav)
   ------------------------------------------------------------------------ */
.site-header { position: relative; z-index: 5; width: 100%; height: 80px; background: #0f0907; border-bottom: 1px solid rgba(255, 255, 255, .03); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.site-header.scrolled { position: fixed; top: 0; left: 0; right: 0; background: rgba(8, 5, 4, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0, 0, 0, .5); animation: fadeIn .25s ease; }
body.header-fixed #wrapper { padding-top: 80px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.brand .logo { display: flex; align-items: center; justify-content: center; width: auto; height: 62px; }
.brand .logo img { height: 58px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(1.05) drop-shadow(0 0 8px rgba(224, 129, 47, .15)); transition: transform .3s ease, filter .3s ease; }
.brand:hover .logo img { filter: brightness(1.2) drop-shadow(0 0 12px rgba(224, 129, 47, .45)); transform: scale(1.06) rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
    background-image: linear-gradient(180deg, #f0b24d, #c87c1a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-3);
    filter: drop-shadow(0 0 14px rgba(255, 48, 0, .25)); }
.brand-subtitle { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.main-nav { display: flex; align-items: stretch; height: 80px; margin-left: auto; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 8px; height: 80px; padding: 0 14px; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; border-radius: 6px; transition: color .2s ease; }
.main-nav a svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: opacity .2s ease, filter .2s ease; }
.main-nav a span { line-height: 1; }
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: #ffb347; box-shadow: 0 0 3px #ffb347, 0 0 8px #ff8c00, 0 2px 12px rgba(255, 140, 0, .8); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; pointer-events: none; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-3); text-shadow: 0 0 30px rgba(255, 48, 0, 1); }
.main-nav a:hover svg, .main-nav a.active svg { opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 160, 60, .7)); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:active::after { background: #ffd38a; box-shadow: 0 0 5px #ffd38a, 0 0 12px #ffb347, 0 2px 18px rgba(255, 180, 80, .9); }
.main-nav .nav-badge { margin-left: 2px; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: .5px; border-radius: 4px; background: linear-gradient(135deg, gold, #dc2626); color: #fff; }
/* burger */
.nav-toggle { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin-left: auto; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-3); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------ */
.hero { position: relative; z-index: 1; width: 100%; height: 480px; overflow: hidden; background: #0d0c0a url(../images/header.jpg) center 12% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 12, 10, .3) 0%, rgba(13, 12, 10, .2) 30%, rgba(13, 12, 10, .6) 68%, #0d0c0a 100%), linear-gradient(to right, rgba(13, 12, 10, .55) 0%, rgba(13, 12, 10, 0) 45%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 110%, rgba(220, 140, 50, .25) 0%, transparent 55%), radial-gradient(ellipse at 15% 70%, rgba(200, 124, 26, .14) 0%, transparent 45%); mix-blend-mode: screen; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 130px; }
.hero-caption { max-width: 560px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); animation: riseIn .6s ease; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-3); border: 1px solid rgba(240, 178, 77, .35); border-radius: 4px; background: rgba(13, 12, 10, .55); backdrop-filter: blur(4px); text-shadow: none; }
.hero-kicker::before { content: ""; width: 10px; height: 10px; background: var(--icon-diamond) center / contain no-repeat; }
.hero-title { margin: 0 0 10px; font-size: 56px; font-weight: 900; letter-spacing: 5px; line-height: 1; text-transform: uppercase; color: var(--accent-3); background-image: linear-gradient(180deg, #fff3cf 0%, #f0b24d 45%, #c87c1a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .75)) drop-shadow(0 0 18px rgba(240, 178, 77, .3)); }
.hero-title small { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; letter-spacing: 7px; -webkit-text-fill-color: #e6d3ad; color: #e6d3ad; }
.hero-tagline { max-width: 480px; margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: #e6d3ad; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-gold, .hero-actions .btn-dark { min-height: 42px; padding: 10px 26px; text-shadow: none; }
.hero-actions .btn-dark { text-shadow: 1px 1px 1px #000; }
/* countdown box */
.countdown-wrapper { width: 100%; max-width: 300px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.countdown-title { width: 100%; font-size: 15px; font-weight: 700; text-align: center; color: #fff; text-shadow: 1px 0 2px #000; }
.countdown-timer { display: flex; justify-content: center; gap: 4px; }
.time-box { width: 54px; height: 60px; border-radius: 8px; text-align: center; background: rgba(0, 0, 0, .7); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--inset); }
.time-label { padding: 4px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-3); }
.time-value { padding-top: 2px; font-size: 18px; font-weight: 700; color: #fff; text-shadow: #000 0 0 3px; }

/* ------------------------------------------------------------------------
   8. MAIN GRID
   ------------------------------------------------------------------------ */
.site-main { position: relative; z-index: 3; margin-top: -120px; padding-bottom: 60px; }
.site-grid { display: grid; grid-template-columns: var(--col) minmax(0, 1fr) var(--col); gap: var(--gap); align-items: start; }
.site-aside, .site-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.site-content { min-width: 0; animation: riseIn .5s ease; }
.site-aside { padding: 18px 16px; border-radius: var(--radius); background: var(--panel-grad); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.site-right { padding-top: 0; }
.site-right .right-stack { display: flex; flex-direction: column; gap: 18px; padding: 18px 16px; border-radius: var(--radius); background: var(--panel-grad); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }

/* time bar (top of right column) */
.time-bar { display: flex; justify-content: space-between; gap: 10px; height: 40px; align-items: center; padding: 0 4px 0; font-size: 12px; color: var(--cream); }
.time-bar .time-text { color: var(--muted-2); }
.time-bar b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------------
   9. PANEL BLOCKS (sidebar widgets)
   ------------------------------------------------------------------------ */
.panel-block { width: 100%; color: var(--white); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-icon { flex: 0 0 30px; width: 30px; height: 30px; background: var(--icon-diamond) center / 22px no-repeat; filter: drop-shadow(0 0 6px rgba(224, 129, 47, .35)); }
.panel-title { display: flex; flex-direction: column; min-width: 0; }
.panel-title strong { font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--cream); line-height: 1.2; }
.panel-title span { font-size: 11px; color: var(--muted-2); }
.panel-head .panel-action { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.panel-head .panel-action:hover { color: var(--accent-3); }
.panel-body { padding: 0 2px; }
.panel-note { font-size: 11px; font-style: italic; color: var(--muted); text-align: center; padding: 10px 6px; }
.panel-sep { height: 1px; margin: 4px 0; background: var(--line-warm); }

/* login panel footer */
.login-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; }
.footer-links .forgot { color: var(--muted); }
.footer-links .signup { color: var(--accent-3); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-panel .captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.login-panel .captcha-row img { height: 40px; border-radius: 4px; border: 1px solid var(--line); cursor: pointer; }

/* account panel (logged in) */
.account-user { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 10px; border-radius: 10px; box-shadow: var(--inset); }
.avatar { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #151412; background: var(--gold-grad); box-shadow: 0 0 0 2px #1d140e, 0 0 14px rgba(240, 178, 77, .35); text-transform: uppercase; }
.avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #1d140e; animation: pulse 2.4s infinite; }
.account-meta { min-width: 0; }
.account-meta strong { display: block; font-size: 14px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-meta span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-list { margin: 6px 0 10px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 6px; transition: background .2s ease; }
.wallet-row:hover { background: rgba(255, 255, 255, .025); }
.wallet-row a { display: flex; width: 100%; justify-content: space-between; align-items: center; color: inherit; }
.wallet-title { font-size: 12px; font-weight: 600; color: var(--muted-2); text-shadow: 1px 1px 1px #000; }
.wallet-value { font-size: 14px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.wallet-value.gold { background: linear-gradient(to bottom, #ffe88a 0%, #ffd443 22%, #f3b012 55%, #bf7400 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wallet-value.silver { background: linear-gradient(to bottom, #e9e9e9 0%, #cfcfcf 20%, #9e9e9e 55%, #7e9e9e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wallet-value.bronze { background: linear-gradient(to bottom, #ffb16d 0%, #ff9644 25%, #a06f28 58%, #9f4516 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wallet-value.cream { color: var(--cream); }
.side-menu li { margin-bottom: 2px; }
.menu-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 35px; padding: 0 14px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--muted-2); text-shadow: 1px 1px 1px #000; transition: background .2s ease, color .2s ease; }
.menu-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.menu-link::before { content: ""; width: 10px; height: 10px; flex: 0 0 10px; background: var(--icon-chevron) center / contain no-repeat; opacity: .8; }
.menu-link:hover, .menu-link.active { background: rgba(255, 255, 255, .05); color: #fff; }
.menu-link.exit { color: var(--muted); }
.menu-link.exit:hover { color: var(--red); }

/* discord button */
.discord-join-btn { display: inline-flex; align-items: center; gap: 12px; width: 100%; height: 70px; padding: 0 16px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--white); font-weight: 700; font-size: 12px; transition: background .3s ease, box-shadow .3s ease, transform .2s ease; }
.discord-join-btn .discord-logo { width: 34px; height: 34px; fill: var(--white); flex-shrink: 0; }
.discord-join-btn .discord-text { display: flex; flex-direction: column; line-height: 1.3; }
.discord-join-btn .online-count { font-weight: 400; font-size: 11px; color: var(--white); opacity: .85; }
.discord-join-btn:hover { background: #5865F2; color: #fff; box-shadow: 0 6px 16px rgba(88, 101, 242, .4); transform: translateY(-2px); }

/* media / social small buttons */
.media-links { display: flex; gap: 8px; }
.media-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 0; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .04); transition: .2s ease; }
.media-btn svg { width: 14px; height: 14px; fill: currentColor; }
.media-btn.fb { background: linear-gradient(180deg, #141b23, #0f151c); color: #7fa2d6; }
.media-btn.fb:hover { background: linear-gradient(180deg, #253a56, #1a2c3f); color: #a9c8ff; box-shadow: 0 0 10px rgba(59, 89, 152, .4); }
.media-btn.yt { background: linear-gradient(180deg, #2b1a1a, #1f1414); color: #ff4d4d; }
.media-btn.yt:hover { background: linear-gradient(180deg, #452424, #2f1414); color: #ff6577; box-shadow: 0 0 10px rgba(255, 77, 77, .25); }
.media-btn.dc { background: linear-gradient(180deg, #1d1f3a, #15172a); color: #a8b0ff; }
.media-btn.dc:hover { background: #5865F2; color: #fff; }

/* ranking tabs (players / guilds) */
.rank-tabs { display: flex; padding: 4px; margin-bottom: 10px; border-radius: 10px; box-shadow: var(--inset); }
.rank-tab { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: center; transition: .2s ease; }
.rank-tab:hover { color: #fff; }
.rank-tab.active { background: var(--gold-grad); color: #151412; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.server-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; padding-top: 10px; font-size: 11px; }
.server-tabs button, .server-tabs span, .server-tabs a { padding: 2px 4px; min-height: 0; font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); background: none; border: 0; box-shadow: none; }
.server-tabs button:hover, .server-tabs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; transform: none; filter: none; }
.server-tabs .active { color: var(--accent-3); }

/* top table (sidebar rankings) */
.top-table, .scroll-table table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--white); }
.top-table thead th, .scroll-table thead th { height: 32px; padding: 6px 6px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted-2); background: rgba(0, 0, 0, .3); text-align: center; border: 0; }
.top-table thead th:nth-child(2), .scroll-table thead th.second-cell { text-align: left; }
.top-table tbody tr, .scroll-table tbody tr { height: 34px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.top-table tbody tr:hover, .scroll-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
.top-table tbody td, .scroll-table tbody td { padding: 4px 6px; text-align: center !important; border: 0; vertical-align: middle; }
.scroll-table td.second-cell, .top-table .col-name { text-align: left !important; }
.scroll-table td.first-cell, .top-table .col-place { width: 32px; font-weight: 700; color: var(--accent); }
.scroll-table tbody tr:nth-child(1) td.first-cell { color: #ffd443; } .scroll-table tbody tr:nth-child(2) td.first-cell { color: #d8d8d8; } .scroll-table tbody tr:nth-child(3) td.first-cell { color: #ff9644; }
.scroll-table td a, .top-table td a { color: var(--white); font-weight: 600; }
.scroll-table td a:hover, .top-table td a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.scroll-table td img, .top-table td img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.scroll-table sup, .top-table sup { font-size: 9px; color: var(--accent-3); margin-left: 1px; }

/* server card */
.server-list { display: flex; flex-direction: column; gap: 8px; }
.server-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 70px; padding: 10px 14px; border-radius: 8px; box-shadow: var(--inset); transition: background .25s ease; }
.server-item:hover { background: rgba(255, 130, 30, .1); }
.server-item.is-offline:hover { background: rgba(231, 76, 60, .1); }
.server-icon { flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--icon-diamond) center / 26px no-repeat; filter: drop-shadow(0 0 6px rgba(224, 129, 47, .35)); }
.server-icon.is-grayscale { filter: grayscale(1) opacity(.5); }
.server-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.server-info .top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fff; }
.server-info .top-row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-info .top-row .online { color: var(--green); font-size: 13px; }
.server-info .top-row .online.offline { color: var(--red); }
.server-info .bottom-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.server-info .bottom-row .stage { color: var(--accent-3); font-weight: 600; }
.load-bar { width: 100%; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.load-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: barWidth 1.6s ease forwards; }
@keyframes barWidth { from { width: 0; } }

/* events list (#events gets filled by App.events) */
.events-list > div, .mu-event { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 4px; column-gap: 10px; padding: 10px 6px; border-bottom: 1px dashed rgba(255, 255, 255, .08); font-size: 12px; transition: background .2s ease; }
.events-list > div:last-child { border-bottom: 0; }
.events-list > div:hover { background: rgba(255, 255, 255, .03); }
.events-list > div > span:first-child { grid-column: 1; grid-row: 1; color: var(--white); font-weight: 600; }
.events-list > div > span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; color: var(--cream); font-variant-numeric: tabular-nums; }
.events-list > div::after { content: attr(data-sub); grid-column: 1; grid-row: 2; font-size: 11px; color: var(--muted); }
.events-list > div::before { content: ""; }
.events-list > div > span:first-child::before { content: "\25C6  "; color: var(--accent); font-size: 8px; vertical-align: 2px; }
.events-empty { padding: 14px 6px; font-size: 12px; font-style: italic; color: var(--muted); text-align: center; }

/* market list */
.market-list { width: 100%; }
.market-item { display: flex; align-items: center; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.market-item a { display: flex; align-items: center; width: 100%; padding: 8px 4px; color: var(--white); gap: 10px; }
.market-item a:hover { background: rgba(255, 255, 255, .05); }
.market-item .item-img { width: 36px; height: 36px; flex: 0 0 36px; }
.market-item .item-name { font-size: 11px; }
.market-item .item-price { font-size: 11px; color: var(--accent-3); margin-left: auto; }
ul.style3 li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; font-size: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
ul.style3 li:last-child { border-bottom: 0; }
ul.style3 li a { color: var(--white); }

/* ------------------------------------------------------------------------
   10. PARCHMENT (center column)
   ------------------------------------------------------------------------ */
.parchment, .dmn-page-box {
    position: relative; width: 100%; color: var(--ink);
    padding: 34px 34px 40px;
    background:
        var(--paper-noise),
        radial-gradient(ellipse at 50% 0%, rgba(255, 250, 235, .55) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(120, 80, 30, .22) 0%, transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 60%, var(--paper-3) 100%);
    border: 1px solid rgba(110, 68, 37, .5);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 220, .35), inset 0 0 70px rgba(100, 60, 20, .28), 0 25px 60px rgba(0, 0, 0, .65), 0 0 0 4px rgba(20, 12, 6, .6);
    animation: riseIn .5s ease;
}
/* corner ornaments */
.parchment::before, .parchment::after, .dmn-page-box::before, .dmn-page-box::after {
    content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none; opacity: .9;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46' fill='none' stroke='%238a5a28' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 43V12c0-5 4-9 9-9h31'/%3E%3Cpath d='M9 43V16c0-3 2-5 5-5h29'/%3E%3Cpath d='M3 12c6 0 9 3 9 9M12 3c0 6-3 9-9 9'/%3E%3Ccircle cx='8' cy='8' r='2' fill='%23b8862f' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.parchment::before, .dmn-page-box::before { top: 6px; left: 6px; }
.parchment::after, .dmn-page-box::after { top: 6px; right: 6px; transform: scaleX(-1); }
.parchment > .corner-b, .dmn-page-box > .corner-b { position: absolute; left: 6px; bottom: 6px; width: 46px; height: 46px; pointer-events: none; opacity: .9; transform: scaleY(-1);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46' fill='none' stroke='%238a5a28' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 43V12c0-5 4-9 9-9h31'/%3E%3Cpath d='M9 43V16c0-3 2-5 5-5h29'/%3E%3Cpath d='M3 12c6 0 9 3 9 9M12 3c0 6-3 9-9 9'/%3E%3Ccircle cx='8' cy='8' r='2' fill='%23b8862f' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.parchment > .corner-b.right, .dmn-page-box > .corner-b.right { left: auto; right: 6px; transform: scale(-1, -1); }
.parchment > *, .dmn-page-box > * { position: relative; z-index: 1; }

.block { width: 100%; margin-bottom: 26px; color: var(--ink); }
.block:last-child { margin-bottom: 0; }
.block-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; margin-bottom: 10px; border-bottom: 1px solid var(--paper-line); }
.block-header h3, .block-header h2, .parch-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: .2px; }
.block-link { font-size: 12px; color: var(--ink-link); }
.block-link:hover { color: #a12c2c; text-decoration: underline; text-underline-offset: 3px; }
.parchment p, .dmn-page-box p { color: var(--ink); }
.parchment a:not(.btn):not(.gold-button):not(.button), .dmn-page-content a:not(.btn):not(.gold-button):not(.button):not(.btn-primary):not(.nav-link):not(.page-link):not(.dropdown-item):not(.list-group-item) { color: var(--ink-link); }
.parchment a:not(.btn):hover, .dmn-page-content a:not(.btn):not(.nav-link):hover { color: #a12c2c; text-decoration: underline; text-underline-offset: 3px; }

/* announcements */
.announcements { padding: 4px 6px; font-size: 13px; letter-spacing: -.1px; }
.announcements li { position: relative; margin-bottom: 8px; padding-left: 24px; line-height: 1.5; }
.announcements li::before { content: "\2714"; position: absolute; left: 2px; top: 0; color: #28a745; font-size: 14px; }
.announcements b, .announcements strong { color: var(--ink-2); }
.panel-text { font-size: 13px; line-height: 1.55; margin: 12px 0; }

/* news */
.news-article { margin-bottom: 26px; }
.news-article:last-child { margin-bottom: 0; }
.news-title, h2.news-title { display: block; margin: 20px 0 10px; font-size: 17px; font-weight: 800; text-transform: uppercase; color: var(--ink-2); letter-spacing: .2px; }
a.news-title:hover { color: var(--ink-link); text-decoration: underline; text-underline-offset: 4px; }
.news-image { width: 100%; margin: 15px 0; padding: 10px; background: var(--paper-frame); border-radius: 3px; }
.news-image img { display: block; width: 100%; height: auto; border-radius: 2px; }
.news-text { font-size: 13px; line-height: 1.6; margin-bottom: 15px; letter-spacing: -.1px; overflow-wrap: anywhere; }
.news-text p { margin-bottom: 8px; }
.news-text img { max-width: 100%; height: auto; }
.news-text ul, .news-text ol { padding-left: 20px; margin-bottom: 8px; list-style: disc; }
.news-text ol { list-style: decimal; }
.news-footer { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; font-size: 12px; color: var(--ink-muted); border-bottom: 1px solid var(--paper-line); }
.news-date { font-style: italic; }
.news-read-more { color: var(--ink-link); font-weight: 600; }
.news-read-more:hover { text-decoration: underline; }
.news-tag { display: inline-block; margin-right: 6px; padding: 2px 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 3px; color: #fff; background: linear-gradient(180deg, #b88632, #8a5f22); vertical-align: 2px; }

/* gallery strip */
.gallery { position: relative; padding: 4px 0; }
.gallery-viewport { position: relative; width: 100%; overflow: hidden; padding: 2px; }
.gallery-track { display: flex; gap: 10px; transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.gallery-track > a { flex: 0 0 calc((100% - 30px) / 4); padding: 1px; border-radius: 5px; background: var(--paper-frame); overflow: hidden; }
.gallery-track > a img { display: block; width: 100%; height: 80px; object-fit: cover; border-radius: 4px; transition: transform .25s ease; }
.gallery-track > a:hover img { transform: scale(1.05); }
.gallery-nav { position: absolute; top: 50%; z-index: 3; width: 28px; height: 28px; transform: translateY(-50%); padding: 0; border: 1px solid rgba(158, 98, 27, .85); border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(72, 36, 9, .99) 0%, rgba(43, 23, 8, .99) 48%, #140e09 76%, #080706 100%);
    box-shadow: 0 0 0 2px rgba(29, 20, 12, .95), 0 2px 7px rgba(0, 0, 0, .9), 0 0 6px rgba(160, 96, 22, .32), inset 0 1px 0 rgba(255, 218, 139, .13); transition: filter .2s ease, box-shadow .2s ease; }
.gallery-nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-top: 2px solid #ead4a3; border-right: 2px solid #ead4a3; filter: drop-shadow(0 0 2px rgba(199, 121, 28, .7)); }
.gallery-nav.prev { left: -24px; } .gallery-nav.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.gallery-nav.next { right: -24px; } .gallery-nav.next::before { transform: translate(-65%, -50%) rotate(45deg); }
.gallery-nav:hover { filter: brightness(1.22); box-shadow: 0 0 0 2px rgba(29, 20, 12, .95), 0 3px 9px rgba(0, 0, 0, .95), 0 0 10px rgba(205, 128, 29, .55), inset 0 1px 0 rgba(255, 223, 150, .2); }
/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 40px 80px; background: rgba(0, 0, 0, .94); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox-frame { position: relative; padding: 7px; border: 1px solid rgba(158, 98, 27, .8); border-radius: 6px; background: radial-gradient(circle at 50% 20%, rgba(65, 34, 11, .98) 0%, rgba(33, 20, 10, .99) 38%, #0d0a07 75%, #050505 100%); box-shadow: 0 20px 60px #000, 0 0 14px rgba(160, 96, 22, .28); }
.lightbox-frame img { display: block; width: min(1000px, calc(100vw - 200px)); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(158, 98, 27, .88); background: radial-gradient(circle at 50% 38%, rgba(72, 36, 9, .99) 0%, rgba(43, 23, 8, .99) 48%, #140e09 76%, #080706 100%) , var(--icon-close) center / 12px no-repeat; background-blend-mode: normal; box-shadow: 0 0 0 2px rgba(29, 20, 12, .95), 0 3px 9px rgba(0, 0, 0, .95); }
.lightbox-close::after { content: ""; position: absolute; inset: 0; background: var(--icon-close) center / 12px no-repeat; }
.lightbox-close:hover { filter: brightness(1.25); }

/* ------------------------------------------------------------------------
   11. INNER PAGES  (.dmn-content / .dmn-page-box / .dmn-page-content)
   ------------------------------------------------------------------------ */
.dmn-content { width: 100%; }
.dmn-page-title { display: flex; align-items: center; gap: 12px; padding: 0 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.dmn-page-title::before { content: ""; width: 26px; height: 26px; background: var(--icon-diamond) center / 22px no-repeat; filter: drop-shadow(0 0 4px rgba(184, 134, 50, .4)); }
.dmn-page-title h1 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2); text-shadow: 0 1px 0 rgba(255, 245, 220, .6); }
.dmn-page-content { position: relative; width: 100%; color: var(--ink); font-size: 13px; }
.dmn-page-content .title, .page .title, .block-title, .yellow-title {
    position: relative; margin: 0 0 16px; padding: 0 0 8px; font-size: 15px; font-weight: 800; text-transform: none; letter-spacing: .2px; color: var(--ink-2); border-bottom: 1px solid var(--paper-line); text-shadow: none;
}
.dmn-page-content .title::before, .block-title::before { display: none; }
.dmn-page-content .title .float-right, .dmn-page-content .title .nav-pills { float: none !important; display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
.dmn-page-content .title .btn, .dmn-page-content .title .nav-link { min-height: 28px; padding: 4px 12px; font-size: 11px; }
.dmn-page-content .row { margin-left: -8px; margin-right: -8px; }
.dmn-page-content [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.top-border, .bottom-border { display: none !important; }
.corner-b { z-index: 0 !important; }
.dmn-page-content .float-right { color: var(--ink-muted); font-size: 12px; }
.additional-links .list-group-item-action { padding: 6px 0; font-size: 12px; color: var(--ink); background: none; border: 0; }
.additional-links a { color: var(--ink-link); font-weight: 600; }
.list-group-item-action { width: 100%; text-align: inherit; }
.list-group-item-action:focus, .list-group-item-action:hover { background: none; }

/* parchment-context form controls (light paper inputs) */
.dmn-page-content input[type="text"], .dmn-page-content input[type="email"], .dmn-page-content input[type="number"], .dmn-page-content input[type="password"], .dmn-page-content input[type="search"], .dmn-page-content input[type="tel"], .dmn-page-content input[type="date"],
.dmn-page-content select, .dmn-page-content textarea, .dmn-page-content .form-control, .dmn-page-content .custom-select, .parchment input[type="text"], .parchment select, .parchment textarea {
    color: #4f3322; background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(222, 194, 148, .2) 100%); border: 1px solid rgba(112, 75, 43, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(62, 35, 15, .08);
}
.dmn-page-content select, .dmn-page-content .custom-select { background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(222, 194, 148, .2) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23765333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat; background-blend-mode: normal; }
.dmn-page-content select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23765333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(222, 194, 148, .2) 100%); background-size: 12px 8px, auto; background-position: right 12px center, 0 0; background-repeat: no-repeat; }
.dmn-page-content select option { background: #ead3a8; color: #4f3322; }
.dmn-page-content input::placeholder, .dmn-page-content textarea::placeholder { color: rgba(79, 51, 34, .5); }
.dmn-page-content input:hover, .dmn-page-content select:hover, .dmn-page-content textarea:hover { border-color: rgba(143, 91, 42, .58); }
.dmn-page-content input:focus, .dmn-page-content select:focus, .dmn-page-content textarea:focus, .dmn-page-content .form-control:focus { color: #4f3322; border-color: rgba(166, 107, 47, .72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 3px rgba(166, 107, 47, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(222, 194, 148, .25) 100%); }
.dmn-page-content input:-webkit-autofill { -webkit-text-fill-color: #4f3322; -webkit-box-shadow: 0 0 0 1000px #ecdcbd inset; }
.dmn-page-content label, .dmn-page-content .control-label { color: #5a3d22; }
.dmn-page-content input[type="checkbox"], .dmn-page-content input[type="radio"] { background: rgba(255, 255, 255, .5); border-color: rgba(112, 75, 43, .5); }
.dmn-page-content input[type="checkbox"]:checked { background: var(--gold-grad); }
.dmn-page-content .form-group { max-width: 520px; }
.dmn-page-content .form-group.mb-5, .dmn-page-content form .form-group:last-child { max-width: none; }
.dmn-page-content .QapTcha .bgSlider { background: rgba(255, 255, 255, .3); border-color: rgba(112, 75, 43, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.dmn-page-content .QapTcha .txtStatus { color: #6b5a3a; }
/* parchment-context buttons (gold-button look) */
.dmn-page-content .btn, .dmn-page-content .btn-primary, .parchment .btn { background: linear-gradient(180deg, #b88632 0%, #8a5f22 100%); color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .55); border: 1px solid rgba(112, 72, 24, .78); box-shadow: inset 0 1px 0 rgba(255, 234, 175, .18), 0 1px 2px rgba(70, 42, 15, .14); }
.dmn-page-content .btn:hover, .dmn-page-content .btn-primary:hover, .parchment .btn:hover { background: linear-gradient(180deg, #c9963d 0%, #996b28 100%); border-color: rgba(135, 88, 28, .9); box-shadow: inset 0 1px 0 rgba(255, 234, 175, .22), 0 3px 8px rgba(70, 42, 15, .25); filter: none; }
.dmn-page-content .btn-secondary { background: var(--dark-grad); border-color: rgba(69, 37, 20, .75); }
.dmn-page-content .btn-success { background: var(--green-grad); border-color: rgba(61, 86, 35, .75); }
.dmn-page-content .btn-danger { background: var(--red-grad); border-color: rgba(120, 40, 40, .75); }
.dmn-page-content .btn-primary:focus, .dmn-page-content .btn-primary:not(:disabled):not(.disabled):active { background: linear-gradient(180deg, #845a20 0%, #aa762c 100%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22); }

/* tables inside parchment (dark gradient ranking table) */
.dmn-page-content table, .parchment table, .ranking-table, .dmn-rankings-table, .dmn-account-table, .add_to_card, .ticket {
    width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 18px;
    font-size: 12px; line-height: 1.4; color: #b9aa95; text-align: left;
    background: var(--panel-grad); border: 1px solid rgba(103, 67, 34, .55); border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 220, 170, .035), 0 2px 6px rgba(45, 25, 12, .16);
}
.dmn-page-content table table, .parchment table table { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.dmn-page-content thead th, .dmn-page-content th, .dmn-rankings-table th, .dmn-account-table th, .ranking-table th, .add_to_card th, .ticket th {
    padding: 8px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #cba774; background: #0f0907; border: 0 !important; border-bottom: 1px solid rgba(161, 107, 52, .28) !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .75); vertical-align: middle;
}
.dmn-page-content td, .dmn-rankings-table td, .dmn-account-table td, .ranking-table td, .add_to_card td, .ticket td {
    padding: 7px 10px !important; font-size: 12px; color: #c9bba5; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .035) !important; vertical-align: middle; transition: background .15s ease, color .15s ease;
}
.dmn-account-table tr th { width: 180px; color: #cba774; background: rgba(0, 0, 0, .25); font-weight: 600; text-transform: none; letter-spacing: 0; }
.dmn-page-content table table td { padding: 3px 6px !important; border: 0 !important; }
.dmn-page-content tbody tr:last-child td, .dmn-page-content tbody tr:last-child th { border-bottom: 0 !important; }
.dmn-page-content tbody tr:hover td { background: rgba(153, 96, 38, .08) !important; color: #dfc8a4; }
.dmn-page-content table a, .dmn-page-content table a:not(.btn), .dmn-rankings-table a, .ranking-table a { color: var(--cream) !important; font-weight: 600; }
.dmn-page-content table a:hover, .dmn-rankings-table a:hover { color: var(--accent-3) !important; text-decoration: underline; text-underline-offset: 3px; }
.dmn-page-content table .btn, .dmn-page-content table .btn-sm { min-height: 26px; padding: 3px 10px; font-size: 10px; margin-left: 8px; }
.table-striped > tbody > tr:nth-of-type(2n+1), .dmn-rankings-table tbody tr:nth-of-type(2n+1), tr:nth-child(2n-1), tr:nth-child(2n) { background: transparent !important; }
.dmn-page-content table img.rounded-image-corners, .rankings-player-class-img { border-radius: 50%; }
.dmn-page-content table sup { color: var(--accent-3) !important; font-size: 9px; }
.table-responsive-sm, .scroll-table-x { width: 100%; overflow-x: auto; }
table .first-three { color: #f7c130; font-weight: 700; }
table .second-three { color: #f07700; }

/* alerts */
.alert, .i_note, .s_note, .w_note, .e_note { position: relative; margin: 12px 0; padding: 13px 16px 13px 36px; font-size: 13px; line-height: 1.5; border: 1px solid; border-left-width: 4px; border-radius: 5px; box-shadow: 0 2px 5px rgba(40, 20, 10, .1); background-image: none !important; }
.alert::before, .i_note::before, .s_note::before, .w_note::before, .e_note::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.alert-primary, .alert-info, .i_note { color: #315f7a; background-color: rgba(71, 139, 179, .15); border-color: rgba(71, 139, 179, .5); border-left-color: #478bb3; }
.alert-success, .s_note { color: #4f6f30; background-color: rgba(101, 145, 62, .15); border-color: rgba(101, 145, 62, .5); border-left-color: #65913e; }
.alert-warning, .w_note { color: #8a5c16; background-color: rgba(190, 132, 43, .15); border-color: rgba(190, 132, 43, .5); border-left-color: #be842b; }
.alert-danger, .e_note { color: #a13f3f; background-color: rgba(177, 66, 66, .15); border-color: rgba(177, 66, 66, .5); border-left-color: #b14242; }
.site-aside .alert, .site-right .alert, .scroll-table .alert { padding: 10px 12px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .03); border-color: var(--line); border-left-color: var(--accent); text-align: center; }
.site-aside .alert::before, .site-right .alert::before, .scroll-table .alert::before { display: none; }

/* bootstrap nav tabs / pills inside parchment */
.nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 4px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(110, 68, 37, .2); }
.nav-tabs .nav-item { margin: 0; }
.nav-tabs .nav-link, .nav-pills .nav-link { padding: 8px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #6b5a3a; border: 0; border-radius: 6px; background: transparent; transition: .2s ease; }
.nav-tabs .nav-link:hover, .nav-pills .nav-link:hover { color: var(--ink-2); background: rgba(255, 255, 255, .3); border-color: transparent; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link, .nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; background: linear-gradient(180deg, #b88632, #8a5f22); border-color: transparent; box-shadow: 0 2px 6px rgba(70, 42, 15, .3); }
.tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; }
.fade:not(.show) { opacity: 0; } .fade { transition: opacity .15s linear; }

/* cards (downloads, etc.) */
.card { background: rgba(255, 255, 255, .22); border: 1px solid rgba(112, 75, 43, .3); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.card-group { display: flex; flex-wrap: wrap; gap: 10px; }
.card-group > .card { flex: 1 1 200px; margin: 0; }
.card .dmn-download-button { width: 100%; height: auto; min-height: 70px; padding: 14px 16px; font-size: 14px; border-radius: 5px; white-space: normal; line-height: 1.3; }
.list-group { display: flex; flex-direction: column; }
.list-group-item { position: relative; display: block; padding: 10px 14px; font-size: 12px; color: var(--ink); background: rgba(255, 255, 255, .18); border: 1px solid rgba(112, 75, 43, .2); }
.list-group-item + .list-group-item { border-top: 0; }
.list-group-flush .list-group-item { border-left: 0; border-right: 0; }

/* dropdowns */
.dropdown-menu { min-width: 180px; padding: 6px 0; margin: 4px 0 0; font-size: 12px; color: var(--cream); background: var(--bg-deep); border: 1px solid rgba(255, 255, 255, .06); border-radius: 6px; box-shadow: 0 10px 20px rgba(0, 0, 0, .6); }
.dropdown-menu > li > a, .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; color: var(--cream); font-weight: 500; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-item:hover, .dropdown-item:focus { color: #fff !important; background: #24170f; }
.dropdown-menu > button.btn { padding: 0 !important; }
.dropdown-toggle::after { margin-left: 6px; }

/* pagination */
.pagination, #pagination ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 18px 0 0; margin: 0; font-size: 12px; color: var(--ink-muted); }
#pagination { margin: 0; padding: 0; color: var(--ink-muted); font: inherit; border-radius: 0; }
#pagination li { float: none; list-style: none; }
.page-link, .page-btn, .page-number, #pagination a, .pagination li { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600; color: #6b5a3a; background: transparent; border: 1px solid var(--paper-line); border-radius: 4px; transition: .2s ease; cursor: pointer; margin: 0; }
.page-link:hover, .page-btn:hover, .page-number:hover, #pagination a:hover, .pagination li:hover { color: var(--ink-2); background: rgba(0, 0, 0, .1); border-color: rgba(110, 68, 37, .45); }
.page-item.active .page-link, .page-number.active, #pagination a.on, .pagination li.active { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.pagination .prev-button, .pagination .next-button { background: none; transform: none; margin: 0; }

/* rankings top-3 cards */
.rankings-players { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 18px; }
.rankings-player { position: relative; flex: 1 1 100%; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 8px; background: var(--panel-grad); border: 1px solid rgba(103, 67, 34, .55); box-shadow: var(--inset), 0 6px 16px rgba(0, 0, 0, .3); color: var(--white); overflow: hidden; }
.rankings-player::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ffd443, #bf7400); }
.rankings-player:nth-child(2)::before { background: linear-gradient(180deg, #e9e9e9, #7e9e9e); }
.rankings-player:nth-child(3)::before { background: linear-gradient(180deg, #ffb16d, #9f4516); }
.rankings-player .left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rankings-player .ava { width: 50px; height: 50px; border-radius: 50%; padding: 3px; background: var(--gold-grad); box-shadow: 0 0 12px rgba(240, 178, 77, .3); }
.rankings-player .ava img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #1d140e; }
.rankings-player .center { flex: 1; min-width: 0; }
.rankings-player .profile-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankings-player .profile-name a { color: var(--cream) !important; }
.rankings-player .resell { margin: 2px 0 6px; font-size: 11px; color: var(--accent-3); }
.rankings-player .bottom-profile-info { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }
.rankings-player .bottom-profile-info p { margin: 0; color: var(--white); }
.rankings-player sup { color: var(--accent-3); font-size: 9px; }
.rankings-player .right-rankings { display: flex; flex-direction: row !important; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.rankings-player .status { font-size: 10px; color: var(--muted); }
.rankings-player .ranking-icon { width: 34px; height: auto; }
.rankings-page .flag { display: inline-block; }
.rankings .btn { margin: 3px; }
#rank_by_class .dropdown-menu { text-align: left; }

/* shop items grid */
.itemsBlock { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.itemsBlock .item { position: relative; width: 150px; padding: 10px; text-align: center; border-radius: 6px; background: var(--panel-grad); border: 1px solid rgba(103, 67, 34, .55); box-shadow: var(--inset); color: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.itemsBlock .item:hover { transform: translateY(-4px); box-shadow: var(--inset), 0 10px 24px rgba(0, 0, 0, .5), 0 0 12px rgba(240, 178, 77, .25); }
.itemsBlock .item-img { display: flex; align-items: center; justify-content: center; height: 100px; margin-bottom: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); cursor: pointer; }
.itemsBlock .item-img img { max-height: 90px; }
.itemsBlock .item-name { font-size: 12px; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.itemsBlock .item-price { margin: 6px 0; font-size: 11px; color: var(--accent-3); }
.itemsBlock .item-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-radius: 4px; color: #151412; background: var(--gold-grad); cursor: pointer; transition: filter .2s ease; }
.itemsBlock .item-buy:hover { filter: brightness(1.12); }
.dmn-sidebar-box { padding: 14px; border-radius: 6px; background: var(--panel-grad); border: 1px solid rgba(103, 67, 34, .55); box-shadow: var(--inset); }
.dmn-sidebar-box-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent-3); }
.dmn-sidebar-box-items a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 12px; font-weight: 600; color: var(--muted-2) !important; border-radius: 6px; }
.dmn-sidebar-box-items a:hover { color: #fff !important; background: rgba(255, 255, 255, .05); text-decoration: none; }
.dmn-sidebar-box-items a i { font-size: 10px; color: var(--accent); }
.discount_notice { position: relative; margin: 10px 0; width: 100%; max-width: 420px; left: 0; opacity: 1; border-radius: 6px; background: rgba(255, 255, 255, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 6px rgba(40, 20, 10, .15); }
.discount_notice .content { padding: 18px 22px; font-family: inherit; font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* sidebar navigation (account pages) */
.sidebar-navigation { min-width: 220px; }
.sidebar-navigation li { display: flex; align-items: center; height: 42px; margin-bottom: 4px; padding-left: 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted-2); background: var(--panel-grad); border: 1px solid rgba(103, 67, 34, .4); border-radius: 6px; cursor: pointer; transition: .2s ease; }
.sidebar-navigation li.active, .sidebar-navigation li:hover { color: #fff; border-color: rgba(240, 178, 77, .5); box-shadow: 0 0 12px rgba(240, 178, 77, .2); }

/* inventory / warehouse */
.wh_items, #inventoryc, #inventory, .dmn-vault-grid-modern, .cworkshop .inventoryy { border-radius: 6px; box-shadow: var(--inset); }
.items-grid { position: relative; background: rgba(0, 0, 0, .35); border-radius: 4px; }
.items-grid .item { position: absolute; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .03); }
.photo-upload { cursor: pointer; width: 140px; height: 190px; border-radius: 6px; background: rgba(0, 0, 0, .35); box-shadow: var(--inset); transition: .3s; }
.photo-upload:hover { box-shadow: var(--inset), 0 0 20px rgba(240, 178, 77, .3); }

/* vote options (parchment context) */
#vote-options { width: 100%; margin: 0 0 8px; padding: 0; list-style: none; color: var(--ink); }
#vote-options li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; height: auto; margin-top: 8px; padding: 8px 11px; line-height: 1.3; background: linear-gradient(180deg, rgba(255, 255, 255, .19) 0%, rgba(118, 77, 40, .07) 100%); border: 1px solid rgba(112, 75, 43, .24); border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 3px rgba(60, 35, 15, .06); transition: .18s ease; }
#vote-options li:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .27) 0%, rgba(132, 83, 39, .1) 100%); border-color: rgba(145, 91, 41, .4); }
#vote-options li img { width: 90px; height: 50px; padding: 3px; object-fit: contain; background: rgba(255, 255, 255, .34); border: 1px solid rgba(104, 68, 38, .26); border-radius: 4px; }
#vote-options li h5 { margin: 0; padding: 0; border: 0; font-size: 12px; font-weight: 600; color: #513522; }
#vote-options h5[id^="counter-"] { margin-left: 10px !important; padding: 3px 7px !important; color: #80603e; background: rgba(111, 75, 43, .08); border: 1px solid rgba(111, 75, 43, .16) !important; border-radius: 3px; font-size: 10px !important; }
#vote-options li button { min-width: 84px; margin: 0 0 0 auto; min-height: 30px; padding: 5px 12px; font-size: 11px; line-height: 1.2; border: 1px solid rgba(105, 64, 20, .78) !important; background: linear-gradient(180deg, #b88632 0%, #86591f 100%); color: #fff !important; }
#vote-options li button:disabled { background: linear-gradient(180deg, rgba(105, 91, 74, .62) 0%, rgba(75, 62, 50, .67) 100%); color: rgba(255, 255, 255, .77) !important; }
#paypal-options { color: var(--ink); }
#paypal-options li { display: flex; align-items: center; gap: 12px; min-height: 65px; height: auto; margin-top: 8px; padding: 10px; border-radius: 5px; background: linear-gradient(180deg, rgba(255, 255, 255, .19) 0%, rgba(118, 77, 40, .07) 100%); border: 1px solid rgba(112, 75, 43, .24); }
#paypal-options li h4, #paypal-options li h3 { margin: 0; padding: 0; border: 0; color: #513522; }
#paypal-options li h4 { font-size: 16px; font-weight: 700; }
#paypal-options li h3 { font-size: 13px; font-weight: 500; }
.payment-method-button { margin: 4px; float: none; display: inline-block; border-radius: 4px; border: 1px solid rgba(112, 75, 43, .4); background: rgba(255, 255, 255, .25); overflow: auto; }
.payment-method-button label span { display: block; width: 120px; height: 44px; line-height: 44px; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; color: var(--ink-2); }
.payment-method-button label input { position: absolute; top: -20px; }
.payment-methods { margin-top: 20px; }
.payment-method { position: relative; display: flex; align-items: center; justify-content: center; width: calc(25% - 15px); height: 110px; border-radius: 6px; cursor: pointer; background: rgba(255, 255, 255, .2); border: 1px solid rgba(112, 75, 43, .3); transition: .25s ease; }
.payment-method.selected, .payment-method:hover { background: rgba(255, 255, 255, .35); border-color: rgba(184, 134, 50, .7); box-shadow: 0 0 0 3px rgba(184, 134, 50, .15); }
.timmer_inner_block { width: 50px; height: 60px; margin: 2px; float: left; border-radius: 8px; background: rgba(0, 0, 0, .7); box-shadow: var(--inset); border-bottom: 1px solid rgba(255, 255, 255, .12); }
#timer_div_time .timmer_inner_block .title { padding-top: 4px; font-size: 10px; color: var(--accent-3); text-transform: uppercase; }
#timer_div_time .timmer_inner_block .count { padding-top: 4px; font-size: 18px; font-weight: 700; color: #fff; }
#timer_div_title { color: #fff; }

/* ------------------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------------------ */
.site-footer { position: relative; z-index: 2; margin-top: 60px; }
.top-line { position: relative; width: 100%; min-height: 64px; padding: 14px 0; font-size: 12px; border-top: 1px solid var(--line-warm); background: var(--panel-grad); }
.top-line::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 100%; height: 10px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse, rgba(255, 230, 185, .95) 0%, rgba(255, 190, 105, .55) 20%, rgba(255, 190, 105, .12) 55%, transparent 100%); }
.top-line .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.community-logo img { height: 72px; width: auto; max-width: 220px; object-fit: contain; transition: transform .3s ease, filter .3s ease; }
.community-logo:hover img { filter: brightness(1.3); transform: scale(1.06); }
.community-terms { display: flex; gap: 24px; }
.community-terms a { color: var(--cream); font-weight: 500; }
.community-terms a:hover { color: var(--accent); }
.language-selector { display: flex; align-items: center; gap: 8px; color: var(--muted-2); user-select: none; }
.lang-select { position: relative; width: 170px; }
.lang-select .selected-option { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 30px 0 10px; font-size: 12px; color: var(--cream); background: var(--bg-deep); border-radius: 4px; cursor: pointer; white-space: nowrap; border: 1px solid var(--line); }
.lang-select .selected-option .arrow { position: absolute; right: 8px; top: 50%; width: 10px; height: 7px; transform: translateY(-50%); background: var(--icon-arrow) center / contain no-repeat; }
.lang-select .options-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 50; display: none; padding: 6px 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 20px rgba(0, 0, 0, .6); max-height: 260px; overflow-y: auto; }
.lang-select.open .options-list { display: block; }
.lang-select:hover .selected-option { background: #24170f; }
.lang-select .options-list a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12px; color: var(--cream); }
.lang-select .options-list a:hover, .lang-select .options-list a.selected { background: #24170f; color: #fff; }
.f16 .flag { display: inline-block; width: 16px; height: 16px; vertical-align: text-top; line-height: 16px; background: url(../images/flags.png) no-repeat; }

.footer { position: relative; width: 100%; padding: 40px 0 0; color: #b09b6f; overflow: hidden; background: #1d150f; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 0% 100%, rgba(120, 70, 25, .35) 0%, transparent 45%), radial-gradient(ellipse at 100% 0%, rgba(120, 70, 25, .18) 0%, transparent 40%); }
.footer .container { position: relative; }
.links { display: flex; flex-wrap: wrap; width: 100%; }
.links-column { width: 25%; padding-right: 16px; margin-bottom: 20px; }
.links-column h4 { display: flex; align-items: center; margin-bottom: 15px; font-size: 14px; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .3px; background: linear-gradient(180deg, #d18e4d 0%, #bf7d40 45%, #8f5b32 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #b9793f; }
.links-column h4 .title-icon { display: inline-block; width: 24px; height: 24px; margin: 0 8px 0 -4px; background: var(--icon-diamond) center / 18px no-repeat; filter: drop-shadow(0 0 8px rgba(224, 129, 47, .25)); }
.links-column ul li { margin-bottom: 8px; }
.links-column ul li a { display: inline-flex; align-items: center; font-size: 13px; color: #ddd0bf; text-shadow: 0 1px 0 rgba(25, 15, 8, .9); }
.links-column ul li a .list-icon { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; margin: 0 6px 0 2px; background: var(--icon-chevron) center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(230, 151, 75, .35)); }
.links-column ul li a:hover { color: var(--accent-3); }
.bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; margin-top: 10px; padding: 18px 0 22px; font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line-warm); }
.social-icons { display: flex; gap: 6px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: #ddd0bf; opacity: .4; transition: opacity .3s ease, background .3s ease, transform .2s ease; }
.social-icons a svg { width: 16px; height: 16px; fill: currentColor; }
.social-icons a:hover { opacity: 1; background: rgba(255, 255, 255, .06); transform: translateY(-2px); color: #fff; }

/* back to top */
.toTop { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(158, 98, 27, .85);
    background: radial-gradient(circle at 50% 38%, rgba(72, 36, 9, .99) 0%, rgba(43, 23, 8, .99) 48%, #140e09 76%, #080706 100%);
    box-shadow: 0 0 0 2px rgba(29, 20, 12, .95), 0 4px 12px rgba(0, 0, 0, .9), 0 0 8px rgba(160, 96, 22, .32); min-width: 0; padding: 0; margin: 0; }
.toTop::before { content: ""; position: absolute; top: 55%; left: 50%; width: 9px; height: 9px; border-top: 2px solid #ead4a3; border-left: 2px solid #ead4a3; transform: translate(-50%, -50%) rotate(45deg); }
.toTop:hover { filter: brightness(1.25); }

/* ------------------------------------------------------------------------
   13. MODALS, DIALOGS, TOOLTIPS, LOADER, NOTIFICATIONS
   ------------------------------------------------------------------------ */
#overlay { display: none; }
#lean_overlay { position: fixed; z-index: 9998; inset: 0; background: #000; display: none; }
#buy_windows, #add_to_card_windows, #select_server, #auction_bet { width: 404px; max-width: calc(100vw - 30px); display: none; padding-bottom: 2px; color: var(--cream); background: var(--panel-grad-v); border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; box-shadow: var(--inset), 0 0 25px rgba(0, 0, 0, .25); z-index: 9999; }
.modal-header, .modal-header2 { position: relative; display: block; padding: 14px 50px 14px 18px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); border-radius: 10px 10px 0 0; background: transparent; cursor: default; }
.modal-header2 { cursor: move; }
.modal-header h2, .modal-header2 h2 { margin: 0; font-family: var(--font); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #e1a85e; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.close { position: absolute; top: 10px; right: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 !important; padding: 0 !important; opacity: 1 !important; border-radius: 50%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #b9aa98; font-size: 22px; font-weight: 700; line-height: 1; text-shadow: none; transition: .2s ease; }
.close::before { content: ""; width: 12px; height: 12px; background: var(--icon-close) center / contain no-repeat; }
.close:hover { color: #f0a13a; background: rgba(255, 255, 255, .08); }
#select_server .form-control { margin: 0; }
.modalx { display: none; }
/* jQuery UI dialogs (buy item / rules) */
.ui-widget { font-family: var(--font); font-size: 13px; }
.ui-widget-content { color: var(--cream); background: var(--panel-grad-v); border: 1px solid rgba(255, 255, 255, .05); }
.ui-dialog { padding: 0; border-radius: 10px; box-shadow: var(--inset), 0 20px 60px rgba(0, 0, 0, .7); overflow: hidden; z-index: 10000 !important; }
.ui-dialog .ui-dialog-titlebar, .ui-widget-header { padding: 12px 48px 12px 18px; color: #e1a85e; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); border-radius: 0; }
.ui-dialog .ui-dialog-titlebar-close { right: 10px; width: 28px; height: 28px; margin-top: -14px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); text-indent: -9999px; overflow: hidden; }
.ui-dialog .ui-dialog-titlebar-close::before { content: ""; position: absolute; inset: 0; background: var(--icon-close) center / 11px no-repeat; }
.ui-dialog .ui-dialog-titlebar-close .ui-icon { display: none; }
.ui-dialog .ui-dialog-content { padding: 16px 18px; background: none; color: var(--cream); line-height: 1.5; max-height: 70vh !important; }
.ui-dialog .ui-dialog-content a { color: var(--accent-3); }
.ui-widget-overlay { background: #000; opacity: .7; }
.ui-dialog .ui-dialog-buttonpane { background: none; border-top: 1px solid rgba(255, 255, 255, .05); }
.ui-dialog .ui-dialog-buttonpane button, .ui-button { background: var(--dark-grad); color: #fff; border: 1px solid rgba(255, 255, 255, .05); border-radius: 6px; font-weight: 700; }
.ui-dialog .ui-dialog-buttonpane button:hover, .ui-button:hover { filter: brightness(1.15); }
.ui-state-default, .ui-widget-content .ui-state-default { background: var(--dark-grad); color: #fff; border-color: rgba(255, 255, 255, .05); }
.ui-state-active, .ui-widget-content .ui-state-active { background: var(--gold-grad); color: #151412; border-color: var(--accent-deep); }
.ui-autocomplete { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 6px; max-width: calc(100vw - 30px); }
.ui-menu .ui-menu-item-wrapper { color: var(--cream); padding: 6px 12px; }
.ui-menu .ui-menu-item-wrapper.ui-state-active { background: #24170f; border: 0; margin: 0; color: #fff; }
.ui-tooltip { padding: 8px 12px; background: #0a0a0a; color: #fff; border: 1px solid #333; border-radius: 6px; box-shadow: 0 8px 25px rgba(0, 0, 0, .7); font-size: 12px; }
.ui-dialog.fixed { position: fixed !important; }
/* item tooltip */
#tooltip { position: absolute; z-index: 11001; padding: 10px 14px; max-width: 420px; font: normal 11px/1.5 Tahoma, Helvetica, sans-serif; text-align: center; color: #fff; background: rgba(0, 0, 0, .96); border: 1px solid #333; border-radius: 8px; box-shadow: 0 8px 25px rgba(0, 0, 0, .7); opacity: 1; backdrop-filter: blur(4px); }
#tooltip h3, #tooltip div { margin: 0; }
.tooltip-box { position: absolute; left: -9999px; top: -9999px; opacity: 0; max-width: 400px; padding: 10px 14px; font-size: 12px; color: #fff; background: #000; border: 1px solid #333; border-radius: 8px; box-shadow: 0 8px 25px rgba(0, 0, 0, .7); pointer-events: none; z-index: 99999; line-height: 1.4; transition: opacity .18s ease-out; }
/* loader */
#loading { display: none; position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 99999; min-width: 170px; padding: 12px 20px 12px 46px; color: #f5f0e8; font-size: 13px; font-weight: 600; letter-spacing: .3px;
    background: linear-gradient(135deg, rgba(35, 24, 18, .97), rgba(18, 13, 10, .97)); border: 1px solid rgba(191, 135, 66, .55); border-top: 2px solid #d59a4a; border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .65), 0 0 18px rgba(194, 132, 54, .16), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(7px); }
#loading img { display: none; }
#loading::before { content: ""; position: absolute; left: 17px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #d59a4a; border-radius: 50%; animation: spin .7s linear infinite; }
#loading::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(213, 154, 74, .8), transparent); }
/* notifications */
#notifier-box { position: fixed; top: 14px; right: 16px; z-index: 99999; width: 340px; max-width: calc(100vw - 32px); }
div.message-box { position: relative; margin: 0 0 10px; padding: 12px 36px 12px 14px; width: 100%; font-family: var(--font); font-size: 12px; line-height: 1.5; color: #cfc6b8; text-shadow: 0 1px 0 #000; background: var(--panel-grad-v); border: 1px solid rgba(255, 255, 255, .05); border-left-width: 3px; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 210, 140, .08); animation: riseIn .3s ease; }
div.message-box:hover { background: var(--panel-grad-v); }
div.message-box div.success, div.message-box div.error { margin: 0 0 4px; font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
div.message-box div.success { color: var(--green); }
div.message-box div.error { color: var(--red); }
div.message-box:has(div.success) { border-left-color: var(--green); }
div.message-box:has(div.error) { border-left-color: #d9534f; }
div.message-box a.message-close { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; float: none; opacity: .45; border-radius: 4px; background: var(--icon-close) center / 10px no-repeat; }
div.message-box:hover a.message-close { opacity: .7; }
div.message-box a.message-close:hover { opacity: 1; }
div.message-box div.message-body { overflow: hidden; }
#exception { position: fixed; top: 0; left: 0; z-index: 99999; width: 100%; min-height: 28px; line-height: 28px; display: none; text-align: center; font-size: 12px; font-weight: 600; color: #fff; background: #b14242; }

/* ------------------------------------------------------------------------
   14. RICH CONTENT, MEDIA, LEGACY BOXES (inner pages)
   ------------------------------------------------------------------------ */
.dmn-page-content h1:not(.hero-title), .dmn-page-content h2:not(.title), .dmn-page-content h3, .dmn-page-content h4, .dmn-page-content h5, .dmn-page-content h6, .about-text h3 { margin: 16px 0 8px; color: var(--ink-2); font-weight: 800; }
.dmn-page-content h1:not(.hero-title) { font-size: 20px; } .dmn-page-content h2:not(.title) { font-size: 17px; } .dmn-page-content h3 { font-size: 15px; } .dmn-page-content h4 { font-size: 14px; }
.dmn-page-content p { font-size: 13px; line-height: 1.65; }
.about-text p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.about-text strong { color: var(--ink-2); }
.dmn-page-content ul:not(.nav):not(.pagination):not(.announcements):not(.list-group):not(.thumbnails):not(.install-steps):not(.dropdown-menu):not(.style3):not([id]), .dmn-page-content ol:not(.install-steps) { padding-left: 22px; margin: 0 0 12px; list-style: disc; }
.dmn-page-content ol:not(.install-steps) { list-style: decimal; }
.dmn-page-content li { margin-bottom: 4px; line-height: 1.55; }
.dmn-page-content blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid rgba(184, 134, 50, .6); border-radius: 4px; background: rgba(255, 255, 255, .18); font-style: italic; }
.dmn-page-content hr { border-top: 1px solid var(--paper-line); }
.dmn-page-content img:not(.rankings-player-class-img):not(.ranking-icon) { max-width: 100%; height: auto; }
.dmn-page-content iframe, .dmn-page-content video { max-width: 100%; border-radius: 4px; }
.dmn-page-content table.server-info-table th { width: 34%; }
.install-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 8px; }
.install-steps li { position: relative; padding: 7px 0 7px 40px; counter-increment: step; font-size: 13px; line-height: 1.55; }
.install-steps li::before { content: counter(step); position: absolute; left: 0; top: 5px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #b88632, #8a5f22); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 234, 175, .25); }
.requirements-table th:first-child { width: 30%; }
.requirements-table tbody th { font-weight: 600; text-transform: none; letter-spacing: 0; color: #cba774; background: rgba(0, 0, 0, .2); }
/* media galleries (colorbox thumbnails) */
ul.thumbnails { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0; margin: 0 0 10px; list-style: none; }
ul.thumbnails li.thumbnail { position: relative; width: 180px; height: 120px; padding: 3px; border-radius: 6px; overflow: hidden; background: var(--paper-frame); box-shadow: 0 4px 12px rgba(60, 35, 15, .25); transition: transform .25s ease, box-shadow .25s ease; }
ul.thumbnails li.thumbnail:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 35, 15, .35); }
ul.thumbnails li.thumbnail a { display: block; width: 100%; height: 100%; border-radius: 4px; background-size: cover !important; background-position: center !important; }
ul.thumbnails li.thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
ul.thumbnails li.thumbnail img.grayscale { filter: none; }
.gallery-controls { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 6px; text-align: center; background: rgba(10, 7, 4, .7); border-radius: 0 0 4px 4px; }
.gallery-controls p { margin: 0; }
.gallery-controls .img-download { min-height: 0; padding: 4px 12px; font-size: 10px; }
/* legacy boxes used by referral / change-name history / vip packages */
.title1 { margin: 14px 0 8px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.box-style1 { padding: 12px 14px; margin-bottom: 14px; border-radius: 6px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(112, 75, 43, .3); overflow: visible; }
.box-style1 .title { display: none; }
.box-style1 .entry { padding: 0; }
.card-header { padding: 12px 14px; background: var(--panel-grad); border-bottom: 1px solid rgba(103, 67, 34, .55); border-radius: 6px 6px 0 0; }
.card-header .card-title { margin: 0 0 4px; color: #e1a85e !important; font-size: 12px; letter-spacing: .5px; }
.card-header .h1 { margin: 0; color: #fff !important; font-size: 26px; font-weight: 800; }
.card-header .h6, .text-white-50 { color: rgba(255, 255, 255, .6) !important; font-size: 12px; }
.card-body { padding: 14px; }
.card-body.bg-light { background: rgba(255, 255, 255, .22) !important; color: var(--ink); }
.card-body .list-unstyled li { padding: 4px 0; border-bottom: 1px dashed var(--paper-line); font-size: 12px; }
.text-success { color: #4f6f30 !important; }
.text-success .fa, .text-success .fas { color: #65913e; }
label.col-form-label, .col-form-label { padding-top: 9px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.view_reward { color: var(--ink-link); text-decoration: underline; font-weight: 600; }
.stats_now { color: #8a5f22; font-weight: 700; }
.ticket thead th:last-child { text-align: right; }
.ticket td ul { list-style: none; padding: 0; }
.ticket tr.even td { background: rgba(0, 0, 0, .15) !important; }

/* ------------------------------------------------------------------------
   15. HOME EXTRAS (kept for optional sections)
   ------------------------------------------------------------------------ */
.home-badge { display: inline-block; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-radius: 4px; color: #fff; background: linear-gradient(135deg, gold, #dc2626); }
.about-info p { font-size: 13px; line-height: 1.6; }
.ratingTab-button { cursor: pointer; }
