/* ==============================================================
   Lineage2.network - User panel theme (v8, "uplift")
   Same visual language as the website's css/uplift.css:
   - navy ground #010314, painted backdrops that fade into it
   - Philosopher titles, Mulish body text
   - glass panels with thin light borders and a gold top hairline
   - bronze framed primary button, translucent ghost button
   - corners max 3px, no left accent bars
   Loaded LAST on user pages (after app.css / app-dark.css) and on
   the auth pages. Admin pages do not load this file.

   Sections
    0  tokens            8  tables            16 vote
    1  ground and type   9  small parts       17 profile
    2  sidebar           10 dropdowns/modals  18 verify / 2FA / recover
    3  top bar           11 dashboard         19 auth pages
    4  backdrop + head   12 donate            20 responsive
    5  cards             13 shop
    6  buttons           14 shop product
    7  forms             15 market + orders
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&family=Philosopher:wght@400;700&display=swap');

/* ------------------------------------------------------------
   0. Tokens
   ------------------------------------------------------------ */
:root {
    --up-bg:        #010314;
    --up-bg-2:      #0a0c22;
    --up-panel:     rgba(10, 12, 32, .9);
    --up-card:      rgba(255, 255, 255, .04);
    --up-card-2:    rgba(255, 255, 255, .07);
    --up-line:      rgba(255, 255, 255, .1);
    --up-line-2:    rgba(255, 255, 255, .2);
    --up-text:      #f6f0e8;
    --up-muted:     rgba(246, 240, 232, .66);
    --up-dim:       rgba(246, 240, 232, .44);
    --up-gold:      #e7c172;
    --up-gold-2:    #d19b25;
    --up-gold-line: rgba(231, 193, 114, .3);
    --up-green:     #4fd58a;
    --up-red:       #ff8f8a;
    --up-gem:       #8fd3ff;
    --up-head:      "Philosopher", Georgia, "Times New Roman", serif;
    --up-body:      "Mulish", "Manrope", Helvetica, Arial, sans-serif;
    --up-r:         3px;
    --up-bronze:    linear-gradient(180deg, #d8a445 0%, #a8721f 48%, #6e4612 100%);
    --up-bronze-frame: linear-gradient(180deg, #fbe7b4, #b98a3c 55%, #7a5a26);
    --up-hex:       polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

    /* older names, kept so nothing that still refers to them breaks */
    --l2-bg: var(--up-bg); --l2-panel: #0b0d24; --l2-panel-2: #070919;
    --l2-gold: var(--up-gold-2); --l2-gold-2: #b8721e; --l2-gold-lite: var(--up-gold); --l2-gold-text: var(--up-gold);
    --l2-text: var(--up-text); --l2-muted: var(--up-muted);
    --l2-line: var(--up-line); --l2-line-soft: rgba(255, 255, 255, .07);
    --title-font: var(--up-head);
}

body.theme-dark {
    --bs-primary: #d19b25;
    --bs-primary-rgb: 209, 155, 37;
    --bs-body-bg: #010314;
    --bs-body-bg-rgb: 1, 3, 20;
    --bs-body-color: #f6f0e8;
    --bs-body-color-rgb: 246, 240, 232;
    --bs-border-color: rgba(255, 255, 255, .1);
    --bs-link-color: #e7c172;
    --bs-link-hover-color: #fff;
    --bs-emphasis-color: #fff;
    --bs-body-font-family: var(--up-body);
}

/* ------------------------------------------------------------
   1. Ground and type
   ------------------------------------------------------------ */
html { background: var(--up-bg) !important; }
body.theme-dark {
    background: var(--up-bg) !important;
    color: var(--up-text) !important;
    font-family: var(--up-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6,
body.theme-dark .h1, body.theme-dark .h2, body.theme-dark .h3,
body.theme-dark .h4, body.theme-dark .h5, body.theme-dark .h6,
body.theme-dark .card-title {
    font-family: var(--up-head);
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
}
body.theme-dark a { color: var(--up-gold); text-decoration: none; transition: color .2s ease; }
body.theme-dark a:hover { color: #fff; }
body.theme-dark p { color: var(--up-muted); }
body.theme-dark small, body.theme-dark .small { color: var(--up-muted); }
body.theme-dark .text-muted { color: var(--up-muted) !important; }
body.theme-dark .text-primary { color: var(--up-gold) !important; }
body.theme-dark .text-success { color: var(--up-green) !important; }
body.theme-dark .text-danger { color: var(--up-red) !important; }
body.theme-dark .text-warning { color: var(--up-gold) !important; }
body.theme-dark .text-gray-600, body.theme-dark .text-gray-500 { color: var(--up-muted) !important; }
body.theme-dark ::selection { background: rgba(231, 193, 114, .32); color: #fff; }

/* thin gold scrollbars */
body.theme-dark, body.theme-dark * { scrollbar-color: rgba(231, 193, 114, .45) transparent; scrollbar-width: thin; }
body.theme-dark ::-webkit-scrollbar { width: 10px; height: 10px; }
body.theme-dark ::-webkit-scrollbar-track { background: transparent; }
body.theme-dark ::-webkit-scrollbar-thumb { background: rgba(231, 193, 114, .36); border-radius: 0; }
body.theme-dark ::-webkit-scrollbar-thumb:hover { background: rgba(231, 193, 114, .6); }

/* Mazer boxes every Bootstrap icon into 1rem x 1rem ("body.theme-dark .bi"), which
   breaks any icon that is not 16px. Icons take their own size here. */
body.theme-dark .bi { width: auto; height: auto; }

/* shared small parts ------------------------------------------ */
/* gold hexagon medallion (same one as on the website's feature cards) */
.ui-hex {
    position: relative;
    display: grid; place-items: center;
    flex: none;
    width: 60px; height: 60px;
    isolation: isolate;
    color: #241703;
    font-size: 21px;
    filter: drop-shadow(0 8px 14px rgba(209, 155, 37, .34));
}
.ui-hex::before, .ui-hex::after, body.theme-dark .ui-hex > i {
    -webkit-clip-path: var(--up-hex);
            clip-path: var(--up-hex);
}
.ui-hex::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #fbe7b4 0%, #d8a445 50%, #7c5112 100%); }
.ui-hex::after { content: ""; position: absolute; inset: 2px; z-index: -1; background: #070919; }
body.theme-dark .ui-hex > i {
    display: grid; place-items: center;
    width: calc(100% - 10px); height: calc(100% - 10px);
    background: linear-gradient(180deg, #fbe7b4 0%, #e7b548 38%, #b47a1c 72%, #7c5112 100%);
    color: #241703;
    font-style: normal;
    line-height: 1;
}
body.theme-dark .ui-hex > i::before { line-height: 1; vertical-align: 0; }
.ui-hex-sm { width: 44px; height: 44px; font-size: 16px; filter: drop-shadow(0 5px 10px rgba(209, 155, 37, .3)); }
body.theme-dark .ui-hex-sm > i { width: calc(100% - 8px); height: calc(100% - 8px); }
.ui-hex-lg { width: 84px; height: 84px; font-size: 30px; }
.ui-hex-lg::after { inset: 3px; }
body.theme-dark .ui-hex-lg > i { width: calc(100% - 14px); height: calc(100% - 14px); }
body.theme-dark .ui-hex-letter > i { font: 700 1.15em/1 var(--up-head); }

/* small gold caps label */
.ui-kicker {
    display: block;
    font: 800 12px/1.3 var(--up-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--up-gold);
}
/* diamond gem glyph in the currency colour */
body.theme-dark .bi-gem, #BalanceGem { color: var(--up-gem) !important; }
body.theme-dark .ui-hex .bi-gem { color: #241703 !important; }

/* ------------------------------------------------------------
   2. Sidebar
   ------------------------------------------------------------ */
body.theme-dark .sidebar-wrapper {
    display: flex; flex-direction: column;
    /* the painting is 300 x 368 at the foot; the veil above it has the same box, so its top edge never shows */
    background:
        linear-gradient(180deg, #040618 0%, rgba(4, 6, 24, .86) 26%, rgba(4, 6, 24, .5) 62%, rgba(4, 6, 24, .34) 100%) center bottom / 100% 368px no-repeat,
        url("../images/panel/side-art.jpg") center bottom / 100% 368px no-repeat,
        #040618;
    border-right: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 18px 0 50px -30px rgba(0, 0, 0, .9);
}
body.theme-dark .sidebar-wrapper .sidebar-header { padding: 26px 24px 6px; font-size: 1rem; }
body.theme-dark .sidebar-wrapper .sidebar-header .logo { flex: 1 1 auto; text-align: center; }
body.theme-dark .sidebar-wrapper .sidebar-header .logo a { display: inline-block; }
body.theme-dark .sidebar-wrapper .sidebar-header img {
    display: block;
    width: 204px; max-width: 100%; height: auto;
    margin: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}
body.theme-dark .sidebar-wrapper .sidebar-toggler.x { top: 14px; right: 14px; }
body.theme-dark .sidebar-wrapper .sidebar-toggler.x a { color: #fff; font-size: 26px; line-height: 1; }

body.theme-dark .sidebar-wrapper .menu { margin-top: 22px; padding: 0 18px; font-weight: 700; }
body.theme-dark .sidebar-wrapper ul.menu { margin-top: 18px; margin-bottom: 24px; }

/* server switch: a framed plate, not a call to action */
body.theme-dark .sb-server-btn.btn {
    display: flex !important; align-items: center; justify-content: flex-start; gap: 14px;
    min-height: 56px;
    padding: 8px 14px 8px 16px !important;
    text-align: left;
    border: 1px solid var(--up-gold-line) !important;
    border-radius: var(--up-r) !important;
    background: linear-gradient(180deg, rgba(231, 193, 114, .12), rgba(255, 255, 255, .03)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .1) !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}
body.theme-dark .sb-server-btn.btn:hover, body.theme-dark .sb-server-btn.btn.show { border-color: rgba(231, 193, 114, .6) !important; filter: none; }
.sb-server-btn.dropdown-toggle::after { margin-left: auto; border-top-color: var(--up-gold); }
/* bare gold glyph, like the social icons in the website footer: no tile, no outline */
.sb-server-ico {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px;
    color: var(--up-gold);
    font-size: 26px; line-height: 1;
    transition: color .2s ease;
}
/* Bootstrap Icons drop their glyph by .125em to sit on a text baseline; a lone icon must not have that offset */
body.theme-dark .sb-server-ico i { display: block; width: 1em; height: 1em; line-height: 1; }
body.theme-dark .sb-server-ico i::before { display: block; line-height: 1; vertical-align: 0; }
body.theme-dark .sb-server-btn.btn:hover .sb-server-ico, body.theme-dark .sb-server-btn.btn.show .sb-server-ico { color: #fff; }
.sb-server-txt { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.sb-server-txt small { font: 800 10.5px/1.2 var(--up-body); letter-spacing: .14em; text-transform: uppercase; color: var(--up-gold) !important; }
.sb-server-txt b { font: 700 16px/1.2 var(--up-head); letter-spacing: .02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-server .dropdown-menu { width: 100%; min-width: 0; }

body.theme-dark .sidebar-wrapper .menu .sidebar-item { margin-top: 4px; }
body.theme-dark .sidebar-wrapper .menu .sidebar-link {
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--up-r);
    font: 700 14.5px/1.2 var(--up-head);
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(246, 240, 232, .8);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
body.theme-dark .sidebar-wrapper .menu .sidebar-link span { margin-left: 0; }
body.theme-dark .sidebar-wrapper .menu .sidebar-link i {
    flex: none; width: 20px;
    font-size: 17px; line-height: 1; text-align: center;
    color: rgba(231, 193, 114, .72);
    transition: color .2s ease;
}
body.theme-dark .sidebar-wrapper .menu .sidebar-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
body.theme-dark .sidebar-wrapper .menu .sidebar-link:hover i { color: var(--up-gold); }
body.theme-dark .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
    border-color: rgba(231, 193, 114, .36);
    background: linear-gradient(90deg, rgba(231, 193, 114, .2), rgba(231, 193, 114, .05));
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .12);
    color: var(--up-gold);
}
body.theme-dark .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link span { color: var(--up-gold); }
body.theme-dark .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link i { color: var(--up-gold); fill: currentColor; }
/* the two outbound links sit apart from the pages */
body.theme-dark .sidebar-wrapper .menu .sidebar-item-sep { margin-top: 22px; }
.sidebar-backdrop { background: rgba(1, 3, 20, .72) !important; }

/* ------------------------------------------------------------
   3. Top bar
   ------------------------------------------------------------ */
body.theme-dark #main { position: relative; background: transparent !important; display: flex; flex-direction: column; min-height: 100vh; }
body.theme-dark #main > header { position: relative; z-index: 1040; }
body.theme-dark .navbar.navbar-top {
    height: auto; min-height: 84px;
    padding: 20px 2rem 12px;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}
body.theme-dark .navbar-top .container-fluid { padding: 0; gap: 12px; }
body.theme-dark .navbar-top .navbar-collapse { gap: 12px; align-items: center; }
body.theme-dark .burger-btn { color: #fff; line-height: 1; }
body.theme-dark .burger-btn i { display: block; }

/* balance chip: always in view, one click to top up */
.nv-balance {
    display: inline-flex; align-items: center; gap: 10px;
    height: 46px;
    padding: 0 7px 0 15px;
    border: 1px solid var(--up-gold-line);
    border-radius: var(--up-r);
    background: rgba(6, 8, 24, .7);
    backdrop-filter: blur(10px);
    color: #fff !important;
    white-space: nowrap;
    transition: border-color .2s ease;
}
.nv-balance:hover { border-color: rgba(231, 193, 114, .7); }
.nv-balance > i { font-size: 17px; line-height: 1; }
.nv-balance b { font: 700 19px/1 var(--up-head); letter-spacing: .02em; }
.nv-balance-add {
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: var(--up-bronze) padding-box, var(--up-bronze-frame) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .5);
    color: #fff;
    font-size: 14px;
}
.nv-balance-add i { color: #fff !important; display: block; line-height: 1; }
body.theme-dark .nv-balance-add i::before, body.theme-dark .market-icon-ph i::before { display: block; line-height: 1; vertical-align: 0; }

body.theme-dark .navbar-top .navbar-nav { align-items: center; }
body.theme-dark .navbar-top .nv-lang {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px;
    padding: 0 12px !important;
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    background: rgba(6, 8, 24, .7);
    backdrop-filter: blur(10px);
    color: #fff !important;
}
body.theme-dark .navbar-top .nv-lang:hover { border-color: var(--up-line-2); }
body.theme-dark .navbar-top .nv-lang .fi { width: 22px; height: 16px; background-size: cover; border-radius: 1px; }
body.theme-dark .navbar-top .nv-lang::after { border-top-color: rgba(255, 255, 255, .6); margin-left: 0; }

.nv-user > a { display: block; }
body.theme-dark .nv-user .user-menu {
    align-items: center; gap: 12px;
    height: 46px;
    padding: 0 12px 0 6px;
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    background: rgba(6, 8, 24, .7);
    backdrop-filter: blur(10px);
    transition: border-color .2s ease;
}
body.theme-dark .nv-user > a:hover .user-menu, body.theme-dark .nv-user > a.show .user-menu { border-color: var(--up-line-2); }
.nv-avatar {
    position: relative; display: grid; place-items: center; flex: none;
    width: 34px; height: 34px;
    isolation: isolate;
}
.nv-avatar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #fbe7b4 0%, #d8a445 50%, #7c5112 100%); -webkit-clip-path: var(--up-hex); clip-path: var(--up-hex); }
.nv-avatar i {
    display: grid; place-items: center;
    width: 30px; height: 30px;
    background: #0b0d26;
    -webkit-clip-path: var(--up-hex); clip-path: var(--up-hex);
    font: 700 15px/1 var(--up-head); font-style: normal;
    color: var(--up-gold);
}
body.theme-dark .nv-user .user-name h6 { font: 700 14.5px/1.2 var(--up-body); letter-spacing: 0; color: #fff; }
body.theme-dark .nv-user .user-name p { font-size: 11.5px; line-height: 1.3; color: var(--up-dim); }
body.theme-dark .nv-user .user-name p i { margin-right: 5px; font-size: 11px; }
.nv-user-caret { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------
   4. Painted backdrop and page head
   ------------------------------------------------------------ */
.pg-art {
    position: absolute; left: 0; right: 0; top: 0;
    height: 640px;
    z-index: 0;
    pointer-events: none;
    background: var(--up-bg) url("../images/panel/pg-dashboard.jpg") center 32% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .9) 26%, rgba(0, 0, 0, .5) 58%, rgba(0, 0, 0, .16) 82%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .9) 26%, rgba(0, 0, 0, .5) 58%, rgba(0, 0, 0, .16) 82%, transparent 100%);
}
/* darker on the left, where the title sits; the painting opens up to the right */
.pg-art::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 3, 20, .9) 0%, rgba(1, 3, 20, .62) 30%, rgba(1, 3, 20, .26) 62%, rgba(1, 3, 20, .34) 100%),
        linear-gradient(180deg, rgba(1, 3, 20, .5) 0%, rgba(1, 3, 20, 0) 26%);
}
.pg-donate .pg-art, .pg-success-transaction-stripe .pg-art, .pg-success-transaction-paypal .pg-art, .pg-cancelled-transaction .pg-art { background-image: url("../images/panel/pg-donate.jpg"); background-position: center 46%; }
.pg-shop .pg-art, .pg-buy-product .pg-art { background-image: url("../images/panel/pg-shop.jpg"); background-position: center 30%; }
.pg-market .pg-art, .pg-my-market-orders .pg-art { background-image: url("../images/panel/pg-market.jpg"); background-position: center 58%; }
.pg-vote .pg-art { background-image: url("../images/panel/pg-vote.jpg"); background-position: center 44%; }
.pg-profile .pg-art, .pg-verify-account .pg-art, .pg-new-device-found .pg-art, .pg-recover-game-account .pg-art { background-image: url("../images/panel/pg-profile.jpg"); background-position: center 30%; }

/* No z-index here on purpose: dialogs live inside #main-content while Bootstrap puts their backdrop on <body>,
   so a stacking context would trap them under their own backdrop. Being positioned after .pg-art is enough to sit above it. */
body.theme-dark #main #main-content { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; padding: 8px 2rem 0; }
body.theme-dark #main-content > footer { margin-top: auto; padding: 34px 0 22px; }
body.theme-dark #main-content > footer p { margin: 0; font-size: 13px; color: var(--up-dim); }
body.theme-dark .page-heading { margin: 0; flex-grow: 0; }

.pg-head { position: relative; max-width: 780px; margin: 0 0 30px; }
.pg-kicker {
    display: block;
    margin-bottom: 10px;
    font: 800 13px/1.3 var(--up-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--up-gold);
}
body.theme-dark .pg-title {
    margin: 0;
    font: 700 clamp(30px, 2.5vw, 44px)/1.14 var(--up-head);
    letter-spacing: .015em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
    overflow-wrap: anywhere;
}
/* small gold rule with a diamond, as under the website's card titles */
.pg-title::after {
    content: "";
    display: block;
    width: 120px; height: 9px;
    margin-top: 16px;
    background:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath fill='%23e7c172' d='M4.5 0 9 4.5 4.5 9 0 4.5z'/%3E%3C/svg%3E") 0 50% / 9px 9px no-repeat,
        linear-gradient(90deg, rgba(231, 193, 114, .9), transparent) 15px 50% / 105px 1px no-repeat;
}
body.theme-dark .pg-lead { max-width: 640px; margin: 14px 0 0; font: 400 16px/1.6 var(--up-body); color: rgba(246, 240, 232, .8); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------
   5. Cards
   ------------------------------------------------------------ */
/* kept at low specificity on purpose: page layouts (donate columns, product page) set their own */
.card { margin-bottom: 24px; }
body.theme-dark .card {
    position: relative;
    border: 1px solid var(--up-line) !important;
    border-radius: var(--up-r) !important;
    background: linear-gradient(180deg, rgba(18, 22, 52, .82) 0%, rgba(7, 9, 28, .92) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 30px 54px -34px rgba(0, 0, 0, .95) !important;
    backdrop-filter: blur(14px);
    color: var(--up-text);
}
/* gold hairline across the top edge */
body.theme-dark .card::before {
    content: "";
    position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .75), transparent);
    pointer-events: none;
}
body.theme-dark .card .card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    border-radius: 0;
    background: transparent !important;
}
body.theme-dark .card .card-body { padding: 24px; }
body.theme-dark .card .card-header ~ .card-body { padding-top: 22px; }
body.theme-dark .card .card-title, body.theme-dark .card .card-header h4, body.theme-dark .card .card-header h5 {
    margin: 0;
    font: 700 21px/1.25 var(--up-head);
    color: #fff;
}
body.theme-dark .card .card-title > i, body.theme-dark .card .card-header h4 > i { margin-right: 8px; font-size: .9em; color: var(--up-gold); }
/* header with a title on the left and an action on the right */
.ui-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; }
.ui-count {
    display: inline-block; margin-left: 10px; padding: 3px 9px;
    border: 1px solid var(--up-gold-line); border-radius: 2px;
    font: 800 12px/1.3 var(--up-body); letter-spacing: .06em;
    color: var(--up-gold);
    vertical-align: middle;
}
.ui-empty { padding: 44px 20px; text-align: center; }
body.theme-dark .ui-empty h4, body.theme-dark .ui-empty h5 { margin: 14px 0 0; font: 700 19px/1.3 var(--up-head); color: rgba(246, 240, 232, .86); }
.ui-empty .ui-hex { margin: 0 auto; }

/* ------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------ */
body.theme-dark .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--up-r) !important;
    font: 700 14.5px/1.15 var(--up-body);
    letter-spacing: 0;
    white-space: nowrap;
    transition: filter .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease;
}
body.theme-dark .btn.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
body.theme-dark .btn.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
body.theme-dark .btn.icon { padding: 0 16px; }
body.theme-dark .btn.btn-sm.icon { padding: 0 13px; }
body.theme-dark .btn > i { font-size: 1em; line-height: 1; padding: 0 !important; }
body.theme-dark .btn:focus-visible { outline: 2px solid rgba(231, 193, 114, .8); outline-offset: 2px; }

/* primary: bronze plate inside a pale gold hairline frame */
body.theme-dark .btn-primary,
body.theme-dark .btn-primary:focus,
body.theme-dark .btn-primary:active,
body.theme-dark .btn-primary.disabled,
body.theme-dark .btn-primary:disabled {
    border: 1px solid transparent !important;
    background: var(--up-bronze) padding-box, var(--up-bronze-frame) border-box !important;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .55), 0 10px 26px -10px rgba(209, 155, 37, .7) !important;
    color: #fff !important;
    font-family: var(--up-head);
    font-size: 15px;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .45);
}
body.theme-dark .btn-primary.btn-sm { font-size: 13px; letter-spacing: .06em; }
body.theme-dark .btn-primary.btn-lg { font-size: 16px; }
body.theme-dark .btn-primary:hover { filter: brightness(1.12) saturate(1.05); color: #fff !important; }
body.theme-dark .btn-primary:active { transform: translateY(1px); }
body.theme-dark .btn-primary i { color: #fff !important; }

/* ghost: translucent glass */
body.theme-dark .btn-secondary,
body.theme-dark .btn-light,
body.theme-dark .btn-light-secondary,
body.theme-dark .btn-outline-primary,
body.theme-dark .btn-outline-secondary {
    border: 1px solid var(--up-line-2) !important;
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-light:hover,
body.theme-dark .btn-light-secondary:hover,
body.theme-dark .btn-outline-primary:hover,
body.theme-dark .btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, .36) !important;
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
}
body.theme-dark .btn-secondary i, body.theme-dark .btn-light-secondary i { color: var(--up-gold) !important; }
body.theme-dark .btn-warning {
    border: 1px solid rgba(231, 193, 114, .55) !important;
    background: rgba(231, 193, 114, .1) !important;
    box-shadow: none !important;
    color: var(--up-gold) !important;
}
body.theme-dark .btn-warning:hover { background: rgba(231, 193, 114, .2) !important; color: #fff !important; }
body.theme-dark .btn-danger {
    border: 1px solid #c8605b !important;
    background: linear-gradient(180deg, #b8423e, #7d2623) !important;
    color: #fff !important;
}
body.theme-dark .btn-success {
    border: 1px solid rgba(79, 213, 138, .55) !important;
    background: rgba(79, 213, 138, .12) !important;
    box-shadow: none !important;
    color: #b9f0d0 !important;
}
body.theme-dark .btn-success:hover { background: rgba(79, 213, 138, .22) !important; color: #fff !important; }
body.theme-dark .btn-link { min-height: 0; padding: 0; color: var(--up-gold); text-decoration: none; }
body.theme-dark .btn-link:hover { color: #fff; }
body.theme-dark .btn-link.text-danger { color: var(--up-red) !important; font-weight: 600; font-size: 13.5px; }
body.theme-dark .btn.disabled, body.theme-dark .btn:disabled { opacity: .45; filter: saturate(.5); box-shadow: none !important; }
/* buttons whose label can run long (item names, translations) wrap instead of overflowing on narrow screens */
body.theme-dark .shopi-form .btn, body.theme-dark .modal .btn, body.theme-dark .prof-form .btn, body.theme-dark .rec-form .btn,
body.theme-dark .sec-card .btn, body.theme-dark .au-submit.btn, body.theme-dark .donate-submit, body.theme-dark .vote-global .btn,
body.theme-dark .dash-tile-foot .btn, body.theme-dark .vote-card-actions .btn {
    max-width: 100%;
    padding-top: 8px; padding-bottom: 8px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

/* ------------------------------------------------------------
   7. Forms
   ------------------------------------------------------------ */
body.theme-dark .form-control,
body.theme-dark .form-select {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: var(--up-r) !important;
    background-color: rgba(255, 255, 255, .045) !important;
    color: #fff !important;
    font: 500 15px/1.4 var(--up-body);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
body.theme-dark .form-control:hover, body.theme-dark .form-select:hover { border-color: rgba(255, 255, 255, .28) !important; }
body.theme-dark .form-control:focus, body.theme-dark .form-select:focus {
    border-color: rgba(231, 193, 114, .8) !important;
    background-color: rgba(255, 255, 255, .07) !important;
    box-shadow: 0 0 0 3px rgba(231, 193, 114, .14) !important;
    color: #fff !important;
}
body.theme-dark .form-control::placeholder { color: var(--up-dim) !important; opacity: 1; }
body.theme-dark .form-control:disabled, body.theme-dark .form-control[readonly] { color: rgba(246, 240, 232, .82) !important; }
body.theme-dark .form-control:disabled { background-color: rgba(255, 255, 255, .02) !important; }
body.theme-dark .form-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e7c172' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 13px 10px !important;
}
body.theme-dark select option { background-color: #0b0d26; color: #f6f0e8; }
body.theme-dark .form-group { margin-bottom: 16px; }

/* field labels: small gold caps. Check box labels and error labels keep plain text. */
body.theme-dark label:not(.form-check-label):not(.text-danger):not(.btn) {
    display: inline-block;
    margin-bottom: 7px;
    font: 800 12px/1.3 var(--up-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--up-gold);
}
body.theme-dark label.text-danger { font: 600 13px/1.4 var(--up-body); color: var(--up-red) !important; }
body.theme-dark .form-check-input { width: 18px; height: 18px; margin-top: 2px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 2px; background-color: rgba(255, 255, 255, .05); }
body.theme-dark .form-check-input:checked { background-color: var(--up-gold-2) !important; border-color: var(--up-gold) !important; }
body.theme-dark .form-check-input:focus { box-shadow: 0 0 0 3px rgba(231, 193, 114, .18); border-color: var(--up-gold); }
body.theme-dark .form-check-label { color: var(--up-muted); }

body.theme-dark .input-group > .form-control { border-right: 0 !important; }
body.theme-dark .input-group > .btn { min-height: 46px; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
body.theme-dark .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.theme-dark .input-group-text { border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: var(--up-r); background: rgba(255, 255, 255, .06) !important; color: var(--up-text) !important; }

/* choices.js selects */
body.theme-dark .choices { margin-bottom: 0; font-size: 15px; }
body.theme-dark .choices__inner {
    min-height: 46px;
    padding: 6px 10px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: var(--up-r) !important;
    background: rgba(255, 255, 255, .045) !important;
    color: #fff;
    font-size: 15px;
}
body.theme-dark .choices:hover .choices__inner { border-color: rgba(255, 255, 255, .28) !important; }
body.theme-dark .choices.is-focused .choices__inner, body.theme-dark .choices.is-open .choices__inner { border-color: rgba(231, 193, 114, .8) !important; box-shadow: 0 0 0 3px rgba(231, 193, 114, .14); }
body.theme-dark .choices__list--single { padding: 6px 22px 6px 4px; }
body.theme-dark .choices__list--single .choices__item { color: #fff; font-weight: 500; }
body.theme-dark .choices[data-type*="select-one"]::after { right: 15px; border-color: var(--up-gold) transparent transparent; }
body.theme-dark .choices[data-type*="select-one"].is-open::after { border-color: transparent transparent var(--up-gold); }
body.theme-dark .choices__list--dropdown, body.theme-dark .choices__list[aria-expanded] {
    width: max-content; min-width: 100%; max-width: 90vw;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: var(--up-r) !important;
    background: #0b0d26 !important;
    box-shadow: 0 24px 50px -20px #000;
    z-index: 30;
}
body.theme-dark .choices__list--dropdown .choices__item { padding: 10px 14px !important; font-size: 14.5px; color: var(--up-text); white-space: nowrap; }
body.theme-dark .choices__list--dropdown .choices__item--selectable::after { display: none !important; }
body.theme-dark .choices__list--dropdown .choices__item--selectable.is-highlighted { background: rgba(231, 193, 114, .16) !important; color: #fff; }
body.theme-dark .choices[data-type*="select-one"] .choices__input {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04) !important;
    color: #fff;
}
body.theme-dark .choices__placeholder { opacity: .6; }

/* ------------------------------------------------------------
   8. Tables
   ------------------------------------------------------------ */
body.theme-dark .table {
    --bs-table-color: #f6f0e8;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, .07);
    --bs-table-hover-bg: rgba(255, 255, 255, .035);
    --bs-table-hover-color: #fff;
    margin-bottom: 0;
    color: var(--up-text);
    font-size: 14.5px;
}
body.theme-dark .table > :not(caption) > * > *,
body.theme-dark .table.table-lg tr td,
body.theme-dark .table.table-lg tr th {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: transparent;
    box-shadow: none;
    vertical-align: middle;
}
body.theme-dark .table > thead > tr > th {
    padding-top: 12px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(231, 193, 114, .3) !important;
    background: rgba(231, 193, 114, .055) !important;
    font: 800 11.5px/1.3 var(--up-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--up-gold) !important;
    white-space: nowrap;
}
body.theme-dark .table > tbody > tr:last-child > * { border-bottom: 0; }
body.theme-dark .table > tbody > tr { transition: background-color .15s ease; }
body.theme-dark .table > tbody > tr:hover > * { background: rgba(255, 255, 255, .03); color: #fff; }
body.theme-dark .table p { color: inherit; }
body.theme-dark .table-responsive { border-radius: 0; }

/* ------------------------------------------------------------
   9. Small parts: badges, alerts, progress, pagination, spinners
   ------------------------------------------------------------ */
body.theme-dark .badge { border-radius: 2px; font-family: var(--up-body); font-weight: 800; letter-spacing: .04em; }
body.theme-dark .bg-primary { background-color: #a8721f !important; }

body.theme-dark .alert {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--up-r);
    font-size: 14px; line-height: 1.5;
}
body.theme-dark .alert ul { margin: 0; padding-left: 18px; }
body.theme-dark .alert-danger { border-color: rgba(255, 143, 138, .45); background: rgba(229, 98, 94, .13); color: #ffc2bf; }
body.theme-dark .alert-warning { border-color: rgba(231, 193, 114, .42); background: rgba(231, 193, 114, .1); color: #f3deaf; }
body.theme-dark .alert-success { border-color: rgba(79, 213, 138, .42); background: rgba(79, 213, 138, .1); color: #b9f0d0; }
body.theme-dark .alert-info, body.theme-dark .alert-primary, body.theme-dark .alert-secondary { border-color: var(--up-line-2); background: rgba(255, 255, 255, .06); color: var(--up-text); }
body.theme-dark .alert i { margin-right: 6px; }

body.theme-dark .progress { height: 10px; border-radius: 0; background: rgba(255, 255, 255, .08) !important; }
body.theme-dark .progress-bar { background: linear-gradient(90deg, #f6d57a, #b47a1c) !important; }
body.theme-dark .spinner-border.text-primary, body.theme-dark .spinner-border { color: var(--up-gold) !important; }
body.theme-dark .btn .spinner-border { color: #fff !important; }

body.theme-dark .pagination { gap: 6px; margin: 22px 0 0; flex-wrap: wrap; }
body.theme-dark .pagination .page-link {
    display: grid; place-items: center;
    min-width: 38px; height: 38px;
    padding: 0 10px;
    border: 1px solid var(--up-line) !important;
    border-radius: var(--up-r) !important;
    background: rgba(255, 255, 255, .05) !important;
    color: var(--up-text) !important;
    font: 700 14px/1 var(--up-body);
}
body.theme-dark .pagination .page-link:hover { border-color: var(--up-gold-line) !important; color: var(--up-gold) !important; }
body.theme-dark .pagination .page-item.active .page-link {
    border-color: transparent !important;
    background: var(--up-bronze) padding-box, var(--up-bronze-frame) border-box !important;
    color: #fff !important;
}
body.theme-dark .pagination .page-item.disabled .page-link { opacity: .4; }
body.theme-dark nav .small.text-muted, body.theme-dark nav p.small { color: var(--up-dim) !important; }

body.theme-dark .list-group-item { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--up-text); }
body.theme-dark .list-group { border-radius: var(--up-r); }

/* toasts (colours are set by the scripts, shape and type here) */
.toastify {
    padding: 13px 18px !important;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--up-r) !important;
    box-shadow: 0 22px 44px -18px #000 !important;
    font: 600 14.5px/1.4 var(--up-body);
    max-width: min(420px, calc(100vw - 30px));
}

/* ------------------------------------------------------------
   10. Dropdowns and modals
   ------------------------------------------------------------ */
body.theme-dark .dropdown-menu {
    --bs-dropdown-bg: #0b0d26;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: var(--up-r) !important;
    background: #0b0d26 !important;
    box-shadow: 0 26px 54px -20px #000 !important;
}
body.theme-dark .navbar-top .dropdown-menu, body.theme-dark #main > header .dropdown-menu { z-index: 1060 !important; margin-top: 6px; }
body.theme-dark .dropdown-item {
    padding: 10px 12px;
    border-radius: 2px;
    font: 600 14.5px/1.3 var(--up-body);
    color: rgba(246, 240, 232, .88) !important;
    transition: background-color .15s ease, color .15s ease;
}
body.theme-dark .dropdown-item i { color: var(--up-gold); }
body.theme-dark .dropdown-item:hover, body.theme-dark .dropdown-item:focus, body.theme-dark .dropdown-item.active { background: rgba(231, 193, 114, .14) !important; color: #fff !important; }
body.theme-dark .dropdown-header { padding: 8px 12px 6px; font: 800 11px/1.3 var(--up-body); letter-spacing: .12em; text-transform: uppercase; color: var(--up-gold); }

body.theme-dark .modal-backdrop { background: #010314; }
body.theme-dark .modal-backdrop.show { opacity: .82; }
body.theme-dark .modal-content {
    border: 1px solid var(--up-gold-line) !important;
    border-radius: var(--up-r) !important;
    background: linear-gradient(180deg, #12163a 0%, #080a20 100%) !important;
    box-shadow: 0 0 0 6px rgba(1, 3, 20, .55), 0 0 0 7px rgba(255, 255, 255, .08), 0 50px 90px -30px #000 !important;
    color: var(--up-text);
}
body.theme-dark .modal-content::before {
    content: "";
    position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .9), transparent);
}
body.theme-dark .modal-header { padding: 20px 24px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; }
body.theme-dark .modal-body { padding: 22px 24px; }
body.theme-dark .modal-body .modal-body { padding: 0; }
body.theme-dark .modal-footer { padding: 16px 24px 20px; border-top: 1px solid rgba(255, 255, 255, .08) !important; background: transparent; gap: 12px; }
body.theme-dark .modal-footer > * { margin: 0; }
body.theme-dark .modal .modal-title { font: 700 22px/1.25 var(--up-head); color: #fff; }
body.theme-dark .modal-title .text-success { color: var(--up-gold) !important; }
body.theme-dark .modal .modal-header .close {
    display: grid; place-items: center; flex: none;
    width: 36px; height: 36px; margin-left: 12px; padding: 0;
    border: 1px solid var(--up-line-2);
    border-radius: 2px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    transition: border-color .2s ease, background-color .2s ease;
}
body.theme-dark .modal .modal-header .close:hover { border-color: rgba(231, 193, 114, .6); background: rgba(231, 193, 114, .12); }
body.theme-dark .modal .modal-header .close svg { width: 18px; height: 18px; }
body.theme-dark .modal h5 { font: 700 18px/1.3 var(--up-head); color: rgba(246, 240, 232, .86); }
/* submit buttons inside dialogs take the full row */
body.theme-dark .modal-body form > .btn-primary, body.theme-dark .modal-footer > .btn-primary { min-width: 180px; }
body.theme-dark .modal .float-end { float: none !important; padding: 0 24px 20px; text-align: right; }
/* vote dialog: banner strip and its progress bar */
#global-info-banner { display: none; margin-bottom: 14px; text-align: center; }
body.theme-dark #global-info-banner p { color: var(--up-text); }
#global-banners { line-height: 10px; }
#global-banners img { margin: 3px; }
#progressBarContainer { display: none; margin-top: 12px; border-radius: 0; background: rgba(255, 255, 255, .08); overflow: hidden; }
#progressBarContainer .progress { height: 14px; }
#verifyingMessage { margin-top: 8px; text-align: center; color: var(--up-text); font-size: 14px; }
body.theme-dark #global-reward-data .modal-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.theme-dark #global-reward-data .avatar img { width: 40px; height: 40px; border-radius: 2px; }

/* ------------------------------------------------------------
   11. Dashboard
   ------------------------------------------------------------ */
.dash-tiles { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 24px; }
.dash-tile {
    position: relative;
    flex: 1 1 340px;
    display: flex; flex-direction: column;
    min-width: 0;
    padding: 22px 24px 22px;
    border: 1px solid rgba(231, 193, 114, .24);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, rgba(231, 193, 114, .13) 0%, rgba(16, 20, 48, .84) 30%, rgba(5, 7, 24, .92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .14), 0 30px 54px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px);
}
.dash-tile::before {
    content: "";
    position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .9), transparent);
}
.dash-tile-top { display: flex; align-items: center; gap: 16px; }
.dash-tile-body { min-width: 0; }
.dash-tile-label { display: block; font: 800 12px/1.3 var(--up-body); letter-spacing: .12em; text-transform: uppercase; color: var(--up-gold); }
.dash-tile-num { display: block; margin-top: 4px; font: 700 38px/1.05 var(--up-head); letter-spacing: .01em; color: #fff; white-space: nowrap; }
body.theme-dark .dash-tile-num small { margin-left: 6px; font: 600 14px/1 var(--up-body); letter-spacing: 0; color: var(--up-muted); }
.dash-tile-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 18px; }
.dash-tile-foot .btn { flex: 0 1 auto; min-height: 46px; }
.dash-tile-foot .input-group { flex: 1 1 100%; flex-wrap: nowrap; }
.dash-tile-foot .input-group .form-control { min-width: 0; font-size: 13.5px; text-overflow: ellipsis; }
.dash-tile-foot .input-group .btn { flex: none; }
body.theme-dark .dash-tile-note { flex: 1 1 100%; margin: 0 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--up-muted); }
.dash-tile-note strong { color: var(--up-gold); font-weight: 800; letter-spacing: .04em; }

body.theme-dark .dash-accounts .card-header { padding-top: 16px; padding-bottom: 16px; }
.dash-accounts .table td.acc-col-n { width: 64px; color: var(--up-dim); font-weight: 700; }
.dash-accounts .table td.acc-col-login { font: 700 16px/1.3 var(--up-head); letter-spacing: .02em; color: #fff; }
.dash-accounts .table td.acc-col-chars { color: var(--up-muted); }
.dash-accounts .table td.acc-col-chars b { color: #fff; font-weight: 800; }
.dash-accounts .table .acc-col-actions { text-align: right; white-space: nowrap; }
.dash-accounts .table td.acc-col-actions .btn + .btn { margin-left: 8px; }

/* ------------------------------------------------------------
   12. Donate
   ------------------------------------------------------------ */
/* reserved slot so swapping payment logos never moves the form */
body.theme-dark .donate-col-left .card-header { padding: 22px 24px; }
.payment-logo-slot { min-height: 96px; display: flex; align-items: center; justify-content: center; }
/* payment marks are drawn for light paper: give them a pale plate */
.payment-logo-slot img {
    box-sizing: border-box;
    width: 260px; max-width: 100%; height: 86px;
    padding: 14px 26px;
    border: 1px solid rgba(251, 231, 180, .8);
    border-radius: var(--up-r);
    background: #f6f0e8;
    box-shadow: 0 16px 30px -18px #000;
    object-fit: contain;
}
#paypalimg, #stripeimg, #zerocryptopayimg { display: none; }
.pay-placeholder { display: flex; align-items: center; gap: 16px; }
body.theme-dark .pay-placeholder p { margin: 0; font: 700 19px/1.3 var(--up-head); color: rgba(246, 240, 232, .86); }
.donate-body { flex: 1 1 auto; display: flex; align-items: center; }
.donate-form-wrap { width: 100%; max-width: 460px; margin: 0 auto; }
body.theme-dark .donate-submit { display: flex !important; width: 100%; margin-top: 22px; }
.donate-spinner { display: block; margin: 18px auto 0; }
.crypto-usd-notice {
    display: none;
    margin: 4px 0 6px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 193, 114, .42);
    border-radius: var(--up-r);
    background: rgba(231, 193, 114, .08);
    color: #f0dcae;
    font-size: 13.5px; line-height: 1.5;
}
.crypto-usd-notice i { margin-right: 6px; color: var(--up-gold); }
.crypto-usd-notice strong { color: #fff; }

.donation-details {
    position: relative;
    display: flex; flex-direction: column;
    padding: 22px 24px 24px;
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, rgba(18, 22, 52, .82) 0%, rgba(7, 9, 28, .92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 30px 54px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px);
}
.donation-details::before {
    content: "";
    position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .75), transparent);
}
body.theme-dark .donation-details-title { margin: 0 0 16px; font: 700 21px/1.25 var(--up-head); color: #fff; }
body.theme-dark #nopaymentmethod { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 0; font: 400 15px/1.5 var(--up-body); color: var(--up-dim); }
body.theme-dark #cartList { margin-bottom: 18px !important; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--up-r); }
body.theme-dark #cartList .list-group-item { padding: 13px 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); color: var(--up-text); }
body.theme-dark #cartList .list-group-item:last-child { border-bottom: 0; background: rgba(231, 193, 114, .08); }
body.theme-dark #cartList .list-group-item h6 { font: 600 14.5px/1.4 var(--up-body); letter-spacing: 0; color: var(--up-muted); }
body.theme-dark #cartList .list-group-item > span { color: var(--up-muted); font-weight: 600; }
body.theme-dark #cartList .list-group-item h6 span { font: 700 17px/1.2 var(--up-head); letter-spacing: .02em; color: #fff; }
body.theme-dark #cartList .list-group-item:last-child h6 span { color: var(--up-gold); }

/* bonus tiers: pinned to the bottom of the details panel */
.donate-bonus { margin-top: auto; }
.donate-bonus-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.donate-bonus-head .ui-kicker { letter-spacing: .14em; }
.donate-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.donate-tier {
    position: relative;
    padding: 13px 10px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--up-r);
    background: rgba(255, 255, 255, .035);
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.donate-tier-from { display: block; font: 700 12.5px/1.3 var(--up-body); color: var(--up-muted); }
.donate-tier-pct { display: block; margin: 3px 0 1px; font: 700 27px/1.1 var(--up-head); color: var(--up-gold); }
.donate-tier-item { display: block; font: 800 10.5px/1.3 var(--up-body); letter-spacing: .12em; text-transform: uppercase; color: var(--up-dim); }
.donate-tier.is-active {
    border-color: var(--up-gold);
    background: linear-gradient(180deg, rgba(231, 193, 114, .3), rgba(231, 193, 114, .08));
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .3), 0 0 0 1px rgba(231, 193, 114, .35), 0 16px 30px -16px rgba(209, 155, 37, .9);
}
.donate-tier.is-active .donate-tier-pct { color: #fff; text-shadow: 0 0 18px rgba(231, 193, 114, .7); }
.donate-tier.is-active .donate-tier-from, .donate-tier.is-active .donate-tier-item { color: #fff; }

/* ------------------------------------------------------------
   13. Shop
   ------------------------------------------------------------ */
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 20px; }
body.theme-dark .shop-bar-title { margin: 0; font: 700 23px/1.2 var(--up-head); color: #fff; }
body.theme-dark .shop-bar-title i { margin-right: 8px; font-size: .88em; color: var(--up-gold); }
body.theme-dark .shop-search { flex: 0 1 320px; }
#no-result { padding: 40px 0; text-align: center; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 22px; }
.shop-card {
    position: relative;
    display: flex; flex-direction: column;
    min-width: 0;
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, rgba(18, 22, 52, .82) 0%, rgba(7, 9, 28, .92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 30px 54px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.shop-card::before {
    content: "";
    position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .75), transparent);
}
.shop-card:hover { border-color: rgba(231, 193, 114, .55); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .14), 0 34px 58px -26px rgba(209, 155, 37, .4); }
.shop-card-media {
    display: block;
    margin: 12px 12px 0;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2px;
    background: radial-gradient(circle at 50% 38%, rgba(231, 193, 114, .16), rgba(1, 3, 20, .5) 70%);
    overflow: hidden;
}
.shop-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.04); }
.shop-card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 16px 16px 14px; text-align: center; }
body.theme-dark .shop-card .shop-card-name { display: flex; align-items: center; justify-content: center; min-height: 2.5em; margin: 0 0 8px; font: 700 18px/1.25 var(--up-head); }
body.theme-dark .shop-card .shop-card-name a { color: #fff; }
body.theme-dark .shop-card .shop-card-name a:hover { color: var(--up-gold); }
body.theme-dark .shop-card-price { margin: auto 0 0; font: 600 13px/1.3 var(--up-body); letter-spacing: .06em; text-transform: uppercase; color: var(--up-muted); }
.shop-card-price b { margin: 0 3px 0 6px; font: 700 22px/1 var(--up-head); letter-spacing: .02em; color: var(--up-gold); vertical-align: -2px; }
.shop-card-buy.btn { margin: 0 12px 12px; }

/* ------------------------------------------------------------
   14. Shop product
   ------------------------------------------------------------ */
.shopi { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.shopi > .card { margin-bottom: 0; }
.shopi-media {
    margin: 16px 16px 0;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2px;
    background: radial-gradient(circle at 50% 38%, rgba(231, 193, 114, .16), rgba(1, 3, 20, .5) 70%);
    overflow: hidden;
}
.shopi-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shopi-facts { display: grid; gap: 0; margin: 0; padding: 8px 16px 12px; }
.shopi-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.shopi-fact:last-child { border-bottom: 0; }
.shopi-fact > span { font: 800 12px/1.3 var(--up-body); letter-spacing: .1em; text-transform: uppercase; color: var(--up-muted); }
.shopi-fact > b { font: 700 22px/1 var(--up-head); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.shopi-fact-price > b { color: var(--up-gold); font-size: 26px; }
.shopi-fact > b i { font-size: .72em; margin-left: 4px; }
.shopi-side { display: grid; gap: 24px; min-width: 0; }
.shopi-side > .card { margin-bottom: 0; }
.shopi-form { display: grid; gap: 16px; max-width: 520px; }
body.theme-dark .shopi-form .form-group, body.theme-dark .shopi-form fieldset { margin: 0; }
.shopi-form .btn { justify-self: start; min-width: 220px; }
body.theme-dark .shopi-desc { color: rgba(246, 240, 232, .82); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
body.theme-dark .shopi-desc p { color: inherit; }
.shopi-desc img { max-width: 100%; height: auto; }
.shopi-desc > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   15. Market and market orders
   ------------------------------------------------------------ */
/* Fields use their own class, not .form-group: the theme's
   "body.theme-dark .form-group" bottom margin out-ranks page rules and
   pushes the button below the inputs. */
.market-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.market-field { flex: 0 0 160px; margin: 0; }
.market-field-num { flex-basis: 124px; }
.market-field-grow { flex: 1 1 200px; }
body.theme-dark .market-toolbar .market-field label { display: block; margin-bottom: 6px; }
.market-field select, .market-field input { width: 100%; }
body.theme-dark .market-toolbar .btn { min-height: 46px; min-width: 110px; }
.market-table td, .market-table th { vertical-align: middle; }
.market-col-item { width: 42%; min-width: 230px; }
.market-col-qty { width: 9%; }
.market-col-seller { width: 17%; }
.market-col-time { width: 12%; white-space: nowrap; }
.market-col-price { width: 12%; }
.market-col-action { width: 8%; text-align: right; white-space: nowrap; }
.market-col-action .btn { min-width: 96px; }
.market-item { display: flex; align-items: center; gap: 12px; }
.market-icon, .market-icon-ph {
    flex: 0 0 38px; width: 38px; height: 38px;
    border: 1px solid rgba(231, 193, 114, .34);
    border-radius: 2px;
    background: rgba(1, 3, 20, .6);
    object-fit: contain;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--up-dim);
}
.market-item-text { min-width: 0; }
.market-item-name { font: 700 15px/1.35 var(--up-body); color: #fff; }
.market-item-sub { font-size: 12px; font-weight: 500; color: var(--up-muted); }
.market-badge {
    display: inline-block;
    margin: 1px 4px 1px 0; padding: 1px 7px;
    border: 1px solid rgba(231, 193, 114, .42);
    border-radius: 2px;
    font: 800 10.5px/1.5 var(--up-body); letter-spacing: .05em;
    color: var(--up-gold);
    white-space: nowrap;
}
.market-grade { vertical-align: middle; position: relative; top: -1px; background: rgba(231, 193, 114, .12); }
.market-item-tags { margin-top: 3px; }
.market-price { font: 700 19px/1.15 var(--up-head); letter-spacing: .02em; color: var(--up-gold); white-space: nowrap; }
.market-price i { font-size: .7em; }
body.theme-dark .market-price small { display: block; margin-top: 3px; font: 600 12px/1.2 var(--up-body); letter-spacing: 0; color: var(--up-muted); }
/* notice bars above the listings: market closed, orders in progress */
.market-closed, .market-pending {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    margin-bottom: 18px; padding: 12px 16px;
    border: 1px solid rgba(231, 193, 114, .42);
    border-radius: var(--up-r);
    background: rgba(8, 10, 28, .82);
    box-shadow: inset 0 0 0 99px rgba(231, 193, 114, .07);
    color: #f0dcae; font-size: 14.5px;
}
.market-closed i, .market-pending i { color: var(--up-gold); }
body.theme-dark .market-pending a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.market-toolbar select option { background: #0b0d26; color: #f6f0e8; }
/* buy dialog (own overlay, no dependency on Bootstrap's script).
   market.js rewrites the class of #marketModalStatus, so it is styled by id. */
#marketModalOverlay { display: none; position: fixed; inset: 0; background: rgba(1, 3, 20, .82); z-index: 1080; }
#marketModal {
    display: none;
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(480px, 92vw);
    z-index: 1090;
    border: 1px solid var(--up-gold-line);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, #12163a 0%, #080a20 100%);
    box-shadow: 0 0 0 6px rgba(1, 3, 20, .55), 0 0 0 7px rgba(255, 255, 255, .08), 0 50px 90px -30px #000;
    padding: 26px 26px 24px;
}
#marketModal::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .9), transparent); }
body.theme-dark #marketModal h5 { margin: 0 0 14px; font: 700 23px/1.25 var(--up-head); color: #fff; }
#marketModal .mm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--up-muted); font-size: 14.5px; }
#marketModal .mm-row strong { font: 700 17px/1.2 var(--up-head); letter-spacing: .02em; color: #fff; text-align: right; }
#marketModal .mm-row strong i { font-size: .76em; }
body.theme-dark #marketModal .form-group { margin: 16px 0 0 !important; }
#marketModal select { width: 100%; }
#marketModalStatus { display: none; margin: 14px 0 0; padding: 11px 14px; border: 1px solid var(--up-line-2); border-radius: var(--up-r); background: rgba(255, 255, 255, .05); font-size: 14px; line-height: 1.5; color: var(--up-text); }
#marketModalStatus.ok { border-color: rgba(79, 213, 138, .5); background: rgba(79, 213, 138, .1); color: #b9f0d0; }
#marketModalStatus.err { border-color: rgba(255, 143, 138, .5); background: rgba(229, 98, 94, .13); color: #ffc2bf; }
#marketModal .mm-actions { display: flex; gap: 12px; margin-top: 20px; }
#marketModal .mm-actions .btn { flex: 1; }

.mo-state { display: inline-block; padding: 2px 9px; border: 1px solid transparent; border-radius: 2px; font: 800 10.5px/1.6 var(--up-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mo-state.completed, .ui-state-ok { border-color: rgba(79, 213, 138, .5); background: rgba(79, 213, 138, .08); color: #9be9be; }
.mo-state.refunded, .ui-state-bad { border-color: rgba(255, 143, 138, .5); background: rgba(229, 98, 94, .1); color: #ffb4b0; }
.mo-state.held, .mo-state.submitted, .ui-state-wait { border-color: rgba(231, 193, 114, .5); background: rgba(231, 193, 114, .08); color: var(--up-gold); }
.ui-state { display: inline-block; padding: 2px 9px; border: 1px solid transparent; border-radius: 2px; font: 800 10.5px/1.6 var(--up-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mo-reason { margin-top: 4px; max-width: 380px; font-size: 12px; line-height: 1.45; color: var(--up-muted); white-space: normal; }
/* the long refund reason must not squeeze the other columns */
body.theme-dark .mo-table td, body.theme-dark .mo-table th { white-space: nowrap; }

/* ------------------------------------------------------------
   16. Vote
   ------------------------------------------------------------ */
.vote-global {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
    margin-bottom: 24px; padding: 20px 24px;
    border: 1px solid rgba(231, 193, 114, .3);
    border-radius: var(--up-r);
    background: linear-gradient(90deg, rgba(231, 193, 114, .16), rgba(16, 20, 48, .84) 46%, rgba(5, 7, 24, .92));
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .14), 0 30px 54px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px);
}
.vote-global-txt { display: flex; align-items: center; gap: 16px; min-width: 0; }
body.theme-dark .vote-global-txt h3 { margin: 0 0 3px; font: 700 21px/1.25 var(--up-head); color: #fff; }
body.theme-dark .vote-global-txt p { margin: 0; font-size: 14px; color: var(--up-muted); }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 22px; }
.vote-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    min-width: 0;
    padding: 26px 20px 20px;
    text-align: center;
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, rgba(18, 22, 52, .82) 0%, rgba(7, 9, 28, .92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .06), 0 30px 54px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px);
    transition: border-color .25s ease;
}
.vote-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .75), transparent); }
.vote-card:hover { border-color: rgba(231, 193, 114, .5); }
.vote-card-reward {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding: 6px 14px 6px 6px;
    border: 1px solid rgba(231, 193, 114, .34);
    border-radius: 2px;
    background: rgba(1, 3, 20, .5);
}
.vote-card-reward img { display: block; width: 40px; height: 40px; border-radius: 2px; }
.vote-card-reward b { font: 700 22px/1 var(--up-head); letter-spacing: .02em; color: var(--up-gold); }
body.theme-dark .vote-card-name { margin: 0 0 8px; font: 700 21px/1.25 var(--up-head); color: #fff; overflow-wrap: anywhere; }
body.theme-dark .vote-card-status { margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: var(--up-muted); }
.vote-card-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; }
.vote-card-actions .btn { flex: 1 1 120px; margin: 0 !important; }

/* ------------------------------------------------------------
   17. Profile
   ------------------------------------------------------------ */
.prof-id { display: flex; flex-direction: row !important; align-items: center; gap: 22px 30px; flex-wrap: wrap; padding: 24px 26px; }
.prof-id-who { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 320px; }
body.theme-dark .prof-id-name { margin: 0 0 4px; font: 700 27px/1.15 var(--up-head); color: #fff; overflow-wrap: anywhere; }
.prof-id-mail { font-size: 14.5px; color: var(--up-muted); overflow-wrap: anywhere; }
.prof-id-mail i { margin-right: 7px; color: var(--up-gold); }
.prof-id-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; }
.prof-id-fact { padding: 4px 28px; border-left: 1px solid rgba(231, 193, 114, .26); }
.prof-id-fact dt { margin: 0 0 5px; font: 800 11.5px/1.3 var(--up-body); letter-spacing: .12em; text-transform: uppercase; color: var(--up-gold); }
.prof-id-fact dd { margin: 0; font: 700 22px/1.15 var(--up-head); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.prof-id-fact dd i { font-size: .72em; margin-left: 4px; }
.prof-form { display: grid; gap: 16px; max-width: 460px; }
body.theme-dark .prof-form .form-group { margin: 0; width: auto !important; }
.prof-form .btn { justify-self: start; }
.prof-item { color: var(--up-muted); }
body.theme-dark .prof-note { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--up-muted); }
.prof-resend { display: flex; justify-content: flex-end; margin-bottom: 4px; }

/* ------------------------------------------------------------
   18. Verify email, new device (2FA), recover game password
   ------------------------------------------------------------ */
.sec-wrap { width: 100%; max-width: 640px; margin: 0 auto; }
/* verify and new device: the card carries the title, so the page head steps aside */
.pg-verify-account .pg-head, .pg-new-device-found .pg-head { display: none; }
.pg-verify-account .sec-wrap, .pg-new-device-found .sec-wrap { margin-top: 3vh; }
.sec-wrap-left { margin-left: 0; }
/* a row of page actions above a card */
.ui-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sec-card { overflow: hidden; }
.sec-art {
    position: relative;
    height: 190px;
    background: url("../images/panel/pg-profile.jpg") center 62% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
body.theme-dark .sec-card .card-body { position: relative; padding: 0 32px 32px; text-align: center; }
.sec-card .ui-hex { margin: -44px auto 18px; }
body.theme-dark .sec-card .card-title { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
body.theme-dark .sec-card p { max-width: 480px; margin: 0 auto 22px; font-size: 15px; line-height: 1.65; }
.sec-form { display: grid; gap: 16px; max-width: 360px; margin: 0 auto; text-align: left; }
body.theme-dark .sec-form .form-control { text-align: center; font: 700 20px/1.2 var(--up-head); letter-spacing: .3em; }
body.theme-dark .sec-form .form-control::placeholder { font: 500 14px/1.6 var(--up-body); letter-spacing: 0; }
.sec-form .btn, .sec-resend .btn { width: 100%; }
.sec-resend { max-width: 360px; margin: 12px auto 0; }
.sec-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.sec-actions form { margin: 0; }
.sec-card .spinner-border { margin: 14px auto 0; }
.rec-form { display: grid; gap: 16px; max-width: 420px; }
body.theme-dark .rec-form .form-group { margin: 0; }
.rec-form .btn { justify-self: start; }

/* ------------------------------------------------------------
   19. Auth pages (login, register, forgot, reset)
   ------------------------------------------------------------ */
body.au-body { min-height: 100vh; margin: 0; overflow-x: hidden; }
.au { position: relative; display: flex; flex-direction: column; min-height: 100vh; isolation: isolate; }
.au-art {
    position: absolute; inset: 0; z-index: -2;
    background: var(--up-bg) url("../images/panel/auth-bg.jpg") center center / cover no-repeat;
}
.au-art::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 3, 20, .86) 0%, rgba(1, 3, 20, .6) 34%, rgba(1, 3, 20, .18) 62%, rgba(1, 3, 20, .4) 100%),
        linear-gradient(180deg, rgba(1, 3, 20, .55) 0%, rgba(1, 3, 20, 0) 22%, rgba(1, 3, 20, 0) 62%, rgba(1, 3, 20, .96) 100%);
}
.au-fig {
    position: absolute; z-index: -1;
    right: max(4vw, calc(50% - 760px)); bottom: 0;
    height: min(86vh, 900px); width: auto;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px clamp(18px, 4vw, 64px) 0; }
.au-logo img { display: block; width: 216px; max-width: 46vw; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.au-top-side { display: flex; align-items: center; gap: 12px; }
body.theme-dark .au-back {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px;
    border: 1px solid var(--up-line-2);
    border-radius: var(--up-r);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    font: 700 14px/1 var(--up-body);
    color: #fff;
}
body.theme-dark .au-back:hover { background: rgba(255, 255, 255, .15); color: #fff; }
body.theme-dark .au-lang.btn { min-height: 44px; padding: 0 12px; border: 1px solid var(--up-line-2) !important; background: rgba(255, 255, 255, .08) !important; box-shadow: none !important; backdrop-filter: blur(8px); }
.au-lang .fi { width: 22px; height: 16px; background-size: cover; border-radius: 1px; }
.au-main { flex: 1 1 auto; display: flex; align-items: center; padding: 34px clamp(18px, 4vw, 64px); }
.au-main-in { width: 100%; max-width: 1520px; margin: 0 auto; }
.au-card {
    position: relative;
    width: 100%; max-width: 470px;
    padding: 34px 34px 30px;
    border: 1px solid var(--up-gold-line);
    border-radius: var(--up-r);
    background: linear-gradient(180deg, rgba(18, 22, 58, .9) 0%, rgba(6, 8, 26, .94) 100%);
    box-shadow: 0 0 0 6px rgba(1, 3, 20, .45), 0 0 0 7px rgba(255, 255, 255, .08), 0 50px 90px -30px #000;
    backdrop-filter: blur(16px);
}
.au-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(251, 231, 180, .9), transparent); }
.au-kicker { display: block; margin-bottom: 10px; font: 800 12.5px/1.3 var(--up-body); letter-spacing: .14em; text-transform: uppercase; color: var(--up-gold); }
body.theme-dark .au-title { margin: 0 0 8px; font: 700 36px/1.12 var(--up-head); letter-spacing: .015em; color: #fff; }
body.theme-dark .au-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--up-muted); }
.au-form { display: grid; gap: 14px; margin-top: 22px; }
.au-field { position: relative; }
.au-field > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 17px; line-height: 1; color: var(--up-gold); pointer-events: none; }
body.theme-dark .au-field .form-control, body.theme-dark .au-field .form-select { min-height: 52px; padding-left: 46px; font-size: 15.5px; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; font-size: 14px; }
body.theme-dark .au-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; color: var(--up-muted); }
body.theme-dark .au-check .form-check-input { flex: none; margin: 1px 0 0; float: none; }
body.theme-dark .au-check .form-check-label { color: var(--up-muted); }
body.theme-dark .au-form .text-danger { font-size: 13px; }
.au-captcha { min-height: 78px; }
body.theme-dark .au-submit.btn { width: 100%; min-height: 54px; margin-top: 4px; font-size: 16px; }
#btnSubmitLoading { display: none; }
.au-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .09); text-align: center; }
body.theme-dark .au-alt p { margin: 0; font-size: 14.5px; color: var(--up-muted); }
body.theme-dark .au-alt p + p { margin-top: 8px; }
body.theme-dark .au-alt a, body.theme-dark .au-row a { font-weight: 700; color: var(--up-gold); }
body.theme-dark .au-alt a:hover, body.theme-dark .au-row a:hover { color: #fff; }
.au-foot { padding: 0 20px 22px; text-align: center; font-size: 13px; color: var(--up-dim); }

/* ------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
    /* wide screens: a little more air around the content */
    body.theme-dark .navbar.navbar-top { padding-left: 2.6rem; padding-right: 2.6rem; }
    body.theme-dark #main #main-content { padding-left: 2.6rem; padding-right: 2.6rem; }
}
@media (min-width: 2000px) {
    .pg-art { height: 720px; }
}
@media (max-width: 1399.98px) {
    .shopi { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
}
@media (max-width: 1199.98px) {
    /* off-canvas menu: it must open above the top bar (z-index 1040) and stay in view when the page is scrolled */
    body.theme-dark .sidebar-wrapper { position: fixed; z-index: 1046; box-shadow: 30px 0 80px -20px #000; }
    body.theme-dark .sidebar-backdrop { z-index: 1045; }
    .au-fig { display: none; }
    .au-main { justify-content: center; }
    .au-card { margin: 0 auto; }
    .au-art::after { background: linear-gradient(180deg, rgba(1, 3, 20, .7) 0%, rgba(1, 3, 20, .5) 40%, rgba(1, 3, 20, .94) 100%); }
}
@media (max-width: 991.98px) {
    .shopi { grid-template-columns: 1fr; }
    .shopi-visual { max-width: 420px; }
    .prof-id-fact:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 992px) {
    /* donate: both columns are flex frames so the card and the details panel always match in height */
    .donate-col-left { display: flex; flex-direction: column; }
    .donate-col-left > .card { flex: 1 1 auto; height: auto; margin-bottom: 0; display: flex; flex-direction: column; }
    .donate-col-left .card-content { flex: 1 1 auto; display: flex; flex-direction: column; }
    .donate-col-right { display: flex; flex-direction: column; }
    .donate-col-right .donation-details { flex: 1 1 auto; }
}
@media (max-width: 791px) {
    /* phones: the old theme hid the character column here and tightened the table; keep that */
    body.theme-dark tbody, body.theme-dark td, body.theme-dark tfoot, body.theme-dark th, body.theme-dark thead, body.theme-dark tr { font-size: 13px; }
    body.theme-dark .table > :not(caption) > * > *,
    body.theme-dark .table.table-lg tr td,
    body.theme-dark .table.table-lg tr th { padding: 10px 10px !important; }
    body.theme-dark .table-responsive .table td, body.theme-dark .table-responsive .table th { white-space: nowrap; }
    body.theme-dark .table-responsive .table td.market-col-item, body.theme-dark .table-responsive .table .mo-reason { white-space: normal; }
    .mo-reason { min-width: 220px; }
    .dash-accounts .acc-repair { display: none !important; }
    .dash-accounts .table td.acc-col-n, .dash-accounts .table th.acc-col-n { display: none; }
    body.theme-dark .btn.icon { padding: 0 11px !important; font-size: 12.5px; }
}
@media (max-width: 767.98px) {
    body.theme-dark .navbar.navbar-top { padding: 14px 16px 8px; min-height: 0; }
    body.theme-dark #main #main-content { padding: 6px 16px 0; }
    .pg-art { height: 460px; }
    .pg-head { margin-bottom: 22px; }
    body.theme-dark .pg-lead { font-size: 15px; }
    body.theme-dark .card .card-header { padding: 16px 18px; }
    body.theme-dark .card .card-body { padding: 18px; }
    body.theme-dark .card, .dash-tile, .shop-card, .vote-card, .donation-details, .vote-global { backdrop-filter: none; }
    .dash-tiles { gap: 16px; }
    .dash-tile { padding: 18px; flex-basis: 100%; }
    .dash-tile-num { font-size: 32px; }
    body.theme-dark .nv-user .user-name { display: none; }
    body.theme-dark .nv-user .user-menu { padding: 0 8px 0 6px; gap: 8px; }
    .nv-balance { padding-left: 12px; gap: 8px; }
    .nv-balance b { font-size: 17px; }
    .market-field, .market-field-num { flex: 1 1 110px; }
    .market-field-grow, body.theme-dark .market-toolbar .btn { flex: 1 1 100%; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    body.theme-dark .shop-search { flex-basis: 100%; }
    .vote-grid { grid-template-columns: 1fr; }
    .prof-id { padding: 20px 18px; }
    .prof-id-fact { padding: 4px 20px; }
    body.theme-dark .sec-card .card-body { padding: 0 20px 24px; }
    .au-top { padding-top: 18px; }
    body.theme-dark .au-back span { display: none; }
    .au-main { padding-top: 22px; padding-bottom: 26px; align-items: flex-start; }
    .au-card { padding: 26px 20px 24px; box-shadow: 0 30px 60px -30px #000; }
    body.theme-dark .au-title { font-size: 30px; }
}
/* short screens: the painting at the foot of the sidebar would sit under the menu */
@media (max-height: 860px) {
    body.theme-dark .sidebar-wrapper { background: #040618; }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-dark *, .shop-card, .shop-card-media img { transition: none !important; }
}
