/* ==========================================================
   ROVIVE THEME v2 - light layout (colored top bar, white sidebar,
   gray page, white cards). Loaded LAST so it overrides legacy CSS.
   Rebrand: change the colors in :root. Dark version: rovive-theme-dark.css
   ========================================================== */
:root {
  --rv-top: #7a16c8;          /* top bar color */
  --rv-top-dark: #5d0f9c;
  --rv-bg: #e3e3e6;           /* page background */
  --rv-card: #ffffff;
  --rv-border: #d4d6da;
  --rv-text: #111111;
  --rv-muted: #6d7278;
  --rv-link: #7a16c8;
  --rv-blue: #8a1fe0;         /* "See All" style buttons */
  --rv-blue-hover: #6d13b8;
  --rv-green: #1fa855;
  --rv-red: #d6453d;
  --rv-radius: 6px;
  --rv-font: "Source Sans Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
html, body, #rbx-body, #wrap, .wrap { background: var(--rv-bg) !important; color: var(--rv-text) !important; font-family: var(--rv-font) !important; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--rv-text) !important; font-family: var(--rv-font) !important; font-weight: 400 !important; }
h1 { font-size: 32px; } h2 { font-size: 26px; } h3 { font-size: 22px; }
p, li, label, td, th, span, div, input, button, select, textarea { font-family: var(--rv-font); }
.text-muted, .small, small, .text-label { color: var(--rv-muted) !important; }
a, a:visited { color: var(--rv-link); text-decoration: none; }
a:hover { text-decoration: underline; }
hr, .rbx-divider { border-color: var(--rv-border) !important; background: var(--rv-border) !important; }

/* ---------- top bar ---------- */
#header, .rbx-header, .navbar-fixed-top.rbx-header { background: var(--rv-top) !important; border: 0 !important; box-shadow: none !important; height: 40px; }
#header a, .rbx-navbar a, .nav-menu-title, .rbx-text-navbar-right { color: #fff !important; font-weight: 600 !important; font-size: 15px; }
.rbx-navbar > li > a:hover, .nav-menu-title:hover { background: var(--rv-top-dark) !important; text-decoration: none; }
.rbx-navbar-header { display: flex !important; align-items: center; height: 40px; }
.rbx-navbar-header .navbar-header { float: none !important; margin: 0 !important; display: flex; align-items: center; }
.navbar-brand { height: 40px !important; padding: 0 14px !important; margin: 0 !important; display: flex !important; align-items: center; }
.navbar-brand .icon-logo, .navbar-brand .icon-logo-r { display: none !important; }
.navbar-brand::before { content: ""; width: 30px; height: 30px; margin-right: 8px; background: url(/img/zen-z.png) center/contain no-repeat; }
.navbar-brand::after { content: "ZEN"; font-weight: 900; font-size: 22px; letter-spacing: .12em; color: #fff; }
#header ul.rbx-navbar { margin-left: 74px !important; }
.rbx-navbar > li > a, .nav-menu-title { padding: 10px 16px !important; }
#navbar-search-input, #navbar-universal-search .form-control { background: #fff !important; border: 1px solid #fff !important; color: var(--rv-text) !important; border-radius: 2px 0 0 2px !important; height: 28px; }
.input-addon-btn { background: #fff !important; border: 1px solid #fff !important; border-radius: 0 2px 2px 0 !important; height: 28px; }
.icon-nav-search { filter: none; }
[class^="icon-nav-"], [class*=" icon-nav-"] { filter: none; }
.rbx-navbar-icon-group [class^="icon-nav-"] { filter: brightness(0) invert(1); }
.login-action a.rbx-navbar-signup { background: #fff !important; color: var(--rv-top) !important; border-radius: 4px; padding: 4px 14px !important; }

/* ---------- dropdowns ---------- */
.dropdown-menu, .popover { background: #fff !important; border: 1px solid var(--rv-border) !important; border-radius: 4px !important; box-shadow: 0 4px 14px rgba(0,0,0,.18) !important; }
.dropdown-menu a, .dropdown-menu li a, .popover-content a { color: var(--rv-text) !important; font-weight: 400 !important; }
.dropdown-menu li:hover { background: #f1f2f4 !important; }

/* ---------- sidebar ---------- */
#navigation, .rbx-left-col { background: #fff !important; border-right: 1px solid var(--rv-border) !important; top: 40px; width: 175px; }
#navigation a, .rbx-left-col a { color: var(--rv-text) !important; font-weight: 400; font-size: 15px; padding: 6px 10px; display: flex; align-items: center; gap: 6px; border-radius: 0; }
#navigation li a:hover { background: #f1f2f4 !important; text-decoration: none; }
#navigation .text-lead a { font-size: 17px; }
#upgrade-now-button, .rbx-left-col .btn-secondary-md { background: var(--rv-blue) !important; color: #fff !important; border: 0 !important; border-radius: 3px !important; justify-content: center; font-weight: 600; }

/* ---------- page area ---------- */
.container-main { background: transparent !important; padding-top: 52px !important; padding-bottom: 20px; }
@media (min-width: 992px) {
  body:has(#navigation) .container-main, body:has(#navigation) .container-footer { margin-left: 175px !important; max-width: none; padding-left: 24px; padding-right: 24px; }
}
.container-main > .content, #Body, .body-width { max-width: 970px; margin-left: auto !important; margin-right: auto !important; background: transparent !important; color: var(--rv-text) !important; border: 0 !important; box-shadow: none !important; }

/* ---------- cards & sections ---------- */
.section-content, .container-list, .rbx-tab-content, .game-card, .item-card, .well, .panel, .panel-default, .modal-content, .GenericModal, .modalPopup, .profile-container, .section-content-off {
  background: var(--rv-card) !important; border: 0 !important; border-radius: 0 !important; color: var(--rv-text) !important; box-shadow: none !important;
}
.section-content-off, .container-list .section-content-off { background: #c9cacd !important; color: #6a6d72 !important; text-align: center; padding: 14px; }
.game-card, .item-card { border-radius: 2px !important; }
.game-card:hover, .item-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.18) !important; }
.modal-backdrop { background: rgba(0,0,0,.5) !important; }
.modalPopup .Title, .modal-header { background: #fff !important; color: var(--rv-text) !important; border-bottom: 1px solid var(--rv-border) !important; }

/* ---------- buttons ---------- */
.btn, .btn-primary, .btn-primary-md, .btn-primary-lg, .btn-primary-sm, .btn-secondary-md, .btn-secondary-xs, .btn-more,
.btn-neutral, .btn-neutral-md, .btn-control-md, .btn-control, .btn-large, .btn-medium, .ImageButton, .btn-default {
  background: var(--rv-blue) !important; background-image: none !important; color: #fff !important; border: 0 !important; border-radius: 3px !important;
  font-family: var(--rv-font) !important; font-weight: 600 !important; text-shadow: none !important; padding: 6px 14px; cursor: pointer; box-shadow: none;
}
.btn:hover, .btn-primary:hover, .btn-primary-md:hover, .btn-secondary-md:hover, .btn-more:hover, .btn-neutral:hover, .btn-control-md:hover { background: var(--rv-blue-hover) !important; text-decoration: none; }
.btn-neutral, .btn-control-md, .btn-default, .btn-control { background: #fff !important; color: var(--rv-text) !important; border: 1px solid var(--rv-border) !important; }
.btn-neutral:hover, .btn-control-md:hover, .btn-default:hover { background: #f1f2f4 !important; }
#signup-button, .signup-submit-button, .btn-green, .btn-positive, .btn-primary-lg { background: var(--rv-green) !important; color: #fff !important; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], textarea, select, .form-control, .text-box, .text-box-medium, .text-box-large, .input-field {
  background: #fff !important; color: var(--rv-text) !important; border: 1px solid #b8bbc0 !important; border-radius: 3px !important; padding: 7px 10px; box-shadow: none !important; outline: none !important;
}
input:focus, textarea:focus, select:focus, .form-control:focus { border-color: var(--rv-blue) !important; box-shadow: 0 0 0 2px rgba(46,155,240,.25) !important; }
::placeholder { color: #8a8e94 !important; }
.form-label, .form-group label { color: var(--rv-muted) !important; font-weight: 600; }
.has-error .form-control { border-color: var(--rv-red) !important; }
.alert, .alert-info, .alert-warning, .alert-danger, .alert-success, .input-validation-large { background: #fff !important; color: var(--rv-text) !important; border: 1px solid var(--rv-border) !important; border-radius: 3px !important; }
.alert-warning, .alert-danger, .input-validation-large { border-color: var(--rv-red) !important; color: var(--rv-red) !important; }
.alert-success { border-color: var(--rv-green) !important; }

/* ---------- tabs / tables ---------- */
th { color: var(--rv-muted) !important; } td, th { border-color: var(--rv-border) !important; }
.nav-tabs > li > a, .rbx-tabs-horizontal .rbx-tab a, .tab-item { color: var(--rv-text) !important; background: #fff !important; border: 0 !important; border-bottom: 3px solid transparent !important; font-weight: 600; }
.nav-tabs > li.active > a, .rbx-tab.active a, .tab-item.active { border-bottom-color: var(--rv-top) !important; }

/* ---------- login ---------- */
#RepositionBody #Body { max-width: 560px; margin: 40px auto !important; padding: 28px !important; background: #fff !important; border-radius: 6px !important; box-shadow: 0 2px 10px rgba(0,0,0,.12) !important; }
#loginarea, #leftArea, #rightArea, #loginPanel, #logintable { background: transparent !important; border: 0 !important; }
#loginarea { display: flex; flex-wrap: wrap; gap: 24px; padding: 8px 0 18px; }
#leftArea { flex: 1 1 260px; } #logintable { width: 100%; } #logintable td { padding: 8px 6px; } #logintable input { width: 100%; }
#rightArea { flex: 1 1 200px; text-align: center; border-left: 1px solid var(--rv-border) !important; padding-left: 24px; }

/* ---------- home ---------- */
.home-header { padding: 6px 0 14px; display: flex; align-items: center; gap: 22px; }
.home-header h1, .home-header h1 a { color: var(--rv-text) !important; font-size: 34px; }
.avatar-headshot-lg, .avatar-card-image { background: #d9dadd !important; border-radius: 50%; }

/* ---------- footer ---------- */
.container-footer, footer { background: transparent !important; border: 0 !important; }
.footer { border-top: 1px solid var(--rv-border); margin-top: 24px; padding: 18px 0; text-align: center; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links li { width: auto !important; float: none !important; }
.footer a, .text-footer-nav { color: var(--rv-muted) !important; font-size: 14px !important; font-weight: 600 !important; }
.text-footer, .footer-note { color: var(--rv-muted) !important; font-size: 13px !important; }

/* ---------- misc ---------- */
img { max-width: 100%; }
img[src*="/timg/"], .app-store-logo, .ComputerImg { display: none !important; }
* { scrollbar-color: #b8bbc0 transparent; scrollbar-width: thin; }

/* ======= landing page keeps a dark gradient hero ======= */
body:has(.navbar-landing), body:has(.navbar-landing) #rbx-body, body:has(.navbar-landing) #wrap { background: #0f0f10 !important; color: #f1e4ff !important; }
body:has(.navbar-landing) h1, body:has(.navbar-landing) h2, body:has(.navbar-landing) h3 { color: #fff !important; font-weight: 700 !important; }
.navbar-landing { background: rgba(14,16,32,.9) !important; border: 0 !important; height: auto; }
.navbar-landing a { color: #fff !important; }
#RollerContainer, #WhatsRobloxContainer, #RobloxDeviceText, #RobloxDevice { background-image: none !important; }
#RollerContainer { background: radial-gradient(900px 500px at 15% 10%, rgba(150,30,255,.45), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(200,140,255,.18), transparent 60%), #0f0f10 !important; }
#WhatsRobloxContainer { background: #14081f !important; } #RobloxDeviceText, #RobloxDevice { background: #0f0f10 !important; }
#SignUpFormContainer, .rbx-login-partial-legacy, #InnerRollerContainer, #MainCenterContainer, #LogoAndSlogan, #MainLogo { background: transparent !important; }
#SignUpFormContainer { max-width: 440px; margin: 0 auto; }
.signup-container, .signup-input-area { background: #fff !important; border-radius: 10px !important; box-shadow: 0 8px 28px rgba(0,0,0,.4) !important; color: var(--rv-text) !important; }
.signup-header { color: #fff !important; }
.navbar-brand img, img.robloxLogo { height: 34px; width: auto; }
.navbar-landing .navbar-brand::after, .navbar-landing .navbar-brand::before { content: none; }
#MainLogoImage { max-width: 360px; margin: 0 auto 12px; }
#LogoAndSlogan h1 { font-size: 40px; background: none !important; text-shadow: none !important; }
#GameImage1, #GameImage2, #GameImage3, #WhatIsRobloxTextBg { background-image: none !important; background-color: #2a0f44 !important; border-radius: 8px; min-height: 160px; }
.gender-circle { border: 2px solid #b8bbc0 !important; border-radius: 50% !important; }

@media (max-width: 767px) { #RepositionBody #Body { margin: 16px 10px !important; padding: 18px !important; } }

/* v2.1 fixes */
#navigation #upgrade-now-button, #navigation .rbx-upgrade-now a { color: #fff !important; font-weight: 600; }
.container-footer .footer { max-width: 970px; margin-left: auto; margin-right: auto; }

/* ===== v6 ZEN: always dark text on white / light surfaces ===== */
.section-content, .container-list, .rbx-tab-content, .game-card, .item-card, .well, .panel, .modal-content, .profile-container, .zen-card,
.section-content *, .container-list *, .zen-card *, .panel *, .modal-content * { color: #111; }
.section-content a, .container-list a, .zen-card a, .panel a { color: var(--rv-link); }
.btn, .btn *, .btn-primary, .btn-primary *, .btn-secondary-md, .btn-secondary-md *, .btn-more, .zen-btn, .zen-btn *, #upgrade-now-button, .navbar-landing a, .rbx-header a { color: #fff !important; }
.btn-neutral, .btn-neutral *, .btn-control, .btn-control *, .btn-default, .btn-default * { color: #111 !important; }
input, textarea, select, option { color: #111 !important; }
#navigation a { color: #111 !important; }
.footer a, .text-footer-nav, .footer-note, .text-footer { color: #444 !important; }
#navigation #upgrade-now-button { color: #fff !important; }

/* verified badge */
.zen-check { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; margin-left: .25em; background: url(/img/verified.svg) center/contain no-repeat; }
.zen-check.big { width: 26px; height: 26px; vertical-align: -4px; }

/* ===== zen pages (catalog, item, profile, upgrade, admin) ===== */
.zen-wrap { max-width: 970px; margin: 0 auto; padding: 8px 0 30px; color: #111; }
.zen-card { background: #fff; border-radius: 3px; padding: 18px 20px; margin-bottom: 14px; color: #111; }
.zen-card h2, .zen-card h3, .zen-card p, .zen-card td, .zen-card th, .zen-card label, .zen-card span, .zen-card div { color: #111; }
.zen-title { font-size: 34px; margin: 6px 0 12px; color: #111 !important; }
.zen-btn { display: inline-block; border: 0; border-radius: 3px; padding: 8px 18px; font-weight: 600; font-size: 15px; cursor: pointer; background: var(--rv-blue); color: #fff !important; text-decoration: none !important; }
.zen-btn:hover { background: var(--rv-blue-hover); } .zen-btn.green { background: #1fa855; } .zen-btn.green:hover { background: #178a45; } .zen-btn.red { background: #c0392b; } .zen-btn[disabled] { opacity: .55; cursor: default; }
.zen-muted { color: #666 !important; }
.rbx-price { color: #1fa855 !important; font-weight: 700; } .rbx-price::before { content: "R$ "; font-weight: 700; color: #1fa855; font-size: .8em; }
/* catalog */
.cat-layout { display: flex; gap: 20px; align-items: flex-start; }
.cat-side { width: 190px; flex: 0 0 190px; border-right: 1px solid #ccc; padding-right: 14px; color: #111; }
.cat-side h3 { font-size: 22px; margin: 8px 0 10px; }
.cat-side a { color: #111 !important; font-size: 13px; display: block; padding: 4px 0; cursor: pointer; }
.cat-side a.on { color: var(--rv-link) !important; font-weight: 700; }
.cat-sub { padding-left: 12px; display: none; } .cat-group.open .cat-sub { display: block; }
.cat-group > a::after { content: "+"; float: right; color: #888; } .cat-group.open > a::after { content: "\2212"; }
.cat-main { flex: 1; min-width: 0; }
.cat-bar { display: flex; gap: 8px; margin: 4px 0 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cat-search { display: flex; border: 1px solid #bbb; background: #fff; border-radius: 3px; overflow: hidden; }
.cat-search input { border: 0 !important; padding: 9px 12px; min-width: 190px; } .cat-search select { border: 0 !important; border-left: 1px solid #ddd !important; padding: 9px; } .cat-search button { border: 0; background: #fff; padding: 0 12px; cursor: pointer; font-size: 17px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.cat-card { background: #fff; border-radius: 2px; position: relative; padding-bottom: 8px; color: #111; transition: box-shadow .12s; }
.cat-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.cat-card .im { aspect-ratio: 1/1; background: #f3f3f5; display: block; } .cat-card .im img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-card .nm { padding: 6px 8px 0; font-size: 13px; line-height: 1.25; min-height: 34px; color: #111 !important; display: block; overflow: hidden; }
.cat-card .pr { padding: 2px 8px 0; font-size: 14px; }
.ribbon { position: absolute; left: 0; bottom: 46px; background: #1fa855; color: #fff !important; font-size: 10px; font-weight: 700; padding: 1px 8px 1px 4px; clip-path: polygon(0 0,100% 0,88% 100%,0 100%); letter-spacing: .03em; }
.ribbon.new { left: auto; right: 6px; top: 6px; bottom: auto; background: #f0883a; clip-path: none; border-radius: 2px; padding: 1px 5px; }
.cat-pager { display: flex; gap: 10px; justify-content: center; margin: 16px 0; align-items: center; color: #111; }
/* item page */
.item-top { display: flex; gap: 22px; flex-wrap: wrap; }
.item-pic { width: 400px; max-width: 100%; aspect-ratio: 1/1; border: 1px solid #ddd; background: #fff; position: relative; }
.item-pic img { width: 100%; height: 100%; object-fit: contain; } .item-pic .ribbon { bottom: 8px; font-size: 12px; }
.item-pic .pbtns { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.item-pic .pbtns a { background: #fff; border: 1px solid #aaa; padding: 5px 12px; color: #111 !important; border-radius: 3px; font-size: 14px; }
.item-info { flex: 1 1 320px; min-width: 280px; }
.item-info h1 { font-size: 30px; margin: 0; color: #111 !important; } .item-by { color: #666; border-bottom: 1px solid #ddd; padding: 4px 0 10px; margin-bottom: 12px; }
.item-row { display: flex; gap: 20px; padding: 7px 0; font-size: 15px; } .item-row .k { width: 110px; color: #888; flex: 0 0 110px; } .item-row .v { color: #111; }
.item-buyrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.item-price { font-size: 28px; font-weight: 700; color: #1fa855; } .item-price small { color: #888; font-size: 14px; font-weight: 400; display: block; }
.buybtn { min-width: 180px; text-align: center; padding: 14px 20px; font-size: 20px; }
/* profile */
.pf-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pf-head .pic { width: 130px; height: 130px; border-radius: 50%; background: #d9dadd; overflow: hidden; flex: 0 0 130px; } .pf-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.pf-head h1 { margin: 0; font-size: 34px; color: #111 !important; } .pf-stats { display: flex; gap: 34px; margin-top: 14px; } .pf-stats div { text-align: center; color: #888; } .pf-stats b { display: block; color: #7a16c8; font-size: 20px; font-weight: 400; }
.pf-tabs { display: flex; background: #fff; } .pf-tabs a { flex: 1; text-align: center; padding: 11px; color: #111 !important; font-weight: 600; border-bottom: 3px solid transparent; } .pf-tabs a.on { border-bottom-color: var(--rv-top); }
.pf-wear { display: flex; background: #fff; min-height: 300px; } .pf-wear .l { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; } .pf-wear .l img { max-height: 300px; max-width: 100%; }
.pf-wear .r { flex: 1; background: var(--rv-top); display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; align-content: flex-start; } .pf-wear .r a { width: 100px; height: 100px; background: #fff; border-radius: 3px; display: block; overflow: hidden; position: relative; } .pf-wear .r img { width: 100%; height: 100%; object-fit: contain; }
.pf-sec { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; } .pf-sec h3 { margin: 0; font-size: 22px; color: #111 !important; font-weight: 400; }
.pf-empty { background: #c9cacd; color: #555 !important; text-align: center; padding: 14px; }
/* upgrade */
.up-table { width: 100%; border-collapse: collapse; font-size: 14px; } .up-table td, .up-table th { padding: 11px 6px; text-align: center; border-bottom: 1px solid #e4e4e4; color: #111; } .up-table td:first-child { text-align: left; font-weight: 700; width: 170px; }
.up-icon { width: 62px; height: 62px; border-radius: 50%; margin: 6px auto 8px; display: flex; align-items: center; justify-content: center; } .up-icon img { width: 34px; height: 34px; object-fit: contain; }
.up-price { color: #1fa855 !important; font-weight: 700; font-size: 16px; } .up-yes { color: #1fa855 !important; font-size: 18px; } .up-no { color: #c0392b !important; font-weight: 700; }
.up-cols { display: flex; gap: 24px; flex-wrap: wrap; } .up-main { flex: 1 1 640px; } .up-side { flex: 0 0 240px; font-size: 14px; color: #111; }
.up-choose { margin: 28px 0 18px; } .up-choose td { padding: 22px 6px; border: 0; }

/* ===================== DARK MODE (Settings > Appearance) ===================== */
html.zen-dark { color-scheme: dark; }
html.zen-dark, html.zen-dark body, html.zen-dark #rbx-body, html.zen-dark #wrap, html.zen-dark .wrap { background: #232527 !important; color: #f2f2f2 !important; }
html.zen-dark h1, html.zen-dark h2, html.zen-dark h3, html.zen-dark h4, html.zen-dark .zen-title { color: #f6f6f6 !important; }
html.zen-dark .zen-card, html.zen-dark .section-content, html.zen-dark .container-list, html.zen-dark .well, html.zen-dark .panel,
html.zen-dark .modal-content, html.zen-dark .cat-card, html.zen-dark .pf-tabs, html.zen-dark .pf-wear, html.zen-dark .item-pic, html.zen-dark .cat-search { background: #2f3236 !important; }
html.zen-dark .zen-card, html.zen-dark .zen-card *, html.zen-dark .section-content *, html.zen-dark .cat-card, html.zen-dark .cat-card *, html.zen-dark .item-row .v,
html.zen-dark .up-table td, html.zen-dark .up-table th, html.zen-dark .pf-stats, html.zen-dark .cat-side, html.zen-dark .cat-side *, html.zen-dark .cat-pager,
html.zen-dark #cat-crumb, html.zen-dark .up-side, html.zen-dark .zen-wrap { color: #f2f2f2; }
html.zen-dark .zen-card a, html.zen-dark .zen-wrap a:not(.zen-btn):not(.btn), html.zen-dark .section-content a { color: #c995ff; }
html.zen-dark .cat-card .nm, html.zen-dark .cat-side a, html.zen-dark .pf-tabs a, html.zen-dark .item-pic .pbtns a { color: #f2f2f2 !important; }
html.zen-dark .cat-side a.on { color: #c995ff !important; }
html.zen-dark .item-pic .pbtns a { background: #3b3f44; border-color: #555; }
html.zen-dark .cat-card .im, html.zen-dark .pf-wear .l { background: #3a3e43; }
html.zen-dark .zen-muted, html.zen-dark .item-row .k, html.zen-dark .item-by { color: #a9adb1 !important; }
html.zen-dark .pf-empty { background: #3a3e43; color: #b8bcc0 !important; }
html.zen-dark .up-table td, html.zen-dark .up-table th, html.zen-dark .cat-side { border-color: #44484c; }
html.zen-dark #navigation, html.zen-dark .rbx-left-col { background: #1f2124 !important; border-color: #3b3e42 !important; }
html.zen-dark #navigation a { color: #f2f2f2 !important; }
html.zen-dark #navigation li a:hover { background: #2c2f33 !important; }
html.zen-dark #navigation [class^="icon-nav-"], html.zen-dark #navigation [class*=" icon-nav-"] { filter: invert(1) brightness(1.2); }
html.zen-dark #navigation hr, html.zen-dark hr { border-color: #3b3e42 !important; background: #3b3e42 !important; }
html.zen-dark input[type=text], html.zen-dark input[type=password], html.zen-dark input[type=number], html.zen-dark input[type=search], html.zen-dark textarea, html.zen-dark select {
  background: #1f2124 !important; color: #f2f2f2 !important; border-color: #4a4e53 !important; }
html.zen-dark .cat-search input, html.zen-dark .cat-search select, html.zen-dark .cat-search button { background: #2f3236 !important; color: #f2f2f2 !important; }
html.zen-dark .btn-neutral, html.zen-dark .btn-control, html.zen-dark .btn-default { background: #3b3f44 !important; color: #f2f2f2 !important; border-color: #555 !important; }
html.zen-dark .footer a, html.zen-dark .text-footer-nav, html.zen-dark .footer-note, html.zen-dark .text-footer { color: #a9adb1 !important; }
html.zen-dark .footer { border-color: #3b3e42; }
/* avatar editor in dark mode: like the reference screenshot */
html.zen-dark .ae-head h1, html.zen-dark .avatar-editor h1, html.zen-dark .ae-get, html.zen-dark .ae-crumb, html.zen-dark .ae-scaling h2, html.zen-dark .ae-scaling label, html.zen-dark .ae-scaling span { color: #f2f2f2 !important; }
html.zen-dark .ae-tabs, html.zen-dark .ae-tab, html.zen-dark .ae-menu { background: #3a3e43 !important; color: #f2f2f2 !important; }
html.zen-dark .ae-tab { border-bottom-color: transparent; } html.zen-dark .ae-tab.on, html.zen-dark .ae-tab.active { border-bottom: 3px solid #fff !important; }
html.zen-dark .ae-scaling, html.zen-dark .ae-colors, html.zen-dark .ae-panel, html.zen-dark .ae-refreshrow { background: transparent !important; color: #f2f2f2 !important; }
html.zen-dark .ae-card { background: #2b2d30 !important; border: 0 !important; position: relative; }
html.zen-dark .ae-card .ae-name, html.zen-dark .ae-card * { color: #f2f2f2 !important; }
html.zen-dark .ae-img { background: #26282b !important; }
html.zen-dark .ae-card.worn::before, html.zen-dark .ae-card.worn::after { border: 0; }
html.zen-dark .ae-card.worn .ae-img::after { content: "\2713"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: #fff; color: #111 !important; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
html.zen-dark .ae-btn { background: #fff !important; color: #111 !important; }
html.zen-dark .ae-btn * { color: #111 !important; }
html.zen-dark .ae-empty { color: #b8bcc0 !important; }
/* tix in the top bar */
.nav-tix { display: inline-flex; align-items: center; gap: 4px; color: #fff !important; font-weight: 700; padding: 0 10px; height: 40px; }
.nav-tix b { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #ffd24a; color: #5a3d00; font-size: 10px; line-height: 18px; text-align: center; }

/* ============================================================================
   ZEN V8 - top bar, sidebar, announcement banner, checkmark, admin tabs
   ============================================================================ */
/* checkmark badge (new picture) */
.zen-check { background: url(/img/zen-verified.png) center/contain no-repeat !important; }

/* ---------- top bar ---------- */
.navbar-brand::before, .navbar-brand::after { content: none !important; display: none !important; }
#header .zen-bar { display: flex; align-items: center; height: 40px; padding: 0 10px; gap: 8px; width: 100%; max-width: none; }
#header .zen-bar::before, #header .zen-bar::after { display: none !important; }
.zen-bar-left { display: flex; align-items: center; flex: 0 0 auto; }
.zen-burger { background: none; border: 0; color: #fff !important; padding: 6px 8px; margin-right: 2px; cursor: pointer; display: flex; align-items: center; border-radius: 4px; }
.zen-burger:hover { background: var(--rv-top-dark); }
.zen-burger .zi { width: 24px; height: 24px; }
.navbar-brand { padding: 0 10px !important; height: 40px !important; display: flex !important; align-items: center; float: none !important; }
.zen-logo { height: 30px !important; width: auto !important; display: block; }
#header ul.zen-links { display: flex; margin: 0 0 0 4px !important; padding: 0; list-style: none; float: none; width: auto; }
#header ul.zen-links > li { float: none; }
#navbar-universal-search { flex: 1 1 260px; max-width: 360px; width: auto !important; float: none !important; margin: 0 auto 0 10px; position: relative; padding: 0; }
#navbar-universal-search .input-group { display: flex; width: 100%; }
#navbar-universal-search .input-group-btn { width: auto; display: block; }
#navbar-universal-search .form-control { flex: 1 1 auto; width: 100%; }
.icon-nav-search { display: block; width: 18px; height: 18px; margin: 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center/contain no-repeat !important; }
.zen-bar-right { display: flex; align-items: center; margin-left: auto; gap: 2px; flex: 0 0 auto; float: none; width: auto; }
.zen-user { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; color: #fff !important; font-weight: 700 !important; font-size: 15px; max-width: 190px; }
.zen-user:hover { background: var(--rv-top-dark); text-decoration: none; }
.zen-uname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zen-age { font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; padding: 0 4px; line-height: 16px; flex: 0 0 auto; }
.zen-ibtn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 9px; background: none; border: 0; color: #fff !important; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--rv-font); }
.zen-ibtn:hover { background: var(--rv-top-dark); text-decoration: none; }
.zen-ibtn span { color: #fff !important; }
.zen-ibtn .zi { width: 24px; height: 24px; }
.zen-login, .zen-signup { padding: 6px 14px !important; }
.zen-dd { position: relative; }
.zen-dd-menu { display: none; position: absolute; top: 40px; left: 0; min-width: 190px; background: #fff; border: 1px solid var(--rv-border); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.22); list-style: none; margin: 0; padding: 4px 0; z-index: 2000; }
.zen-dd-menu.right { left: auto; right: 0; }
.zen-dd.open .zen-dd-menu { display: block; }
#header .zen-dd-menu a { display: block; padding: 9px 16px; color: #111 !important; font-weight: 400 !important; font-size: 15px; background: none; }
#header .zen-dd-menu a:hover { background: #f1f2f4; text-decoration: none; }
.zen-dd-info { padding: 9px 16px; color: #666; font-size: 14px; border-bottom: 1px solid var(--rv-border); margin-bottom: 4px; }

/* ---------- announcement banner (admin > Announcements) ---------- */
#zen-banner { position: fixed; top: 40px; left: 0; right: 0; height: 32px; line-height: 32px; text-align: center; color: #fff; font-weight: 700; font-size: 15px; z-index: 1029; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
html.zen-has-banner #navigation { top: 72px !important; }
html.zen-has-banner .container-main { padding-top: 84px !important; }

/* ---------- sidebar ---------- */
#navigation, .rbx-left-col { position: fixed; left: 0; bottom: 0; top: 40px; width: 175px; height: auto !important; max-height: none !important; overflow-y: auto; padding: 0 !important; z-index: 1020; }
.zen-side-user { display: flex !important; align-items: center; gap: 10px; padding: 12px 12px !important; border-bottom: 1px solid var(--rv-border); font-weight: 700 !important; font-size: 17px !important; }
.zen-side-av { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #e3e3e6; object-fit: cover; }
.zen-side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zen-side-list { list-style: none; margin: 0; padding: 8px 0 16px; }
#navigation .zen-side-list a { padding: 9px 14px; gap: 12px; font-weight: 600; font-size: 16px; }
#navigation .zi { flex: 0 0 22px; color: #3a3d42; }
.zen-side-list .rbx-upgrade-now { padding: 14px 12px 0; }
#navigation #upgrade-now-button { display: flex; justify-content: center; border-radius: 6px !important; padding: 9px !important; }
.zen-mobonly { display: none; }
html.zen-navhide #navigation { display: none; }
@media (min-width: 992px) {
  html.zen-navhide body:has(#navigation) .container-main, html.zen-navhide body:has(#navigation) .container-footer { margin-left: 0 !important; }
}
@media (max-width: 991px) {
  .zen-mobonly { display: block; }
  #navigation { display: none; }
  html.zen-navopen #navigation { display: block; box-shadow: 4px 0 18px rgba(0,0,0,.3); }
  #header ul.zen-links { display: none; }
  .zen-uname { display: none; }
  #navbar-universal-search { max-width: none; }
}
@media (max-width: 560px) { #navbar-universal-search { display: none; } .zen-age { display: none; } }

/* ---------- admin tabs ---------- */
.zen-admintabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.zen-admintabs a { background: #fff; color: #111 !important; padding: 8px 16px; border-radius: 3px; font-weight: 600; border-bottom: 3px solid transparent; }
.zen-admintabs a.on { border-bottom-color: var(--rv-top); }

/* ---------- dark mode bits for the above ---------- */
html.zen-dark .zen-dd-menu { background: #2f3236; border-color: #44484c; }
html.zen-dark #header .zen-dd-menu a { color: #f2f2f2 !important; }
html.zen-dark #header .zen-dd-menu a:hover { background: #3b3f44; }
html.zen-dark .zen-dd-info { color: #a9adb1; border-color: #44484c; }
html.zen-dark #navigation .zi { color: #d6d8da; }
html.zen-dark .zen-side-user { border-color: #3b3e42; }
html.zen-dark .zen-side-av { background: #3a3e43; }
html.zen-dark .zen-admintabs a { background: #2f3236; color: #f2f2f2 !important; }

/* ---------- popup windows (buy item, trades) ---------- */
.zen-modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 12px; }
.zen-modal { background: #fff; color: #111; width: 100%; max-width: 420px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.4); max-height: 94vh; overflow-y: auto; }
.zen-modal.wide { max-width: 760px; }
.zen-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #ddd; font-size: 18px; }
.zen-x { background: none; border: 0; font-size: 28px; line-height: 1; color: #888; cursor: pointer; }
.zen-modal-b { padding: 16px 20px 20px; text-align: center; }
.zen-modal-b p { text-align: left; font-size: 17px; }
.zen-modal-img { display: flex; justify-content: center; margin: 8px 0 14px; }
.zen-modal-img img { width: 220px; height: 220px; object-fit: contain; background: #eceef0; border-radius: 6px; }
.zen-modal-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.zen-modal-note { color: #777; font-size: 13px; min-height: 18px; }
html.zen-dark .zen-modal { background: #2b2d30; color: #f2f2f2; }
html.zen-dark .zen-modal-h { border-color: #44484c; }
html.zen-dark .zen-modal-img img { background: #3a3e43; }

/* ---------- trading ---------- */
.tr-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 0; color: #999; font-size: 13px; }
.tr-title { text-align: center; font-size: 26px; font-weight: 700; padding: 4px 0 10px; }
.tr-body { display: flex; gap: 18px; padding: 0 20px 6px; text-align: left; }
.tr-who { width: 150px; flex: 0 0 150px; text-align: center; font-weight: 700; }
.tr-who img { width: 110px; height: 110px; object-fit: contain; background: #e6e8eb; border-radius: 6px; }
.tr-with { margin-top: 8px; font-size: 16px; }
.tr-lists { flex: 1 1 auto; border-left: 1px solid #ddd; padding-left: 18px; min-width: 0; }
.tr-sec { display: flex; justify-content: space-between; font-size: 14px; margin: 4px 0 6px; }
.tr-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tr-slot { border: 1px solid #c9ccd0; min-height: 120px; padding: 4px; text-align: center; background: #fff; }
.tr-slot img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #eceef0; }
.tr-n { font-size: 12px; font-weight: 600; color: #0b5cff; line-height: 1.15; margin-top: 3px; word-break: break-word; }
.tr-r { font-size: 12px; }
.tr-arrows { text-align: center; color: #999; font-size: 18px; margin: 4px 0; }
.tr-msg { text-align: center; min-height: 22px; font-weight: 600; padding: 4px 12px; }
.tr-foot { display: flex; gap: 12px; justify-content: center; padding: 6px 0 20px; }
.tr-btn { min-width: 130px; padding: 10px 24px; font-size: 22px; font-weight: 700; border: 1px solid transparent; border-radius: 3px; cursor: pointer; color: #fff; font-family: var(--rv-font); }
.tr-btn.blue { background: #0b5cff; } .tr-btn.gray { background: #6b6e73; } .tr-btn:disabled { opacity: .5; cursor: default; }
.tr-build { text-align: left; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tr-cols h4 { margin: 4px 0 6px; font-size: 16px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.tr-card { border: 2px solid #d5d8dc; padding: 4px; cursor: pointer; text-align: center; background: #fff; border-radius: 3px; }
.tr-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #eceef0; }
.tr-card.on { border-color: #1fa855; box-shadow: 0 0 0 2px rgba(31,168,85,.35); }
.tr-sum { margin: 12px 0 4px; text-align: center; font-size: 14px; }
.tr-table { width: 100%; border-collapse: collapse; background: #fff; }
.tr-table th { background: #f0f1f2; text-align: left; padding: 8px 10px; font-size: 14px; border-bottom: 1px solid #d0d2d5; }
.tr-table td { padding: 10px; border-top: 1px solid #e4e5e7; vertical-align: middle; }
.tr-partner { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tr-partner img { width: 32px; height: 32px; border-radius: 50%; background: #dcdfe3; object-fit: cover; }
@media (max-width: 640px) { .tr-body { flex-direction: column; } .tr-lists { border-left: 0; padding-left: 0; } .tr-who { width: auto; flex: none; } .tr-cols { grid-template-columns: 1fr; } }
html.zen-dark .tr-slot, html.zen-dark .tr-card, html.zen-dark .tr-table { background: #2b2d30; border-color: #44484c; }
html.zen-dark .tr-table th { background: #34373b; border-color: #44484c; } html.zen-dark .tr-table td { border-color: #44484c; }
html.zen-dark .tr-lists { border-color: #44484c; } html.zen-dark .tr-n { color: #6aa4ff; }

/* ---------- friends / followers ---------- */
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pf-msg { font-weight: 600; margin-left: 4px; }
.pf-stats a { color: inherit; }
.pf-friends { display: flex; gap: 12px; flex-wrap: wrap; background: #fff; padding: 12px; border-radius: 3px; }
.pf-friends a { width: 96px; text-align: center; font-weight: 600; font-size: 14px; color: #111 !important; }
.pf-friends img, .fr-card img { width: 96px; height: 96px; object-fit: contain; background: #e6e8eb; border-radius: 50%; }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.fr-card { text-align: center; }
.fr-card .fr-n { font-weight: 700; margin-top: 6px; word-break: break-word; }
.fr-card .zen-btn { margin-top: 6px; padding: 4px 10px; font-size: 13px; }
html.zen-dark .pf-friends { background: #2b2d30; } html.zen-dark .pf-friends a { color: #f2f2f2 !important; }

.zen-done { text-align: center; padding: 18px 0 8px; } .zen-done h3 { margin: 14px 0 0; font-size: 24px; }
.zen-done svg { animation: zenpop .35s ease-out; } @keyframes zenpop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- profile header: friend button + "..." menu ---------- */
.pf-head { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.pf-main { flex: 1 1 auto; min-width: 0; }
.pf-bio { font-style: italic; color: #666; margin: 6px 0 2px; }
.pf-stats2 { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.pf-stats2 a { color: inherit !important; } .pf-stats2 b { font-size: 18px; margin-right: 3px; }
.pf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.pf-dots .pf-dotsbtn { display: flex; gap: 3px; background: none; border: 0; padding: 6px 8px; cursor: pointer; border-radius: 4px; }
.pf-dotsbtn span { width: 4px; height: 4px; background: #777; display: block; }
.pf-dotsbtn:hover { background: rgba(0,0,0,.08); }
.pf-dots .zen-dd-menu { top: 30px; min-width: 170px; }
.pf-dots .zen-dd-menu a, .pf-dots .zen-dd-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 16px; font: inherit; font-size: 15px; color: #222 !important; cursor: pointer; }
.pf-dots .zen-dd-menu a:hover, .pf-dots .zen-dd-menu button:hover { background: #f1f2f4; text-decoration: none; }
.pf-prim { display: flex; gap: 8px; }
.pf-btn { background: transparent; border: 2px solid #222; color: #222; font-weight: 600; font-size: 17px; padding: 6px 22px; border-radius: 6px; cursor: pointer; font-family: var(--rv-font); }
.pf-btn:hover { background: rgba(0,0,0,.06); } .pf-btn.dim { border-color: #aaa; color: #777; }
.pf-msg { font-size: 13px; font-weight: 600; text-align: right; }
html.zen-dark .pf-btn { border-color: #f2f2f2; color: #f2f2f2; } html.zen-dark .pf-btn.dim { border-color: #777; color: #aaa; }
html.zen-dark .pf-dotsbtn span { background: #bbb; } html.zen-dark .pf-bio { color: #aaa; }
html.zen-dark .pf-dots .zen-dd-menu a, html.zen-dark .pf-dots .zen-dd-menu button { color: #f2f2f2 !important; }
html.zen-dark .pf-dots .zen-dd-menu a:hover, html.zen-dark .pf-dots .zen-dd-menu button:hover { background: #3b3f44; }
@media (max-width: 560px) { .pf-head { flex-wrap: wrap; } .pf-side { align-items: flex-start; width: 100%; } }

/* ---------- search ---------- */
#zen-search.zen-search { display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; margin: 0 auto 0 10px; position: relative; background: #fff; border-radius: 4px; height: 30px; }
#zen-search.zen-search .form-control { flex: 1 1 auto; height: 30px; border: 0; background: transparent; padding: 0 10px; box-shadow: none; color: #111 !important; }
#zen-search.zen-search .input-addon-btn { background: transparent; border: 0; height: 30px; width: 36px; cursor: pointer; padding: 0; }
.zen-suggest { display: none; position: absolute; top: 34px; left: 0; right: 0; background: #fff; border: 1px solid var(--rv-border); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.22); z-index: 2000; overflow: hidden; }
.zen-suggest a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; color: #111 !important; font-weight: 400 !important; font-size: 15px; }
.zen-suggest a:hover { background: #f1f2f4; text-decoration: none; } .zen-suggest a span { color: #888; font-size: 12px; align-self: center; }
.zen-suggest a.all { border-top: 1px solid var(--rv-border); color: #0b5cff !important; justify-content: flex-start; }
html.zen-dark #zen-search.zen-search { background: #2f3236; } html.zen-dark #zen-search.zen-search .form-control { color: #f2f2f2 !important; }
html.zen-dark .zen-suggest { background: #2f3236; border-color: #44484c; } html.zen-dark .zen-suggest a { color: #f2f2f2 !important; } html.zen-dark .zen-suggest a:hover { background: #3b3f44; }

/* ---------- RAP ---------- */
.rap-top { display: flex; gap: 40px; flex-wrap: wrap; } .rap-big { font-size: 30px; font-weight: 700; }

/* ============================================================================
   ZEN V11 - everything a bit smaller / tighter
   ============================================================================ */
.navbar-brand { padding: 0 8px !important; } .zen-logo { height: 26px !important; }
#header .nav-menu-title, #header ul.zen-links a { font-size: 14px !important; }
.zen-ibtn { font-size: 14px; padding: 0 8px; } .zen-ibtn .zi { width: 22px; height: 22px; }
.zen-burger .zi { width: 22px; height: 22px; }
#zen-search.zen-search { max-width: 340px; height: 28px; } #zen-search.zen-search .form-control, #zen-search.zen-search .input-addon-btn { height: 28px; font-size: 14px; }
/* sidebar */
#navigation, .rbx-left-col { width: 168px; }
.zen-side-user { gap: 8px; padding: 8px 12px !important; font-size: 14px !important; }
.zen-side-av { width: 28px; height: 28px; flex: 0 0 28px; object-fit: cover; }
.zen-side-list { padding: 4px 0 10px; }
#navigation .zen-side-list a { padding: 5px 12px; gap: 9px; font-weight: 600; font-size: 14px; line-height: 1.25; }
#navigation .zi { flex: 0 0 18px; width: 18px; height: 18px; }
.zen-side-list .rbx-upgrade-now { padding: 10px 12px 0; }
#navigation #upgrade-now-button { padding: 7px !important; font-size: 14px; }
body:has(#navigation) .container-main, body:has(#navigation) .container-footer { margin-left: 168px !important; }
/* page text */
.zen-title { font-size: 26px; margin: 4px 0 10px; }
.zen-card { padding: 12px 16px; margin-bottom: 10px; }
.zen-btn { padding: 6px 14px; font-size: 14px; }
.pf-sec h3 { font-size: 18px; }
.ae-head h1, #ae .ae-head h1 { font-size: 28px; }
.pf-stats2 { font-size: 13px; } .pf-stats2 b { font-size: 16px; }
.fr-card .fr-n, .tr-partner { font-size: 14px; }
.rap-big { font-size: 24px; }
.zen-suggest .zs-sep { padding: 5px 12px; font-size: 12px; color: #888; background: #f6f7f8; border-top: 1px solid var(--rv-border); }
.zen-suggest .zs-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .zen-suggest a { font-size: 14px; padding: 7px 12px; }
html.zen-dark .zen-suggest .zs-sep { background: #34373b; }

/* ---------- groups ---------- */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.grp-card { background: #fff; border-radius: 3px; padding: 12px; text-align: center; color: #111 !important; display: block; } .grp-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.2); text-decoration: none; }
.grp-ic { width: 54px; height: 54px; border-radius: 10px; background: var(--rv-top); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin: 0 auto 6px; }
.grp-ic.big { width: 80px; height: 80px; font-size: 38px; margin: 0; flex: 0 0 80px; }
.grp-n { font-weight: 700; font-size: 14px; word-break: break-word; }
.grp-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
html.zen-dark .grp-card { background: #2b2d30; color: #f2f2f2 !important; }

/* ---------- trading colours (site colours instead of blue) + the full trade page ---------- */
.tr-btn.blue { background: var(--rv-top); } .tr-btn.green { background: #1fa855; } .tr-btn.gray { background: #6b6e73; }
.tr-n, .tp-n { color: var(--rv-top); } html.zen-dark .tr-n, html.zen-dark .tp-n { color: #c79cf0; }
.zen-btn.gray { background: #6b6e73; } .zen-btn.gray:hover { background: #55585c; }
.tp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .tp-head img { width: 64px; height: 64px; border-radius: 50%; background: #e6e8eb; object-fit: cover; }
.tp-offers { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 6px; align-items: center; } .tp-mid { text-align: center; font-size: 24px; color: #999; }
.tp-ot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.tp-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tp-slot { border: 2px dashed #cfd2d6; border-radius: 4px; min-height: 118px; padding: 4px; text-align: center; background: #fafafa; } .tp-slot.full { border: 2px solid #1fa855; background: #fff; cursor: pointer; }
.tp-slot img, .tp-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #eceef0; border-radius: 3px; }
.tp-n { font-size: 12px; font-weight: 600; line-height: 1.15; margin-top: 3px; word-break: break-word; } .tp-r { font-size: 12px; }
.tp-bar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 4px 0 12px; } .tp-msg { margin-right: auto; font-weight: 600; font-size: 14px; }
.tp-invs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.tp-card { border: 2px solid #d5d8dc; border-radius: 4px; padding: 4px; text-align: center; background: #fff; cursor: pointer; } .tp-card:hover { border-color: var(--rv-top); } .tp-card.on { border-color: #1fa855; box-shadow: 0 0 0 2px rgba(31,168,85,.3); opacity: .75; }
.tp-filter { width: 130px; font-size: 13px; padding: 3px 6px; }
@media (max-width: 760px) { .tp-offers, .tp-invs { grid-template-columns: 1fr; } .tp-mid { display: none; } }
html.zen-dark .tp-slot { background: #2b2d30; border-color: #4a4e53; } html.zen-dark .tp-slot.full, html.zen-dark .tp-card { background: #2b2d30; }
