:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --line: #2e2e35;
  --text: #fafafa;
  --muted: #a1a1aa;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --gold: #f8c34a;
  --discord: #5865f2;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --body-font-size: 16px;
  --hero-title-min: 3.2rem;
  --hero-title-fluid: 6vw;
  --hero-title-max: 5.6rem;
  --hero-mobile-min: 2.8rem;
  --hero-mobile-fluid: 15vw;
  --hero-mobile-max: 4.2rem;
  --section-title-min: 2rem;
  --section-title-fluid: 4vw;
  --section-title-max: 3rem;
  --card-title-size: 1.02rem;
  --preview-hero-size: 2rem;
  --preview-section-size: 1.45rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: var(--body-font-size);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.advanced-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.advanced-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 1rem; }
.advanced-filters select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.project-info { display: grid; gap: 7px; margin: 10px 0; font-size: .9rem; color: var(--muted); }
.project-info p { margin: 0; }
.project-info progress { width: 100%; height: 10px; accent-color: var(--gold); }
.rating-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-summary, .selected-rating { color: var(--gold); }
.selected-rating { border-color: var(--gold); }
#upcoming-section { margin-top: 40px; }
@media(max-width: 640px) { .advanced-filters { grid-template-columns: 1fr; } }
.account-avatar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block: 20px; }
.avatar-control { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.avatar-button { width: 48px; height: 48px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: zoom-in; }
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar .avatar-button { width: 96px; height: 96px; }
.avatar-report { border: 0; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; }
.avatar-upload { position: relative; overflow: hidden; }
.avatar-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.audit-row { padding: 16px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.audit-row p { margin: 0; overflow-wrap: anywhere; }
.audit-row time, .audit-row > span { color: var(--muted); font-size: .9rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(248, 195, 74, .78); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.has-icon { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; }
.ui-icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.page-loading { position: fixed; z-index: 300; inset: 0; pointer-events: none; }
.page-loading-bar { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; background: rgba(239,68,68,.14); }
.page-loading-bar::after { content: ""; position: absolute; width: 38%; height: 100%; inset-block-start: 0; inset-inline-start: -40%; border-radius: 999px; background: linear-gradient(90deg,transparent,#ef4444,#fca5a5); animation: page-loading-slide 1s cubic-bezier(.4,0,.2,1) infinite; }
.page-loading-label { position: absolute; inset-block-start: 84px; inset-inline-start: 50%; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(239,68,68,.32); border-radius: 999px; padding: 7px 12px; background: rgba(17,17,20,.94); box-shadow: 0 12px 38px rgba(0,0,0,.34); color: #f4f4f5; font-size: .72rem; transform: translateX(-50%); backdrop-filter: blur(12px); }
.page-loading-label i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); animation: page-loading-pulse 900ms ease-in-out infinite alternate; }
.page-loading-label b { font-weight: 900; }
@keyframes page-loading-slide { to { inset-inline-start: 105%; } }
@keyframes page-loading-pulse { to { opacity: .45; transform: scale(.72); } }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(185, 28, 28, .46);
  background: rgba(9, 9, 11, .9);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; direction: rtl; font-weight: 950; white-space: nowrap; }
.brand strong { color: var(--red); font-size: 1.26rem; }
.brand span { color: #d4d4d8; font-size: 1rem; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 6px; }
.header-badge-button { position: relative; }
.support-button, .notification-button { position: relative; display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #17171a; color: #e4e4e7; }
.support-button:hover, .notification-button:hover { border-color: rgba(239,68,68,.5); color: #fca5a5; }
.support-button svg, .notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.online-counter { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 1px solid rgba(34,197,94,.24); border-radius: 999px; padding: 5px 10px; background: rgba(22,101,52,.13); color: #86efac; font-size: .68rem; font-weight: 850; }
.online-counter i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.online-counter b { color: #dcfce7; font-size: .78rem; }
.main-nav > a { border-radius: 10px; padding: 8px 11px; color: #d4d4d8; font-size: .86rem; font-weight: 800; }
.main-nav > a:hover { background: rgba(255,255,255,.06); color: white; }
.nav-action { border: 0; border-radius: 10px; padding: 8px 11px; background: transparent; color: #d4d4d8; font-size: .86rem; font-weight: 800; }
.nav-action:hover { background: rgba(255,255,255,.06); color: white; }
.nav-action .ui-icon { width: 19px; height: 19px; }
.discord-link { display: inline-flex; align-items: center; gap: 7px; }
.discord-link svg { width: 19px; height: 19px; fill: var(--discord); }
.notification-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  padding: 0;
  background: #18181b;
  color: #e4e4e7;
}
.notification-button:hover { border-color: rgba(239,68,68,.68); color: white; }
.notification-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge {
  position: absolute;
  inset-inline-start: -6px;
  inset-block-start: -7px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #09090b;
  border-radius: 999px;
  padding-inline: 4px;
  background: #dc2626;
  color: white;
  font-size: .62rem;
  font-weight: 950;
  line-height: 1;
}
.button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  color: white;
  font-weight: 850;
  transition: 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button.primary { background: var(--red-dark); }
.button.primary:hover { background: #dc2626; }
.button.ghost { border-color: #3f3f46; background: #18181b; }
.button.danger { border-color: rgba(239,68,68,.35); background: rgba(127,29,29,.26); color: #fca5a5; }
.button.small { min-height: 34px; padding: 5px 10px; font-size: .76rem; }
.button.wide { width: 100%; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(127,29,29,.42);
  background-image: radial-gradient(circle at 1px 1px, rgba(239,68,68,.16) 1px, transparent 0), linear-gradient(180deg, rgba(127,29,29,.14), transparent 72%);
  background-size: 23px 23px, auto;
}
.hero::after {
  content: "ZRO-ZRRO";
  position: absolute;
  z-index: -2;
  inset-inline-start: -28px;
  inset-block-end: -70px;
  color: rgba(255,255,255,.018);
  font-size: clamp(8rem, 24vw, 22rem);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .8;
}
.hero-glow { position: absolute; z-index: -1; width: 480px; height: 480px; inset-inline-end: -130px; inset-block-start: -170px; border-radius: 50%; background: rgba(153,27,27,.4); filter: blur(110px); }
.hero-grid { min-height: 580px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.72fr); align-items: center; gap: clamp(42px,7vw,88px); padding-block: 66px; }
.eyebrow { margin: 0; color: #f87171; font-size: .82rem; font-weight: 900; }
.hero h1 { margin: 17px 0 0; font-size: clamp(var(--hero-title-min),var(--hero-title-fluid),var(--hero-title-max)); font-weight: 950; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 span { color: var(--red); text-shadow: 0 12px 42px rgba(185,28,28,.28); }
.hero-description { margin: 22px 0 0; color: #d4d4d8; font-size: clamp(1rem,2vw,1.15rem); }
.search-box { display: flex; align-items: center; max-width: 640px; margin-block-start: 30px; border: 1px solid #3f3f46; border-radius: 17px; background: rgba(9,9,11,.76); }
.search-box:focus-within { border-color: rgba(239,68,68,.78); box-shadow: 0 0 0 4px rgba(127,29,29,.16); }
.search-box svg { width: 22px; height: 22px; margin-inline-start: 17px; fill: none; stroke: #f87171; stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; height: 58px; border: 0; outline: 0; padding: 0 14px; background: transparent; color: white; }
.search-box input::placeholder { color: #71717a; }
.library-search { max-width: 760px; margin-block: 26px 0; }

.vip-card { position: relative; overflow: hidden; border: 1px solid rgba(248,195,74,.44); border-radius: 32px; padding: 33px; background: radial-gradient(circle at 12% 0%,rgba(248,195,74,.16),transparent 42%),linear-gradient(145deg,rgba(69,26,3,.66),#111114 55%,rgba(69,10,10,.54)); box-shadow: var(--shadow); }
.vip-card::before { content: "VIP"; position: absolute; inset-inline-end: -18px; inset-block-start: 20px; color: rgba(255,255,255,.025); font-size: 7.5rem; font-weight: 950; line-height: 1; transform: rotate(-10deg); }
.crown { position: relative; color: var(--gold); font-size: 2.35rem; line-height: 1; }
.vip-kicker { position: relative; margin: 16px 0 0; color: #fcd66d; font-size: .86rem; font-weight: 900; }
.vip-card h2 { position: relative; margin: 3px 0 0; color: #fff0b8; font-size: 1.65rem; }
.vip-card h2 strong { font-size: 3.3rem; }
.vip-card > p:last-of-type { position: relative; margin: 4px 0 23px; color: rgba(255,240,184,.72); }
.paypal-button { position: relative; display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; padding: 11px 17px; background: var(--gold); color: #181303; font-size: .9rem; font-weight: 900; transition: 160ms ease; }
.paypal-button:hover { background: #ffdb76; transform: translateY(-2px); }
.paypal-button b { border-inline-start: 1px solid rgba(24,19,3,.25); padding-inline-start: 10px; font-size: .78rem; }
.invoice-shortcut { position: relative; display: block; width: 100%; margin-block-start: 10px; border: 1px solid rgba(248,195,74,.3); border-radius: 11px; padding: 9px 12px; background: rgba(248,195,74,.07); color: #fcd66d; font-size: .76rem; font-weight: 900; }
.invoice-shortcut:hover { border-color: rgba(248,195,74,.58); background: rgba(248,195,74,.12); }

.news-section { border-bottom: 1px solid var(--line); padding-block: 64px 72px; background: linear-gradient(180deg,rgba(127,29,29,.09),transparent); }
.news-section .section-heading { margin-block-end: 24px; }
.news-section .section-heading h2 { margin: 5px 0 0; font-size: clamp(var(--section-title-min),var(--section-title-fluid),var(--section-title-max)); letter-spacing: -.04em; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.news-grid > .empty-row { grid-column: 1 / -1; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.15); content-visibility: auto; contain-intrinsic-size: 320px; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.news-card.is-latest { border-color: rgba(239,68,68,.42); }
.news-card.is-highlighted { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,.18),0 20px 50px rgba(127,29,29,.28); transform: translateY(-4px); }
.content-skeleton { position: relative; min-height: 310px; pointer-events: none; }
.content-skeleton .skeleton-media { display: block; width: 100%; aspect-ratio: 16/9; background: #19191e; }
.content-skeleton .skeleton-lines { display: block; height: 92px; margin: 18px; border-radius: 9px; background: linear-gradient(#24242a 0 13px,transparent 13px 27px,#202026 27px 38px,transparent 38px 52px,#202026 52px 63px,transparent 63px); }
.content-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 18%,rgba(255,255,255,.045) 44%,transparent 70%); transform: translateX(-100%); animation: content-skeleton 1.2s ease-in-out infinite; }
@keyframes content-skeleton { to { transform: translateX(100%); } }
.news-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.news-content { padding: 19px; }
.news-date { justify-content: flex-start !important; color: #f87171; font-size: .72rem; font-weight: 850; }
.news-content h3 { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.news-content p { margin: 10px 0 0; overflow-wrap: anywhere; color: #b8b8c0; font-size: .84rem; white-space: pre-line; }

.library-section { min-height: 420px; padding-block: 78px 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(var(--section-title-min),var(--section-title-fluid),var(--section-title-max)); letter-spacing: -.04em; }
.filter-group, .modal-tabs, .admin-tabs { display: flex; gap: 5px; border: 1px solid var(--line); border-radius: 13px; padding: 4px; background: var(--surface); }
.filter, .tab { min-width: 68px; border: 0; border-radius: 9px; padding: 8px 13px; background: transparent; color: var(--muted); font-weight: 850; }
.filter:hover, .filter.is-active, .tab:hover, .tab.is-active { background: #2b0c0f; color: #fca5a5; }
.results-status { min-height: 26px; margin: 22px 0 0; color: #71717a; font-size: .8rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 14px 35px rgba(0,0,0,.16); cursor: pointer; content-visibility: auto; contain-intrinsic-size: 390px; transition: 180ms ease; }
.catalog-card:hover { border-color: rgba(220,38,38,.7); transform: translateY(-4px); }
.catalog-card.is-vip-dimmed { opacity: .48; filter: grayscale(.62) saturate(.65); }
.catalog-card.is-vip-dimmed:hover, .catalog-card.is-vip-dimmed:focus-visible { opacity: .68; }
.cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: radial-gradient(circle at 24% 23%,rgba(239,68,68,.45),transparent 27%),linear-gradient(135deg,#36090d,#121217 55%,#09090b); }
.cover::after { content: "ZRO-ZRRO"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.13); font-size: 1.1rem; font-weight: 950; letter-spacing: .38em; }
.cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.catalog-card:hover .cover img { transform: scale(1.04); }
.type-badge { position: absolute; z-index: 3; inset-inline-end: 13px; inset-block-start: 13px; border-radius: 999px; padding: 5px 11px; background: rgba(9,9,11,.9); font-size: .68rem; font-weight: 900; }
.cover-access-badges { position: absolute; z-index: 3; inset-inline-end: 13px; inset-block-start: 13px; display: flex; max-width: calc(100% - 26px); flex-wrap: wrap; gap: 5px; }
.cover-access-badges .type-badge { position: static; }
.translation-tag { display: inline-flex; width: fit-content; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: 4px 9px; font-size: .64rem; font-weight: 950; line-height: 1.4; }
.translation-tag.update { border-color: rgba(59,130,246,.48); background: rgba(23,37,84,.9); color: #93c5fd; }
.translation-tag.new { border-color: rgba(34,197,94,.46); background: rgba(5,46,22,.9); color: #86efac; }
.translation-tag.experimental { border-color: rgba(168,85,247,.46); background: rgba(59,7,100,.9); color: #d8b4fe; }
.catalog-card[data-access="vip"] .type-badge { background: var(--gold); color: #181303; }
.featured-badge { position: absolute; z-index: 3; inset-inline-start: 13px; inset-block-start: 13px; border: 1px solid rgba(248,195,74,.48); border-radius: 999px; padding: 5px 10px; background: rgba(69,26,3,.92); color: #fcd66d; font-size: .68rem; font-weight: 950; box-shadow: 0 7px 22px rgba(0,0,0,.3); }
.featured-badge .ui-icon { width: 13px; height: 13px; fill: currentColor; }
.card-body { padding: 20px; }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-title-row h3 { margin: 0; overflow-wrap: anywhere; font-size: var(--card-title-size); line-height: 1.45; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover, .card-title-link:focus-visible { color: #fca5a5; text-decoration: underline; text-underline-offset: 4px; }
.card-stats { display: grid; flex: 0 0 auto; justify-items: end; gap: 4px; }
.stat-line { color: #8d8d96; font-size: .7rem; white-space: nowrap; }
.stat-line .ui-icon { width: 14px; height: 14px; }
.card-description { display: -webkit-box; overflow: hidden; margin: 9px 0 0; color: var(--muted); font-size: .83rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-action { width: 100%; margin-block-start: 18px; border: 0; border-radius: 11px; padding: 10px 13px; background: rgba(127,29,29,.28); color: #fca5a5; font-weight: 900; }
.catalog-card[data-access="vip"] .card-action { background: rgba(248,195,74,.1); color: #fcd66d; }
.card-action.is-locked, .detail-download.is-locked { opacity: .42; filter: grayscale(.72); }
.card-action.is-locked:hover, .detail-download.is-locked:hover { opacity: .58; }
.empty-state, .empty-row { border: 1px dashed #3f3f46; border-radius: 20px; padding: 32px; color: var(--muted); text-align: center; }
.empty-state h3 { margin: 0; }
footer { border-top: 1px solid var(--line); color: #71717a; }
.footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner p { margin: 0; }
.footer-link { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 9px; padding: 7px 9px; background: transparent; color: #a1a1aa; font-size: .78rem; font-weight: 850; }
.footer-link:hover { background: #18181b; color: white; }
.footer-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 22px; background: transparent; color: var(--text); }
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(820px,100%); max-height: calc(100vh - 44px); overflow: auto; margin: auto; border: 1px solid #3f3f46; border-radius: 24px; padding: 28px; background: #101013; box-shadow: var(--shadow); }
.modal-card.narrow { width: min(430px,100%); }
.modal-close { position: absolute; z-index: 2; inset-inline-start: 18px; inset-block-start: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #27272a; color: white; font-size: 1.45rem; line-height: 1; }
.modal-tabs { margin-block-end: 22px; }
.modal-tabs .tab, .admin-tabs .tab { flex: 1; }
.form-grid, .translation-form { display: grid; gap: 15px; }
.form-grid label, .translation-form label { display: grid; gap: 7px; color: #d4d4d8; font-size: .82rem; font-weight: 800; }
.form-grid input, .form-grid textarea, .translation-form input, .translation-form textarea, .translation-form select, .membership-actions input {
  width: 100%;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #09090b;
  color: white;
}
.form-grid input, .translation-form input, .translation-form select { min-height: 44px; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .translation-form input:focus, .translation-form textarea:focus, .translation-form select:focus { border-color: var(--red); }
.password-control { position: relative; display: block; }
.password-control input { padding-inline-end: 48px; }
.password-toggle { position: absolute; inset-inline-end: 5px; inset-block-start: 5px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; padding: 0; background: #27272a; color: #a1a1aa; }
.password-toggle:hover { color: white; }
.password-toggle .ui-icon { width: 18px; height: 18px; }
.file-picker {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  background: #09090b;
}
.file-picker:focus-within { border-color: var(--red); }
.file-picker > [data-file-label] {
  min-width: 0;
  overflow: hidden;
  padding-inline-start: 12px;
  color: #a1a1aa;
  direction: rtl;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-button {
  flex: 0 0 auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding-inline: 14px;
  border-inline-start: 1px solid #3f3f46;
  background: #27272a;
  color: #fafafa;
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
  opacity: 0;
}
.field-note { color: #71717a; font-size: .7rem; font-weight: 600; }
.form-message { min-height: 25px; margin: 12px 0 0; color: #fca5a5; font-size: .8rem; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline-end: 48px; margin-block-end: 22px; }
.modal-heading h2 { margin: 3px 0 0; font-size: 2rem; }

.account-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.summary-item { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: #18181b; }
.summary-item span { color: #8d8d96; font-size: .72rem; }
.summary-item strong { overflow-wrap: anywhere; font-size: .88rem; }
.account-edit { margin-block-start: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.account-edit summary { cursor: pointer; font-weight: 850; }
.account-edit .form-grid { margin-block-start: 17px; }
.recovery-status { margin: 13px 0 0; color: #a1a1aa; font-size: .78rem; }
.recovery-settings .button { justify-self: start; }
.recovery-intro { margin: 0; color: #a1a1aa; font-size: .78rem; }
.recovery-help { margin: 0; color: #71717a; font-size: .7rem; }
.auth-recover-link { justify-self: center; color: #fca5a5; }
.recovery-code-card { text-align: center; }
.recovery-code-card h2 { margin: 0 0 8px; }
.recovery-code-card p { margin: 0; color: #a1a1aa; font-size: .82rem; }
.recovery-code-card code { display: block; overflow-wrap: anywhere; margin-block: 20px; border: 1px solid rgba(248,195,74,.38); border-radius: 13px; padding: 16px; background: rgba(248,195,74,.08); color: #fcd66d; font-family: Consolas,monospace; font-size: clamp(.88rem,3.4vw,1.08rem); font-weight: 900; letter-spacing: .04em; }
.recovery-code-actions { display: flex; justify-content: center; gap: 8px; }
.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.history-section { margin-block-start: 24px; }
.history-section h3 { margin: 0 0 12px; }
.history-list { display: grid; gap: 8px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 11px 3px; }
.history-row > div { display: grid; }
.history-row strong { font-size: .88rem; }
.history-row span { color: #8d8d96; font-size: .72rem; }
.mini-badge { width: fit-content; border-radius: 999px; padding: 4px 9px; background: #27272a; color: #d4d4d8 !important; font-size: .68rem !important; font-weight: 900; }
.mini-badge.vip { background: rgba(248,195,74,.14); color: #fcd66d !important; }
.tier-pill { display: inline-flex; width: fit-content; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: 3px 9px; font-size: .68rem !important; font-weight: 950; line-height: 1.5; }
.tier-pill.free { border-color: #3f3f46; background: #27272a; color: #92929c !important; }
.tier-pill.vip { border-color: rgba(248,195,74,.42); background: rgba(248,195,74,.12); color: var(--gold) !important; }
.tier-pill.owner { border-color: rgba(185,28,28,.62); background: rgba(69,10,10,.8); color: #dc2626 !important; }
.tier-pill.mod { border-color: rgba(30,64,175,.68); background: rgba(23,37,84,.76); color: #60a5fa !important; }
.tier-name { font-weight: 900; }
.tier-name.free { color: #92929c !important; }
.tier-name.vip { color: var(--gold) !important; }
.tier-name.owner { color: #991b1b !important; }
.tier-name.mod { color: #1d4ed8 !important; }
.tier-summary strong { justify-self: start; }

.detail-card { width: min(1180px,100%); padding: 34px; }
.detail-loading { min-height: 280px; display: grid; place-items: center; color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: clamp(24px,5vw,58px); align-items: center; padding-inline-end: 8px; }
.detail-cover { position: relative; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 24% 23%,rgba(239,68,68,.45),transparent 27%),linear-gradient(135deg,#36090d,#121217 55%,#09090b); }
.detail-cover::after { content: "ZRO-ZRRO"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.12); font-weight: 950; letter-spacing: .35em; }
.detail-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; display: grid; justify-items: start; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-info h2 { margin: 12px 0 0; overflow-wrap: anywhere; font-size: clamp(2rem,5vw,3.7rem); line-height: 1.2; }
.detail-badge { position: static; }
.detail-featured { position: static; }
.detail-badge.vip { background: var(--gold); color: #181303; }
.detail-badge.free { background: #27272a; color: #d4d4d8; }
.detail-description { margin: 16px 0 0; color: #d4d4d8; white-space: pre-line; }
.detail-stats { display: grid; justify-items: start; gap: 5px; margin-block-start: 15px; }
.detail-stats .stat-line { font-size: .78rem; }
.detail-download { margin-block-start: 20px; min-width: 210px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: 20px; }
.detail-actions .detail-download { margin-block-start: 0; }
.copy-translation-link { min-width: 150px; }
.detail-section { margin-block-start: 36px; border-top: 1px solid var(--line); padding-block-start: 27px; }
.detail-section > h3, .comments-heading h3 { margin: 0 0 15px; font-size: 1.25rem; }
.detail-gallery { display: grid; grid-auto-flow: column; grid-template-columns: repeat(4,minmax(210px,1fr)); gap: 13px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; padding-block-end: 8px; scrollbar-width: thin; }
.gallery-item { display: grid; min-width: 0; gap: 7px; scroll-snap-align: start; }
.gallery-label { color: #a1a1aa; font-size: .76rem; font-weight: 850; }
.gallery-image { overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 14px; padding: 0; background: #09090b; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.gallery-image:hover img { transform: scale(1.035); }
.image-modal { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 70px 24px 24px; background: rgba(0,0,0,.92); color: white; }
.image-modal::backdrop { background: rgba(0,0,0,.9); }
.image-modal img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 100px); margin: auto; object-fit: contain; }
.image-modal .modal-close { position: fixed; }
.comments-heading { display: flex; align-items: center; gap: 10px; }
.comments-heading h3 { margin: 0; }
.comments-heading span { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; background: #27272a; color: #d4d4d8; font-size: .7rem; font-weight: 900; }
.comment-form { display: grid; gap: 10px; margin-block-start: 17px; }
.comment-form textarea { width: 100%; resize: vertical; border: 1px solid #3f3f46; border-radius: 12px; padding: 12px; outline: 0; background: #09090b; color: white; }
.comment-form textarea:focus { border-color: var(--red); }
.comment-form .button { justify-self: start; }
.reply-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(248,195,74,.28); border-radius: 10px; padding: 8px 11px; background: rgba(248,195,74,.07); color: #fcd66d; font-size: .76rem; font-weight: 800; }
.comment-login { margin-block-start: 17px; }
.comments-list { display: grid; gap: 10px; margin-block-start: 20px; }
.comment-thread { min-width: 0; }
.comment-replies { display: grid; gap: 9px; margin-block-start: 9px; margin-inline-start: 20px; border-inline-start: 1px solid #34343b; padding-inline-start: 12px; }
.comment-card { border: 1px solid var(--line); border-inline-start-width: 4px; border-radius: 14px; padding: 14px 16px; background: #151518; }
.comment-card.tier-free { border-inline-start-color: #52525b; }
.comment-card.tier-vip { border-inline-start-color: var(--gold); }
.comment-card.tier-owner { border-inline-start-color: #7f1d1d; }
.comment-card.tier-mod { border-inline-start-color: #1e3a8a; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.comment-author { display: flex; align-items: center; gap: 8px; }
.comment-author-name { font-size: .88rem; }
.tier-free .comment-author-name, .tier-text.free { color: #92929c; }
.tier-vip .comment-author-name, .tier-text.vip { color: var(--gold); }
.tier-owner .comment-author-name, .tier-text.owner { color: #b91c1c; }
.tier-mod .comment-author-name, .tier-text.mod { color: #2563eb; }
.comment-head time { color: #71717a; font-size: .68rem; }
.comment-body { margin: 10px 0 0; overflow-wrap: anywhere; color: #e4e4e7; white-space: pre-wrap; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 10px; }
.text-action { border: 0; padding: 0; background: transparent; color: #a1a1aa; font-size: .73rem; font-weight: 850; }
.text-action:hover { color: white; }
.text-action:disabled { cursor: default; color: #52525b; }
.heart-action.is-liked { color: #fb7185; }
.heart-action.is-liked .ui-icon { fill: currentColor; }
.delete-action { color: #ef4444; }
.reported-comment { margin: 5px 0 0; overflow-wrap: anywhere; color: #d4d4d8; font-size: .82rem; white-space: pre-wrap; }

.notifications-card { width: min(580px,100%); }
.notifications-list { display: grid; gap: 9px; }

.support-card { width: min(1180px,100%); padding: 27px; }
.support-heading { margin-block-end: 17px; }
.support-heading h2 { margin: 2px 0 0; }
.support-heading p:last-child { margin: 4px 0 0; color: #8d8d96; font-size: .76rem; }
.support-layout { display: grid; min-height: min(650px,72vh); grid-template-columns: 300px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #101012; }
.support-ticket-sidebar { overflow: auto; border-inline-end: 1px solid var(--line); background: #141417; }
.support-ticket-list { display: grid; gap: 7px; padding: 12px; }
.support-ticket-item { display: grid; gap: 6px; border: 1px solid transparent; border-radius: 13px; padding: 12px; background: #19191d; color: white; text-align: start; }
.support-ticket-item:hover, .support-ticket-item.is-active { border-color: rgba(59,130,246,.42); background: #1b1b21; }
.support-ticket-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-ticket-item strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-item small, .support-ticket-item time { color: #7f7f89; font-size: .65rem; }
.support-ticket-state { border-radius: 999px; padding: 3px 7px; background: rgba(34,197,94,.1); color: #86efac !important; font-size: .6rem !important; font-weight: 900; }
.support-ticket-state.closed { background: rgba(113,113,122,.14); color: #a1a1aa !important; }
.support-workspace { min-width: 0; min-height: 0; }
.support-empty, .support-create { min-height: 100%; padding: clamp(24px,5vw,58px); }
.support-empty { display: grid; place-content: center; color: #71717a; text-align: center; }
.support-empty h3 { margin: 0; color: #d4d4d8; }
.support-empty p { margin: 6px 0 0; }
.support-create { max-width: 720px; margin-inline: auto; }
.support-step { display: flex; align-items: center; gap: 13px; margin-block-end: 22px; }
.support-step > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #172554; color: #93c5fd; font-weight: 950; }
.support-step div { display: grid; }
.support-step small { color: #8d8d96; }
.support-chat { display: grid; height: min(650px,72vh); grid-template-rows: auto minmax(0,1fr) auto auto; }
.support-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 14px 17px; }
.support-chat-header p { margin: 0; color: #60a5fa; font-size: .66rem; font-weight: 900; }
.support-chat-header h3 { margin: 2px 0; font-size: .95rem; }
.support-chat-header span { color: #777780; font-size: .67rem; }
.support-ticket-actions { display: flex; gap: 6px; }
.support-messages { display: flex; min-height: 0; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; scroll-behavior: smooth; }
.support-message { width: fit-content; max-width: min(78%,680px); border: 1px solid #303038; border-radius: 16px 16px 5px 16px; padding: 10px 12px; background: #1a1a1f; }
.support-message.is-mine { align-self: flex-start; border-color: rgba(59,130,246,.34); border-radius: 16px 16px 16px 5px; background: rgba(30,58,138,.26); }
.support-message-head { display: flex; align-items: center; gap: 7px; margin-block-end: 5px; }
.support-message-head strong { font-size: .72rem; }
.support-message-head time { color: #71717a; font-size: .6rem; }
.support-message p { margin: 0; overflow-wrap: anywhere; font-size: .82rem; white-space: pre-wrap; }
.support-media { display: block; overflow: hidden; margin-block-start: 8px; border: 1px solid #34343c; border-radius: 11px; background: #09090b; }
.support-media img, .support-media video { display: block; width: min(100%,520px); max-height: 340px; object-fit: contain; }
.support-attachment-expired { display: block; margin-block-start: 8px; border-radius: 9px; padding: 9px; background: rgba(63,63,70,.25); color: #8d8d96; font-size: .7rem; }
.support-attachment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; padding: 7px 9px; color: #8d8d96; font-size: .62rem; }
.support-composer { display: grid; gap: 8px; border-top: 1px solid var(--line); padding: 12px; background: #141417; }
.support-composer textarea { min-height: 58px; resize: vertical; }
.support-composer-actions { display: flex; align-items: center; gap: 8px; }
.support-attachment-button { display: inline-flex !important; min-height: 38px; align-items: center; gap: 6px; border: 1px solid #3f3f46; border-radius: 10px; padding: 7px 10px; background: #1c1c20; color: #d4d4d8; cursor: pointer; font-size: .72rem; font-weight: 850; }
.support-attachment-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.support-attachment-button input { display: none; }
.support-file-name { min-width: 0; flex: 1; overflow: hidden; color: #71717a; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.support-upload-progress { position: relative; height: 20px; overflow: hidden; border-radius: 999px; background: #27272a; }
.support-upload-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg,#1d4ed8,#60a5fa); transition: width .2s ease; }
.support-upload-progress b { position: relative; z-index: 1; display: grid; height: 100%; place-items: center; color: white; font-size: .62rem; }
.notification-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 34px;
  gap: 4px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  background: #151518;
  color: var(--text);
  text-align: start;
}
.notification-item:hover { border-color: #52525b; background: #1b1b1f; }
.notification-item.is-unread { border-color: rgba(239,68,68,.52); background: rgba(127,29,29,.18); }
.notification-open { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: start; min-width: 0; border: 0; border-radius: 10px; padding: 7px; background: transparent; color: inherit; text-align: start; cursor: pointer; }
.notification-open:focus-visible { outline: 2px solid #ef4444; outline-offset: 1px; }
.notification-delete { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #71717a; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.notification-delete:hover { border-color: rgba(239,68,68,.35); background: rgba(127,29,29,.2); color: #fca5a5; }
.notification-delete:disabled { cursor: wait; opacity: .45; }
.notification-symbol { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #27272a; color: #fca5a5; }
.notification-symbol.heart { color: #fb7185; }
.notification-symbol.heart .ui-icon { fill: currentColor; }
.notification-symbol.reply { color: #fcd66d; }
.notification-symbol.news { color: #fca5a5; }
.notification-symbol .ui-icon { width: 20px; height: 20px; }
.notification-content { min-width: 0; display: grid; gap: 2px; }
.notification-content strong { overflow-wrap: anywhere; font-size: .86rem; }
.notification-content span { overflow-wrap: anywhere; color: #a1a1aa; font-size: .76rem; }
.notification-content time { color: #71717a; font-size: .68rem; }

.request-card { width: min(720px,100%); }
.request-history-section { margin-block-start: 26px; border-top: 1px solid var(--line); padding-block-start: 20px; }
.request-history-section h3 { margin: 0 0 12px; }
.request-history { display: grid; gap: 9px; }
.request-history-row { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: #151518; }
.request-history-row img { width: 84px; height: 54px; border-radius: 9px; object-fit: cover; }
.request-history-info { min-width: 0; display: grid; gap: 2px; }
.request-history-info strong { overflow-wrap: anywhere; font-size: .84rem; }
.request-history-info time { color: #71717a; font-size: .68rem; }
.request-status { border-radius: 999px; padding: 4px 9px; font-size: .66rem; font-weight: 950; }
.request-status.pending { background: rgba(248,195,74,.12); color: #fcd66d; }
.request-status.approved { background: rgba(34,197,94,.12); color: #86efac; }
.request-status.rejected { background: rgba(239,68,68,.12); color: #fca5a5; }

.admin-card { width: min(1380px,100%); border-color: rgba(239,68,68,.26); background: radial-gradient(circle at 100% 0,rgba(127,29,29,.18),transparent 32%),#101013; }
.moderation-card { width: min(850px,100%); border-color: rgba(37,99,235,.3); background: radial-gradient(circle at 100% 0,rgba(30,58,138,.2),transparent 36%),#101013; }
.moderation-heading { align-items: flex-start; }
.moderation-heading p:last-child { margin: 5px 0 0; color: #8d8d96; font-size: .78rem; }
.mod-mark { border: 1px solid rgba(59,130,246,.48); border-radius: 999px; padding: 5px 12px; background: rgba(30,58,138,.55); color: #93c5fd; font-size: .72rem; font-weight: 950; }
.moderation-reports { margin-block-start: 20px; }
.protected-comment-note { width: fit-content; border-radius: 999px; padding: 4px 9px; background: rgba(59,130,246,.1); color: #93c5fd !important; font-weight: 850; }
.admin-main-heading { align-items: flex-start; }
.admin-subtitle { margin: 5px 0 0; color: #8d8d96; font-size: .78rem; }
.owner-mark { border: 1px solid rgba(239,68,68,.48); border-radius: 999px; padding: 5px 12px; background: rgba(69,10,10,.8); color: #f87171; font-size: .72rem; font-weight: 950; }
.admin-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-block-end: 18px; }
.admin-metric { display: flex; min-width: 0; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: linear-gradient(145deg,#19191d,#121215); color: white; text-align: start; }
.admin-metric:hover { border-color: rgba(239,68,68,.48); transform: translateY(-1px); }
.admin-metric-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: rgba(127,29,29,.2); color: #f87171; }
.admin-metric-icon .ui-icon { width: 20px; height: 20px; }
.admin-metric-content { min-width: 0; display: grid; }
.admin-metric-content strong { font-size: 1.25rem; line-height: 1.2; }
.admin-metric-content small { overflow: hidden; color: #8d8d96; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-tabs { position: sticky; z-index: 4; inset-block-start: -1px; overflow-x: auto; margin-block-end: 20px; border-block: 1px solid rgba(63,63,70,.58); padding-block: 10px; background: rgba(16,16,19,.93); scrollbar-width: thin; backdrop-filter: blur(16px); }
.admin-tabs .tab { min-width: max-content; white-space: nowrap; }
.admin-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-block-end: 15px; }
.admin-panel-heading h3 { margin: 4px 0 0; font-size: 1.45rem; }
.invoice-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.invoice-filters .filter { min-width: auto; border: 1px solid var(--line); background: #151518; font-size: .72rem; }
.admin-editor-layout { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(310px,.72fr); align-items: start; gap: 18px; }
.translation-form { grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: linear-gradient(145deg,#17171b,#121215); }
.admin-editor-form { min-width: 0; box-shadow: 0 18px 55px rgba(0,0,0,.14); }
.editor-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: -3px -2px 3px; border-bottom: 1px solid #303037; padding: 0 2px 14px; }
.editor-form-heading span, .editor-preview-heading span:first-child { color: #f87171; font-size: .68rem; font-weight: 950; }
.editor-form-heading h3, .editor-preview-heading h3 { margin: 2px 0 0; font-size: 1.08rem; }
.editor-form-heading small { max-width: 240px; color: #85858e; font-size: .7rem; text-align: end; }
.editor-preview { position: sticky; inset-block-start: 72px; overflow: hidden; border: 1px solid rgba(239,68,68,.28); border-radius: 18px; background: #0d0d10; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.editor-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #29292f; padding: 15px 16px; background: linear-gradient(135deg,rgba(127,29,29,.2),transparent 70%); }
.preview-live { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(34,197,94,.24); border-radius: 999px; padding: 4px 8px; background: rgba(22,101,52,.12); color: #86efac !important; white-space: nowrap; }
.preview-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.preview-note { margin: 0; border-top: 1px solid #29292f; padding: 11px 15px; color: #71717a; font-size: .66rem; }
.translation-live-preview, .news-live-preview { min-height: 360px; padding: 15px; }
.preview-cover { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; border: 1px solid #303037; border-radius: 13px; background: linear-gradient(120deg,#18181d,#25252c,#18181d); }
.preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-cover-empty { display: grid; width: 100%; height: 100%; place-items: center; color: #686872; font-size: .72rem; font-weight: 850; }
.preview-cover-state { position: absolute; inset-block-start: 9px; inset-inline-start: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 8px; background: rgba(9,9,11,.82); color: #e4e4e7; font-size: .64rem; font-weight: 900; backdrop-filter: blur(8px); }
.preview-cover-state.draft { color: #fca5a5; }
.translation-preview-body, .news-preview-body { padding: 14px 2px 2px; }
.preview-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.translation-preview-body h4, .news-preview-body h4 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.5; }
.translation-preview-body p, .news-preview-body p { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #a9a9b2; font-size: .76rem; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-block-start: 11px; color: #81818b; font-size: .67rem; }
.preview-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-block-start: 13px; }
.preview-gallery figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16/10; border: 1px solid #303037; border-radius: 8px; background: #17171b; }
.preview-gallery img { width: 100%; height: 100%; object-fit: cover; }
.preview-gallery figcaption { position: absolute; inset: auto 0 0; padding: 2px 4px; background: rgba(0,0,0,.68); color: #d4d4d8; font-size: .52rem; text-align: center; }
.preview-download { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; margin-block-start: 14px; border: 1px solid rgba(239,68,68,.27); border-radius: 10px; background: rgba(127,29,29,.25); color: #fca5a5; font-size: .76rem; font-weight: 900; }
.preview-download.is-locked { opacity: .48; }
.news-live-preview { min-height: 310px; }
.news-preview-body time { display: block; margin-block-start: 2px; color: #f87171; font-size: .68rem; font-weight: 850; }
.admin-loading-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-block-end: 18px; }
.admin-skeleton { position: relative; overflow: hidden; min-height: 72px; border: 1px solid #29292f; border-radius: 14px; background: #151518; }
.admin-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 20%,rgba(255,255,255,.055) 45%,transparent 70%); transform: translateX(-100%); animation: admin-skeleton 1.15s ease-in-out infinite; }
@keyframes admin-skeleton { to { transform: translateX(100%); } }
.span-2 { grid-column: 1 / -1; }
.check-label { display: flex !important; align-items: center; grid-column: 1 / -1; }
.check-label input { width: 18px; min-height: 18px; margin: 0; }
.form-actions { display: flex; gap: 8px; }
.admin-list { display: grid; gap: 9px; margin-block-start: 18px; }
.admin-list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-block-start: 20px; }
.admin-search { display: grid; width: min(100%,520px); gap: 7px; color: #d4d4d8; font-size: .76rem; font-weight: 900; }
.admin-search input { width: 100%; min-height: 44px; border: 1px solid #3f3f46; border-radius: 12px; padding: 10px 13px; outline: 0; background: #0d0d10; color: white; }
.admin-search input:focus { border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88,101,242,.14); }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-block-start: 16px; border: 1px solid #303037; border-radius: 14px; padding: 12px 14px; background: #202126; color: #c7c8cf; }
.pagination-summary { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .76rem; }
.pagination-size { min-width: 72px; min-height: 38px; border: 2px solid #5865f2; border-radius: 10px; padding: 6px 9px; outline: 0; background: #26272e; color: white; font-weight: 850; }
.pagination-controls { display: flex; align-items: center; gap: 4px; direction: rtl; }
.pagination-controls button { min-width: 34px; height: 34px; border: 0; border-radius: 999px; padding-inline: 8px; background: transparent; color: white; font-size: .76rem; font-weight: 900; cursor: pointer; }
.pagination-controls button:hover:not(:disabled) { background: #30313a; }
.pagination-controls button:disabled { cursor: not-allowed; color: #6b6d76; }
.pagination-controls .pagination-page.is-active { background: #5865f2; color: white; }
.pagination-step { min-width: 66px !important; }
.pagination-ellipsis { display: grid; min-width: 24px; place-items: center; color: #9a9ba4; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: #151518; content-visibility: auto; contain-intrinsic-size: 92px; }
.admin-row-info { min-width: 0; display: grid; gap: 3px; }
.admin-row-info strong { overflow-wrap: anywhere; font-size: .9rem; }
.admin-row-info span { color: #8d8d96; font-size: .72rem; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-file-name { justify-content: flex-start; overflow-wrap: anywhere; }
.admin-published-date { justify-content: flex-start !important; }
.admin-featured { width: fit-content; justify-content: flex-start !important; border: 1px solid rgba(248,195,74,.35); border-radius: 999px; padding: 3px 8px; background: rgba(248,195,74,.08); color: #fcd66d !important; font-weight: 900; }
.admin-featured .ui-icon { fill: currentColor; }
.admin-translation-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 2px; }
.translation-tags-field { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; border: 1px solid #34343b; border-radius: 13px; padding: 11px 13px; }
.translation-tags-field legend { padding-inline: 6px; color: #d4d4d8; font-size: .76rem; font-weight: 900; }
.translation-tags-field .check-label { width: auto; min-width: 130px; grid-column: auto; }
.admin-row-info .unpublished { color: #fca5a5; }
.admin-news-excerpt { display: -webkit-box; overflow: hidden; margin: 2px 0 0; color: #a1a1aa; font-size: .76rem; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.localization-request-row { align-items: stretch; }
.request-admin-main { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 14px; min-width: 0; flex: 1; }
.request-admin-image { width: 150px; height: 96px; border: 1px solid var(--line); border-radius: 11px; object-fit: cover; }
.request-admin-reason { margin: 4px 0 0; overflow-wrap: anywhere; color: #d4d4d8; font-size: .78rem; white-space: pre-wrap; }
.request-admin-actions { align-self: center; }
.row-actions, .membership-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.membership-actions input { width: 72px; min-height: 34px; padding: 5px 8px; }
.vip-dialog-card { text-align: center; }
.vip-dialog-card h2 { margin: 12px 0 4px; }
.vip-dialog-card p { margin: 0 0 18px; color: var(--muted); }
.vip-account { display: grid; gap: 1px; margin-block: 13px 17px; border: 1px solid rgba(248,195,74,.24); border-radius: 12px; padding: 9px 12px; background: rgba(248,195,74,.06); text-align: start; }
.vip-account span { color: #8d8d96; font-size: .68rem; }
.vip-account strong { color: #fcd66d; font-size: .84rem; }
.invoice-form { display: grid; gap: 10px; margin-block-start: 16px; border-top: 1px solid var(--line); padding-block-start: 16px; text-align: start; }
.invoice-form label { display: grid; gap: 7px; color: #d4d4d8; font-size: .78rem; font-weight: 850; }
.invoice-form input { width: 100%; min-height: 44px; border: 1px solid #3f3f46; border-radius: 10px; padding: 10px 12px; outline: 0; background: #09090b; color: white; text-align: left; }
.invoice-form input:focus { border-color: var(--gold); }
.vip-invoice-section { margin-block-start: 19px; border-top: 1px solid var(--line); padding-block-start: 16px; text-align: start; }
.vip-invoice-section h3 { margin: 0 0 10px; font-size: .9rem; }
.invoice-history { display: grid; gap: 8px; }
.invoice-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-inline-start-width: 4px; border-radius: 12px; padding: 10px 12px; background: #151518; }
.invoice-history-row.status-pending { border-inline-start-color: var(--gold); }
.invoice-history-row.status-approved { border-inline-start-color: #22c55e; }
.invoice-history-row.status-rejected { border-inline-start-color: #ef4444; }
.invoice-history-info { min-width: 0; display: grid; gap: 2px; text-align: start; }
.invoice-history-info time, .invoice-vip-until { color: #8d8d96; font-size: .68rem; }
.invoice-number { overflow-wrap: anywhere; color: #e4e4e7; font-family: Consolas,monospace; font-size: .78rem; direction: ltr; }
.invoice-note { margin: 4px 0 0 !important; color: #a1a1aa !important; font-size: .7rem; }
.invoice-status { flex: 0 0 auto; border-radius: 999px; padding: 4px 9px; font-size: .66rem; font-weight: 950; }
.invoice-status.pending { background: rgba(248,195,74,.12); color: #fcd66d; }
.invoice-status.approved { background: rgba(34,197,94,.12); color: #86efac; }
.invoice-status.rejected { background: rgba(239,68,68,.12); color: #fca5a5; }
.paypal-invoice-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-inline-start-width: 4px; border-radius: 16px; padding: 16px; background: linear-gradient(145deg,#17171b,#121215); }
.paypal-invoice-row.status-pending { border-inline-start-color: var(--gold); }
.paypal-invoice-row.status-approved { border-inline-start-color: #22c55e; }
.paypal-invoice-row.status-rejected { border-inline-start-color: #ef4444; }
.paypal-invoice-main { min-width: 0; display: grid; gap: 7px; }
.paypal-invoice-top, .invoice-person, .invoice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.paypal-invoice-top { justify-content: space-between; }
.invoice-person strong { justify-content: flex-start !important; }
.invoice-meta { color: #8d8d96; font-size: .72rem; }
.invoice-review-note, .invoice-approved-until { margin: 0; color: #a1a1aa; font-size: .74rem; }
.invoice-approved-until { justify-content: flex-start !important; color: #86efac; }
.invoice-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.button.approve { border-color: rgba(34,197,94,.35); background: rgba(22,101,52,.38); color: #bbf7d0; }
.button.approve:hover { background: rgba(22,163,74,.5); }
.interface-form { display: grid; gap: 16px; }
.interface-live-preview { overflow: hidden; border: 1px solid rgba(239,68,68,.34); border-radius: 16px; padding: 18px; background: radial-gradient(circle at 90% 0,rgba(127,29,29,.26),transparent 44%),#111114; }
.interface-live-preview > span { color: #f87171; font-size: .7rem; font-weight: 900; }
.interface-live-preview h4 { margin: 7px 0 0; font-size: var(--preview-hero-size); line-height: 1.15; }
.interface-live-preview h5 { margin: 12px 0 0; color: #fca5a5; font-size: var(--preview-section-size); }
.interface-live-preview strong { display: block; width: fit-content; max-width: 100%; margin-block-start: 12px; border-inline-start: 3px solid var(--red); padding-inline-start: 10px; overflow-wrap: anywhere; font-size: var(--card-title-size); line-height: 1.45; }
.interface-live-preview p { margin: 8px 0 0; color: var(--muted); }
.interface-scale-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.interface-range { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #151518; color: #d4d4d8; font-size: .8rem; font-weight: 850; }
.interface-range > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.interface-range output { border-radius: 999px; padding: 3px 9px; background: rgba(239,68,68,.12); color: #fca5a5; font-size: .72rem; }
.interface-range input { width: 100%; accent-color: var(--red); }
.interface-order-card { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #151518; }
.interface-order-card legend { padding-inline: 7px; color: white; font-size: .9rem; font-weight: 900; }
.interface-order-card > p { margin: 0 0 12px; color: #8d8d96; font-size: .74rem; }
.interface-order-list { display: grid; gap: 8px; }
.interface-order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #34343b; border-radius: 12px; padding: 10px 12px; background: #101013; }
.interface-order-name { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 900; }
.interface-order-name b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #2b0c0f; color: #fca5a5; font-size: .7rem; }
.interface-order-actions { display: flex; gap: 5px; }
.interface-order-actions button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #3f3f46; border-radius: 9px; background: #18181b; color: white; }
.interface-order-actions button:disabled { cursor: not-allowed; opacity: .35; }
.interface-visibility { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.interface-visibility .check-label { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; background: #151518; }
.empty-row.compact { padding: 16px; font-size: .75rem; }
.privacy-card { width: min(900px,100%); }
.privacy-heading { display: flex; align-items: center; gap: 16px; padding-inline-end: 48px; margin-block-end: 24px; }
.privacy-heading h2 { margin: 2px 0 0; font-size: clamp(1.8rem,4vw,2.5rem); }
.privacy-updated { margin: 3px 0 0; color: #71717a; font-size: .75rem; }
.privacy-icon { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(239,68,68,.35); border-radius: 16px; background: rgba(127,29,29,.18); color: #f87171; }
.privacy-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-content { color: #c9c9cf; font-size: .9rem; }
.privacy-content > p { margin: 0 0 22px; color: #e4e4e7; }
.privacy-content section { border-top: 1px solid var(--line); padding-block: 20px; }
.privacy-content section:last-child { padding-block-end: 0; }
.privacy-content h3 { margin: 0 0 7px; color: white; font-size: 1rem; }
.privacy-content p { margin: 7px 0 0; }
.privacy-content a { color: #fca5a5; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 200; inset-inline-start: 24px; inset-block-end: 24px; max-width: min(380px,calc(100% - 48px)); border: 1px solid #3f3f46; border-radius: 12px; padding: 12px 16px; background: #18181b; box-shadow: var(--shadow); font-size: .84rem; font-weight: 800; }
.toast[data-type="error"] { border-color: rgba(239,68,68,.55); color: #fca5a5; }

@media (max-width: 900px) {
  .main-nav > a:not(.discord-link) { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .vip-card { max-width: 500px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .user-row { align-items: flex-start; }
  .membership-actions { flex-wrap: wrap; justify-content: flex-end; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-cover { max-width: 640px; }
  .admin-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-editor-layout { grid-template-columns: 1fr; }
  .editor-preview { position: relative; inset-block-start: auto; }
  .support-layout { grid-template-columns: 240px minmax(0,1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px,1180px); }
  .header-inner { min-height: 64px; gap: 9px; }
  .brand span { display: inline; font-size: .86rem; }
  .main-nav { margin-inline-start: auto; }
  .discord-link span { display: none; }
  .nav-action { width: 38px; min-height: 38px; padding: 0; font-size: 0; }
  .header-actions { gap: 4px; }
  .online-counter span { display: none; }
  .online-counter { padding-inline: 8px; }
  .header-actions .button { min-height: 36px; padding: 6px 10px; font-size: .75rem; }
  .hero-grid { padding-block: 54px; }
  .hero h1 { font-size: clamp(var(--hero-mobile-min),var(--hero-mobile-fluid),var(--hero-mobile-max)); }
  .vip-card { border-radius: 24px; padding: 25px; }
  .library-section { padding-block: 62px 78px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .filter-group { width: 100%; }
  .filter { flex: 1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); border-radius: 18px; padding: 21px; }
  .modal-heading { align-items: flex-start; flex-direction: column; padding-inline-end: 40px; }
  .account-summary, .two-columns, .translation-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-row { align-items: stretch; flex-direction: column; }
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .pagination-summary { justify-content: center; }
  .pagination-controls { justify-content: center; flex-wrap: wrap; }
  .row-actions, .membership-actions { justify-content: flex-start; flex-wrap: wrap; }
  .admin-panel-heading, .paypal-invoice-row { align-items: stretch; flex-direction: column; }
  .invoice-filters { width: 100%; }
  .invoice-actions { width: 100%; }
  .invoice-actions .button { flex: 1; }
  .admin-overview { grid-template-columns: 1fr; }
  .admin-loading-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-form-heading { align-items: flex-start; flex-direction: column; }
  .editor-form-heading small { text-align: start; }
  .preview-gallery { overflow-x: auto; grid-template-columns: repeat(4,minmax(100px,1fr)); }
  .interface-scale-grid, .interface-visibility { grid-template-columns: 1fr; }
  .detail-card { padding: 21px; }
  .detail-gallery { grid-template-columns: repeat(4,minmax(210px,1fr)); }
  .detail-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .detail-actions .button { width: 100%; }
  .request-history-row { grid-template-columns: 70px minmax(0,1fr); }
  .request-history-row img { width: 70px; height: 48px; }
  .request-status { grid-column: 1 / -1; justify-self: start; }
  .request-admin-main { grid-template-columns: 1fr; }
  .request-admin-image { width: 100%; height: auto; aspect-ratio: 16/9; }
  .recovery-code-actions { flex-direction: column; }
  .comment-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .comment-replies { margin-inline-start: 9px; padding-inline-start: 8px; }
  .footer-inner { min-height: 92px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .privacy-heading { align-items: flex-start; }
  .support-card { padding: 18px; }
  .support-layout { min-height: 70vh; grid-template-columns: 1fr; }
  .support-ticket-sidebar { max-height: 180px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .support-chat { height: 62vh; }
  .support-chat-header { align-items: flex-start; flex-direction: column; }
  .support-message { max-width: 92%; }
  .support-composer-actions { flex-wrap: wrap; }
  .support-file-name { order: 3; width: 100%; flex-basis: 100%; }
}

/* ZRo-ZRo identity */
body { background: radial-gradient(circle at 50% -20%,rgba(180,126,24,.13),transparent 34%),#070707; }
.site-header { border-bottom-color: rgba(184,134,32,.5); background: rgba(7,7,7,.92); }
.brand { align-items: center; }
.brand img { width: 42px; height: 42px; border: 1px solid rgba(214,169,66,.42); border-radius: 12px; object-fit: cover; box-shadow: 0 0 24px rgba(184,134,32,.14); }
.brand strong, .eyebrow { color: #d6a942; }
.button.primary { background: linear-gradient(135deg,#a66f10,#d2a03b); color: #0b0904; }
.button.primary:hover { background: linear-gradient(135deg,#bd841d,#edc460); }
.support-button:hover, .notification-button:hover { border-color: rgba(214,169,66,.68); color: #f1ce78; }
.news-section { background: linear-gradient(180deg,rgba(151,105,19,.1),transparent); }
.role-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: 22px; }
.admin-tabs { position: sticky; z-index: 3; top: -28px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-block: 16px 22px; background: rgba(16,16,19,.96); backdrop-filter: blur(14px); }
.admin-tabs .tab { min-width: 0; padding: 10px 8px; white-space: nowrap; }
.admin-tabs .tab b { display: inline-grid; width: 22px; height: 22px; place-items: center; margin-inline-end: 5px; border-radius: 7px; background: rgba(214,169,66,.12); color: #e0b653; }
.admin-tabs .tab.is-active { border-color: rgba(214,169,66,.45); background: rgba(214,169,66,.12); color: #f4d485; }
@media (max-width: 760px) { .admin-tabs { grid-template-columns: 1fr 1fr; position: static; } .admin-tabs .tab:last-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .page-loading-bar::after, .page-loading-label i, .admin-skeleton::after, .content-skeleton::after { animation: none !important; }
}

.library-section { padding-block-start: 38px; }
.library-section .section-heading h1 { margin: 5px 0 0; font-size: clamp(var(--section-title-min),var(--section-title-fluid),var(--section-title-max)); line-height: 1.3; }
.memberships-section { padding-block: 52px 72px; background-image: none; border-top: 1px solid var(--line); }
.memberships-section::after { content: none; }
.membership-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-block-start: 26px; }
.membership-free-card, .membership-grid .vip-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px,3vw,34px); background-color: var(--surface); }
.membership-grid .vip-card { max-width: none; border-color: rgba(248,195,74,.44); }
.membership-kicker, .membership-grid .vip-kicker { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 800; }
.membership-grid .vip-kicker { color: var(--gold); }
.membership-grid h3 { position: relative; margin: 8px 0 0; font-size: 1.5rem; }
.membership-grid .membership-price { margin: 16px 0 0; font-size: 1.8rem; font-weight: 850; color: var(--text); }
.membership-price span { color: var(--muted); font-size: .9rem; font-weight: 500; }
.membership-features { position: relative; display: grid; gap: 12px; flex: 1; margin-block: 24px; padding-inline-start: 22px; color: #d4d4d8; font-size: 1rem; }
.membership-features li::marker { color: #8d8d96; }
.vip-card .membership-features li::marker { color: var(--gold); }
.history-row .history-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.history-remove { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #18181b; color: #a1a1aa; font-size: 1.3rem; line-height: 1; }
.history-remove:hover { border-color: #ef4444; color: #fca5a5; }
.history-remove:disabled { opacity: .4; cursor: wait; }
.admin-translation-content { display: flex; flex: 1; min-width: 0; align-items: center; gap: 16px; }
.admin-translation-thumb { display: grid; flex: 0 0 112px; width: 112px; aspect-ratio: 16/10; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #24242a; color: #71717a; }
.admin-translation-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-translation-thumb .ui-icon { width: 28px; height: 28px; }
.preview-badges .type-badge, .preview-badges .featured-badge { position: static; }
@media (max-width: 640px) {
  .membership-grid { grid-template-columns: 1fr; }
  .admin-translation-thumb { flex-basis: 80px; width: 80px; }
  .admin-translation-content { gap: 10px; align-items: flex-start; }
}
/* Keep permission-gated controls hidden after icons add display utilities. */
[hidden] { display: none !important; }
