:root {
  --bg: #090b14;
  --bg-soft: #101525;
  --panel: #151b2d;
  --panel-2: #1b2238;
  --line: rgba(255, 255, 255, .11);
  --text: #f7f8ff;
  --muted: #aeb7ce;
  --soft: #dce2f4;
  --red: #e9273f;
  --red-2: #ff5268;
  --cyan: #22c8df;
  --blue: #356dff;
  --green: #19c37d;
  --yellow: #ffbd4a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 39, 63, .72) rgba(255, 255, 255, .06);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .045);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(255, 122, 47, .95), rgba(233, 39, 63, .88));
  border: 2px solid rgba(11, 12, 20, .92);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 154, 74, 1), rgba(255, 82, 104, .96));
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(233, 39, 63, .20), transparent 27%),
    radial-gradient(circle at 82% 12%, rgba(34, 200, 223, .18), transparent 25%),
    linear-gradient(145deg, #080a12 0%, #101426 42%, #090b14 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 70px);
  background: rgba(9, 11, 20, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 24px rgba(231, 25, 53, .32);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--cyan));
  box-shadow: 0 0 28px rgba(233, 39, 63, .35);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  color: white;
}

.brand-copy strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 18px;
  letter-spacing: .01em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover { color: var(--text); }

.btn, button {
  border: 0;
  cursor: pointer;
  color: white;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--red), #a83cff);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 14px 35px rgba(233, 39, 63, .18);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(233, 39, 63, .25);
}

.btn.secondary, button.secondary, button.ghost, .btn.ghost {
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.danger, button.danger {
  background: rgba(233, 39, 63, .16);
  border: 1px solid rgba(233, 39, 63, .42);
  box-shadow: none;
}

.small {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.hero {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .78fr);
  align-items: center;
  gap: 34px;
  padding: 66px clamp(20px, 5vw, 86px) 54px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #ffccd3;
  background: rgba(233, 39, 63, .11);
  border: 1px solid rgba(233, 39, 63, .28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.06;
  margin: 0;
}

h1 {
  margin-top: 22px;
  font-size: clamp(45px, 7vw, 92px);
  letter-spacing: -.055em;
}

.accent {
  background: linear-gradient(135deg, #fff, #ff7b8c 46%, #25d9ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-card, .panel-card, .login-card, .feature-card {
  background: linear-gradient(180deg, rgba(27, 34, 56, .92), rgba(15, 20, 35, .88));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 20%, rgba(34, 200, 223, .23), transparent 36%),
    radial-gradient(circle at 78% 28%, rgba(233, 39, 63, .22), transparent 30%);
  pointer-events: none;
}

.hero-card > * { position: relative; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-height: 138px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.wide-metric {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.wide-metric b {
  display: block;
  font-size: 27px;
  color: #77edff;
}

.wide-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 78px clamp(20px, 5vw, 86px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  max-width: 740px;
}

.section-head p {
  color: var(--muted);
  max-width: 520px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  min-height: 190px;
}

.feature-card strong {
  display: block;
  font-size: 18px;
  margin: 18px 0 9px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(233, 39, 63, .13);
  border: 1px solid rgba(233, 39, 63, .28);
  color: #ff7182;
  font-weight: 900;
}

.product-strip {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(233, 39, 63, .18), transparent 32%),
    linear-gradient(135deg, rgba(27, 34, 56, .95), rgba(9, 11, 20, .92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-strip h2 { font-size: clamp(32px, 4vw, 56px); }
.product-strip p { color: var(--soft); }

.video-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.video-thumb {
  min-height: 148px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  position: relative;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .58));
}

.video-thumb span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-weight: 900;
}

.login-shell {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, .92fr);
  gap: 34px;
  align-items: center;
  padding: 54px clamp(20px, 5vw, 86px);
}

.login-card { padding: 26px; }

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
}

.login-tabs button {
  background: transparent;
  box-shadow: none;
  border-radius: 13px;
}

.login-tabs button.active {
  background: linear-gradient(135deg, var(--cyan), var(--red));
}

.local-demo-access {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.local-demo-access > span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.local-demo-access > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  color: var(--text);
  background: rgba(5, 7, 13, .72);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  padding: 14px 15px;
  outline: 0;
}

input:focus {
  border-color: rgba(233, 39, 63, .65);
  box-shadow: 0 0 0 4px rgba(233, 39, 63, .12);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.remember-row {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.remember-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 0;
  background: transparent;
  color: #ff9aa7;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  color: #fff;
}

.google-login-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 48px;
  border: 1px solid rgba(255, 242, 228, .16);
  border-radius: 14px;
  color: #fff2e4;
  background:
    linear-gradient(135deg, rgba(255, 242, 228, .08), rgba(255, 255, 255, .02)),
    rgba(255, 242, 228, .04);
  font-weight: 900;
  cursor: pointer;
}

.google-login-btn:hover {
  border-color: rgba(255, 122, 47, .40);
  background: linear-gradient(135deg, rgba(255, 122, 47, .18), rgba(198, 19, 42, .16));
}

.dashboard {
  padding: 32px clamp(18px, 4vw, 58px) 70px;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-head h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.panel-card {
  padding: 21px;
}

.stat-card b {
  display: block;
  font-size: 28px;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 18px;
}

.table-wrap { overflow: auto; }

.table-wrap,
.rex-member-modal,
.rex-mini-list,
#memberModalBody {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 82, 104, .82) rgba(255, 255, 255, .055);
}
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.ok {
  color: #9cffd4;
  background: rgba(25, 195, 125, .14);
  border: 1px solid rgba(25, 195, 125, .30);
}

.status-pill.warn {
  color: #ffd8a6;
  background: rgba(255, 189, 74, .13);
  border: 1px solid rgba(255, 189, 74, .28);
}

.event-line {
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 9px;
}

.event-line strong { display: block; }
.event-line span { color: var(--muted); font-size: 12px; }
.event-line .application-note {
  display: block;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.rex-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rex-modal[hidden] { display: none; }

.rex-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, .74);
  backdrop-filter: blur(14px);
}

.rex-member-modal {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  scrollbar-gutter: stable;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 0% 0%, rgba(233, 39, 63, .24), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(34, 200, 223, .13), transparent 34%),
    linear-gradient(180deg, rgba(29, 21, 29, .98), rgba(10, 10, 16, .98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, .55);
}

.rex-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.rex-modal-head h2 {
  margin: 12px 0 4px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
}

.rex-modal-head p {
  margin: 0;
  color: var(--muted);
}

#memberModalBody {
  padding: 24px;
}

.member-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.member-summary-card,
.member-action-box {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.member-summary-card {
  padding: 16px;
}

.member-summary-card span,
.member-action-box h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.member-summary-card b {
  display: block;
  margin-top: 8px;
  font: 900 24px/1.05 "Space Grotesk", Inter, sans-serif;
}

.member-summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.member-modal-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-action-box {
  padding: 18px;
}

.member-action-box.member-info-wide {
  grid-column: 1 / -1;
}

.member-action-box h3 {
  margin: 0 0 13px;
  color: var(--text);
  text-transform: none;
  font-size: 16px;
}

.member-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.member-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.member-info-list dt {
  color: var(--muted);
}

.member-info-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.member-info-list .member-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  max-width: 68%;
}

.quick-action-row,
.member-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.member-form-row {
  margin-top: 12px;
}

.member-form-row input {
  flex: 1 1 140px;
  min-width: 0;
}

.member-rexpoint-controls {
  display: grid;
  grid-template-columns: minmax(86px, 120px) minmax(160px, 1fr);
  align-items: stretch;
  gap: 10px;
}

.member-rexpoint-controls button {
  min-height: 48px;
  white-space: nowrap;
}

.member-rexpoint-controls input,
.member-rexpoint-controls button {
  width: 100%;
}

.member-rexpoint-history {
  margin-top: 12px;
}

.member-report-filter {
  display: grid;
  grid-template-columns: minmax(190px, .6fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
}

.member-report-filter h2 {
  font-size: 17px;
  margin: 0 0 6px;
}

.member-report-filter p {
  margin: 0;
  color: var(--muted);
}

.member-report-controls {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.member-report-controls input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 139, 23, .22);
  background: rgba(7, 5, 11, .72);
  color: #fff2e4;
  font: inherit;
  font-weight: 800;
  outline: none;
  color-scheme: dark;
}

.member-report-controls input {
  padding: 0 12px;
}

.member-report-controls input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .62;
}

.member-report-controls label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.member-report-controls label span {
  color: rgba(255, 242, 228, .58);
  font-size: 11px;
  font-weight: 900;
}

.member-report-controls input:disabled,
.member-report-controls button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

@media (max-width: 900px) {
  .member-modal-grid,
  .member-modal-sections {
    grid-template-columns: 1fr;
  }

  .rex-modal {
    padding: 12px;
  }

  .member-report-filter,
  .member-report-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .member-rexpoint-controls {
    grid-template-columns: 1fr;
  }
}

.notice {
  color: #ffd7dd;
  background: rgba(233, 39, 63, .10);
  border: 1px solid rgba(233, 39, 63, .28);
  border-radius: 18px;
  padding: 15px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(560px, calc(100vw - 24px));
  padding: 14px 18px;
  color: white;
  background: #1a2238;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.toast.show { opacity: 1; }
.toast[data-type="error"] { border-color: rgba(233, 39, 63, .5); }
.toast[data-type="success"] { border-color: rgba(25, 195, 125, .5); }

.member-dashboard-page {
  background:
    radial-gradient(circle at 72% 12%, rgba(233, 39, 63, .12), transparent 24%),
    radial-gradient(circle at 30% 92%, rgba(34, 200, 223, .11), transparent 28%),
    #0b1020;
}

.member-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #151b31, #101626);
  border-right: 1px solid rgba(255, 255, 255, .10);
  z-index: 30;
}

.member-logo {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 900;
}

.member-logo img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}

.rexpoint-wallet {
  padding: 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 200, 223, .14), rgba(233, 39, 63, .12));
  border: 1px solid rgba(34, 200, 223, .42);
}

.rexpoint-wallet span,
.member-account span,
.balance-card span,
.member-card p,
.section-head p {
  color: var(--muted);
}

.rexpoint-wallet strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.member-menu {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.member-menu a,
.member-sidebar-foot a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.member-menu a.active,
.member-menu a:hover {
  color: #9af6ff;
  background: rgba(34, 200, 223, .18);
}

.member-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.member-workspace {
  min-height: 100vh;
  margin-left: 238px;
  padding: 30px clamp(18px, 3vw, 42px) 64px;
}

.member-topline,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.member-topline h1 {
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 58px);
}

.member-account {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.member-grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.member-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(27, 34, 56, .95), rgba(17, 23, 40, .94));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
  margin-bottom: 18px;
}

.balance-card {
  min-height: 112px;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 189, 74, .18), transparent 24%),
    linear-gradient(135deg, rgba(233, 39, 63, .18), rgba(27, 34, 56, .96));
}

.balance-card.blue {
  background:
    radial-gradient(circle at 12% 50%, rgba(34, 200, 223, .18), transparent 24%),
    linear-gradient(135deg, rgba(53, 109, 255, .20), rgba(27, 34, 56, .96));
}

.balance-card strong {
  display: block;
  margin: 8px 0 4px;
  font: 900 38px/1 "Space Grotesk", Inter, sans-serif;
}

.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-grid article,
.profile-grid article {
  padding: 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
}

.metric-grid b,
.profile-grid b {
  display: block;
  font: 900 28px/1 "Space Grotesk", Inter, sans-serif;
}

.metric-grid span,
.profile-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.performance-panels,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.performance-panels article {
  padding: 18px;
  border-radius: 16px;
  background: rgba(4, 7, 15, .30);
  border: 1px solid rgba(255, 255, 255, .08);
}

.progress-line {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0 16px;
  color: var(--soft);
}

.progress-line i,
.task-bar i {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
}

.progress-line::after,
.task-bar {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress-line i,
.task-bar i {
  z-index: 1;
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
}

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list article {
  position: relative;
  padding: 17px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 200, 223, .12), rgba(233, 39, 63, .10));
  border: 1px solid rgba(34, 200, 223, .18);
}

.task-list span,
.task-list small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.task-bar {
  position: relative;
  margin-top: 12px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin: 16px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.catalog-filters button {
  padding: 10px 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.catalog-filters button.active {
  background: linear-gradient(135deg, var(--cyan), var(--red));
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-grid article {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
}

.catalog-grid div {
  height: 82px;
  display: grid;
  place-items: center;
  margin: -16px -16px 14px;
  border-radius: 16px 16px 0 0;
  color: #ffdb72;
  background: linear-gradient(135deg, rgba(34, 200, 223, .16), rgba(233, 39, 63, .16));
  font: 900 36px/1 "Space Grotesk", Inter, sans-serif;
}

.catalog-grid b,
.catalog-grid span {
  display: block;
}

.catalog-grid span {
  margin: 8px 0 13px;
  color: var(--cyan);
  font-weight: 900;
}

.converter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.ref-code {
  padding: 22px;
  margin: 14px 0;
  text-align: center;
  color: #7bffbd;
  border-radius: 18px;
  background: rgba(25, 195, 125, .10);
  border: 1px solid rgba(25, 195, 125, .28);
  font: 900 30px/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: .04em;
}

.admin-dashboard-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(233, 39, 63, .24), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(255, 189, 74, .08), transparent 24%),
    linear-gradient(135deg, #090b14 0%, #16070b 44%, #0b1020 100%);
}

.admin-topbar {
  background: rgba(9, 11, 20, .88);
}

.admin-dashboard {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 44px) 72px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.admin-hero h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -.055em;
}

.admin-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--soft);
}

.admin-hero-actions {
  flex: 0 0 auto;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-card,
.admin-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(233, 39, 63, .14), transparent 38%),
    linear-gradient(180deg, rgba(30, 23, 32, .96), rgba(14, 12, 19, .95));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.admin-stat-card {
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
}

.admin-stat-card.red {
  border-color: rgba(233, 39, 63, .26);
  background:
    radial-gradient(circle at 0% 0%, rgba(233, 39, 63, .32), transparent 46%),
    linear-gradient(180deg, rgba(38, 20, 25, .98), rgba(18, 12, 18, .96));
}

.admin-stat-card.cyan {
  border-color: rgba(34, 200, 223, .24);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 200, 223, .19), transparent 44%),
    linear-gradient(180deg, rgba(24, 30, 44, .98), rgba(13, 14, 22, .96));
}

.admin-stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
  font: 900 clamp(28px, 3vw, 42px)/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.035em;
}

.admin-stat-card small {
  color: var(--red-2);
  font-size: .55em;
}

.admin-stat-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(380px, .68fr);
  gap: 18px;
  align-items: start;
}

.admin-card {
  padding: 24px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin-top: 9px;
  font-size: 28px;
}

.admin-card-head p {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--muted);
  text-align: right;
}

.admin-add-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .08);
}

.admin-add-form label {
  margin: 0;
}

.admin-add-form input {
  margin-top: 7px;
}

.admin-info {
  margin: 14px 0 12px;
  padding: 13px 15px;
  color: #ffd7dd;
  background: rgba(233, 39, 63, .11);
  border: 1px solid rgba(233, 39, 63, .30);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.admin-table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .14);
}

.admin-table th,
.admin-table td {
  padding: 16px 14px;
  vertical-align: middle;
}

.admin-table td strong {
  font-size: 15px;
}

.admin-table td.table-actions {
  display: table-cell;
  min-width: 190px;
  white-space: nowrap;
}

.admin-table td.table-actions .small {
  margin-right: 8px;
}

.admin-table td.table-actions .small:last-child {
  margin-right: 0;
}

.admin-events-card {
  min-height: 520px;
}

.admin-events-card .event-line {
  margin-bottom: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.footer {
  padding: 30px clamp(20px, 5vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.rex-home {
  --rex-red: #e71935;
  --rex-red-soft: #ff5a6f;
  --rex-ink: #15121a;
  --rex-paper: #fff7f8;
  background:
    radial-gradient(circle at 9% 13%, rgba(231, 25, 53, .30), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .22), transparent 18%),
    linear-gradient(132deg, #17070b 0%, #2b0c14 31%, #fbfbff 31.2%, #fff 64%, #19070d 64.2%, #090b14 100%);
}

.rex-topbar {
  background: rgba(18, 5, 9, .78);
}

.rex-primary {
  background: linear-gradient(135deg, #e71935, #ff6b7c);
  color: #fff;
}

.rex-white {
  background: rgba(255, 255, 255, .92);
  color: #221018;
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 0 16px 38px rgba(255, 255, 255, .12);
}

.rex-white:hover {
  box-shadow: 0 22px 48px rgba(255, 255, 255, .18);
}

.accent-red {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 84, 105, .32);
}

.rex-hero {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: 34px;
  align-items: center;
  padding: 72px clamp(20px, 5vw, 86px) 58px;
  position: relative;
}

.rex-hero::before {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 86px);
  right: clamp(20px, 5vw, 86px);
  bottom: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
}

.rex-hero-copy h1 {
  max-width: 920px;
  font-size: clamp(48px, 7.2vw, 96px);
  letter-spacing: -.055em;
}

.rex-hero-copy p {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
}

.rex-proof {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rex-proof span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff4f5;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  font-weight: 900;
}

.rex-login-preview {
  border-radius: 32px;
  padding: 22px;
  color: #201218;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 239, 242, .92));
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 30px 85px rgba(0, 0, 0, .36);
  animation: rexFloat 6s ease-in-out infinite;
}

.preview-top,
.preview-card,
.preview-grid > div {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(231, 25, 53, .13);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 900;
}

.preview-top b {
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  background: #14a86e;
  font-size: 12px;
}

.preview-card {
  margin-top: 12px;
  padding: 24px;
}

.preview-card.bright {
  background: linear-gradient(135deg, #e71935, #ff7b8c);
  color: #fff;
}

.preview-card span,
.preview-card small {
  display: block;
  opacity: .82;
  font-weight: 800;
}

.preview-card strong {
  display: block;
  margin: 4px 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 44px;
  line-height: 1;
}

.preview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-grid > div {
  padding: 18px;
}

.preview-grid b {
  display: block;
  color: #e71935;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
}

.preview-grid span {
  display: block;
  color: #766973;
  font-size: 12px;
  font-weight: 800;
}

.rex-section,
.rex-app-section,
.rex-cta {
  padding: 84px clamp(20px, 5vw, 86px);
}

.rex-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 244, 246, .95));
  color: #1c1116;
}

.rex-section .eyebrow,
.rex-cta .eyebrow {
  color: #d91530;
  background: rgba(231, 25, 53, .08);
  border-color: rgba(231, 25, 53, .20);
}

.rex-section-head p {
  color: #6f626a;
}

.rex-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rex-feature-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(231, 25, 53, .12);
  box-shadow: 0 24px 70px rgba(70, 10, 22, .09);
}

.rex-feature-card strong {
  display: block;
  margin: 22px 0 10px;
  font-size: 20px;
  color: #1c1116;
}

.rex-feature-card p {
  margin: 0;
  color: #70626b;
}

.rex-app-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 22%, rgba(231, 25, 53, .23), transparent 28%),
    linear-gradient(135deg, #12050a, #111827);
}

.rex-app-copy h2 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 66px);
}

.rex-app-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}

.rex-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 14px;
}

.rex-media-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.rex-media-card.tall {
  grid-row: span 2;
}

.rex-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .72));
}

.rex-media-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.rex-cta {
  text-align: center;
  background: #fff;
  color: #1d1117;
}

.rex-cta h2 {
  max-width: 830px;
  margin: 16px auto 0;
  font-size: clamp(34px, 5vw, 62px);
}

.rex-cta p {
  max-width: 650px;
  margin: 16px auto 0;
  color: #74666d;
}

.rex-cta .hero-actions {
  justify-content: center;
}

.rex-footer {
  background: #0d0d14;
}

.rex-agency-home {
  --cream: #fff2e4;
  --cream-soft: #f5ded0;
  --red-main: #f0142f;
  --red-dark: #7d0715;
  background:
    radial-gradient(circle at 8% 10%, rgba(240, 20, 47, .36), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(240, 20, 47, .20), transparent 23%),
    linear-gradient(145deg, #070606 0%, #16070a 38%, #0b0909 100%);
}

.rex-agency-home .topbar {
  background: rgba(8, 6, 6, .86);
  border-bottom-color: rgba(240, 20, 47, .22);
}

.rex-agency-home .brand-mark { display: none; }
.rex-agency-home .brand-copy strong { color: var(--cream); }
.rex-agency-home .brand-copy span { color: rgba(255,242,228,.66); }

.rex-nav-login,
.rex-primary {
  background: linear-gradient(135deg, #ff1738, #b70519);
  color: #fff;
  border: 1px solid rgba(255, 107, 124, .38);
  box-shadow: 0 16px 44px rgba(240, 20, 47, .28);
}

.rex-cream {
  background: rgba(255, 242, 228, .94);
  color: #201012;
  border: 1px solid rgba(255, 242, 228, .58);
}

.rex-games-cta {
  background: linear-gradient(135deg, #ffb000, #ff1738 58%, #8f1fff);
  color: #fff;
  border: 1px solid rgba(255, 224, 142, .58);
  box-shadow: 0 18px 48px rgba(255, 122, 47, .32);
}

.agency-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(260px, .34fr);
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  width: min(1240px, calc(100% - 92px));
  margin: 0 auto;
  padding: 44px 0 34px;
}

.agency-kicker,
.agency-section-head span {
  display: inline-flex;
  color: #ff7181;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.agency-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  color: var(--cream);
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -.06em;
}

.agency-hero p {
  max-width: 620px;
  color: rgba(255,242,228,.78);
  font-size: 17px;
  margin: 18px 0 0;
}

.agency-side-card {
  background: linear-gradient(180deg, rgba(255,242,228,.10), rgba(255,242,228,.035));
  border: 1px solid rgba(255,242,228,.16);
  border-top: 3px solid var(--red-main);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.agency-side-logo {
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 22px;
  background: #080808;
  border: 1px solid rgba(255,255,255,.08);
}

.agency-side-logo img {
  max-width: 96px;
  max-height: 76px;
  object-fit: contain;
}

.agency-side-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,242,228,.10);
  color: rgba(255,242,228,.68);
}

.agency-side-row b { color: var(--cream); }

.agency-games-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 176, 0, .92), rgba(255, 23, 56, .9) 52%, rgba(143, 31, 255, .9));
  border: 1px solid rgba(255, 242, 228, .28);
  box-shadow: 0 18px 46px rgba(240, 20, 47, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.agency-games-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(255, 122, 47, .32);
}

.agency-games-card span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.agency-games-card strong {
  font-size: 22px;
  line-height: 1.15;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.agency-games-card small {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  line-height: 1.5;
}

.agency-strip {
  width: min(1240px, calc(100% - 92px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,242,228,.12);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,242,228,.045);
}

.agency-strip div {
  padding: 22px 26px;
  border-right: 1px solid rgba(255,242,228,.10);
}

.agency-strip div:last-child { border-right: 0; }
.agency-strip b {
  display: block;
  color: var(--cream);
  font-size: 28px;
  font-family: "Space Grotesk", Inter, sans-serif;
}
.agency-strip span {
  color: rgba(255,242,228,.60);
  font-weight: 700;
}

.agency-section,
.agency-portfolio,
.agency-about,
.agency-testimonials,
.agency-cta,
.agency-contact {
  width: min(1240px, calc(100% - 92px));
  margin: 0 auto;
  padding: 74px 0;
}

.agency-section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
}

.agency-section-head.centered {
  display: block;
  text-align: center;
}

.agency-section-head.centered h2 {
  margin: 14px auto 0;
}

.agency-section-head h2,
.agency-cta h2,
.agency-contact h2 {
  color: var(--cream);
  max-width: 820px;
  font-size: clamp(36px, 4.7vw, 62px);
  letter-spacing: -.045em;
}

.agency-services,
.agency-project-grid {
  display: grid;
  gap: 0;
}

.agency-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255,242,228,.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.agency-project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.agency-services article,
.agency-project-grid article {
  min-height: 188px;
  padding: 24px;
  background: #0f0f0f;
  border: 1px solid rgba(255,242,228,.12);
  border-top: 3px solid var(--red-main);
}

.agency-services article {
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-bottom: 1px solid rgba(255,242,228,.10);
  border-right: 1px solid rgba(255,242,228,.10);
}

.agency-services article:nth-child(2n) { border-right: 0; }
.agency-services article:nth-last-child(-n+2) { border-bottom: 0; }

.agency-project-grid article {
  border-radius: 18px;
}

.agency-services article span,
.agency-project-grid small {
  color: #ff5268;
  font-weight: 900;
  letter-spacing: .12em;
}

.agency-services h3,
.agency-project-grid h3 {
  margin: 18px 0 10px;
  color: var(--cream);
  font-size: 22px;
}

.agency-services p,
.agency-project-grid p,
.agency-cta p,
.agency-contact p {
  color: rgba(255,242,228,.62);
  margin: 0;
}

.agency-portfolio {
  background: transparent;
}

.agency-project-grid article:nth-child(2) { border-top-color: #ff7a2f; }
.agency-project-grid article:nth-child(3) { border-top-color: #c6132a; }
.agency-project-grid article:nth-child(4) { border-top-color: #ffb000; }
.agency-project-grid a,
.agency-project-grid strong {
  display: inline-flex;
  margin-top: 24px;
  color: #ff5268;
  font-weight: 900;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-tags b {
  color: #ff4b3c;
  background: rgba(240, 20, 47, .08);
  border: 1px solid rgba(240, 20, 47, .22);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
}

.agency-about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .9fr);
  gap: 44px;
  align-items: center;
}

.agency-about h2 {
  margin: 14px 0 18px;
  color: var(--cream);
  font-size: clamp(36px, 4.4vw, 58px);
  letter-spacing: -.045em;
}

.agency-about p {
  color: rgba(255,242,228,.66);
  max-width: 640px;
}

.agency-about a {
  display: inline-flex;
  margin-top: 26px;
  color: var(--cream);
  font-weight: 900;
}

.agency-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agency-about-grid article,
.agency-testimonial-grid article {
  padding: 24px;
  border-radius: 16px;
  background: #101010;
  border: 1px solid rgba(255,242,228,.12);
}

.agency-about-grid b,
.agency-testimonial-grid b {
  display: block;
  color: var(--cream);
}

.agency-about-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255,242,228,.56);
  font-size: 13px;
}

.agency-testimonials {
  padding-top: 40px;
}

.agency-testimonials .agency-section-head.centered {
  text-align: left;
}

.agency-testimonials .agency-section-head.centered h2 {
  margin-left: 0;
  margin-right: 0;
}

.agency-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agency-testimonial-grid p {
  color: rgba(255,242,228,.72);
  font-style: italic;
}

.agency-testimonial-grid span {
  color: rgba(255,242,228,.52);
  font-weight: 800;
}

.agency-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240,20,47,.22), transparent 32%),
    #080808;
  width: 100%;
  max-width: none;
  padding-left: max(46px, calc((100vw - 1240px) / 2));
  padding-right: max(46px, calc((100vw - 1240px) / 2));
}

.agency-cta h2 { margin: 0 auto; }
.agency-cta p {
  max-width: 720px;
  margin: 18px auto 0;
}
.agency-cta .hero-actions { justify-content: center; }

.agency-contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.agency-contact h2 + p {
  margin-top: 18px;
}

.agency-contact-info {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.agency-contact-info a {
  color: var(--cream);
  font-weight: 900;
}

.agency-form {
  padding: 28px;
  border-radius: 28px;
  background: #101010;
  border: 1px solid rgba(255,242,228,.13);
}

.agency-form label { color: rgba(255,242,228,.70); }
.agency-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  color: var(--text);
  background: rgba(5, 7, 13, .72);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  padding: 14px 15px;
  outline: 0;
  font: inherit;
}

.agency-form button {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg, #ff1738, #b70519);
}

.application-status {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .055);
}

.application-status.success {
  color: #ffe6c7;
  border-color: rgba(255, 122, 24, .38);
  background: rgba(255, 122, 24, .14);
}

.application-status.error {
  color: #ffd8d8;
  border-color: rgba(255, 59, 79, .42);
  background: rgba(255, 59, 79, .14);
}

.application-external-step {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 24, .28);
  background: rgba(255, 122, 24, .10);
  color: rgba(255, 242, 228, .78);
  line-height: 1.45;
}

.application-external-step b {
  color: var(--cream);
}

.application-external-step a {
  color: #ffb36d;
  font-weight: 900;
}

.dashboard,
.login-shell {
  background:
    radial-gradient(circle at 8% 12%, rgba(240,20,47,.22), transparent 26%),
    linear-gradient(145deg, #080707, #16090d);
}

.panel-card,
.login-card {
  background: linear-gradient(180deg, rgba(255,242,228,.08), rgba(255,242,228,.035));
  border-color: rgba(255,242,228,.13);
}

.login-tabs button.active,
.status-pill.ok,
.btn:not(.secondary) {
  background: linear-gradient(135deg, #ff1738, #b70519);
}

/* RexNew landing alignment fixes */
.rex-agency-home {
  --agency-content-width: 1240px;
}

.rex-agency-home .agency-hero,
.rex-agency-home .agency-strip,
.rex-agency-home .agency-section,
.rex-agency-home .agency-portfolio,
.rex-agency-home .agency-about,
.rex-agency-home .agency-testimonials,
.rex-agency-home .agency-contact {
  width: min(var(--agency-content-width), calc(100% - 92px));
}

.rex-agency-home .agency-section-head {
  display: block;
  margin-bottom: 34px;
}

.rex-agency-home .agency-section-head h2 {
  margin: 14px 0 0;
}

.rex-agency-home .agency-section-head.centered {
  text-align: center;
}

.rex-agency-home .agency-section-head.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.rex-agency-home .agency-about {
  align-items: start;
}

.rex-agency-home .agency-portfolio {
  padding-top: 56px;
}

.rex-agency-home .agency-testimonials {
  padding-top: 56px;
}

.rex-agency-home .agency-testimonials .agency-section-head.centered {
  text-align: left;
}

.rex-agency-home .agency-testimonials .agency-section-head.centered h2 {
  margin-left: 0;
  margin-right: 0;
}

.rex-agency-home .agency-cta {
  width: 100%;
}

.rex-auth-shell {
  width: min(1240px, calc(100% - 92px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  align-items: center;
}

.rex-auth-card {
  width: 100%;
  max-width: 560px;
}

.rex-auth-copy h1 {
  max-width: 620px;
}

.rex-auth-copy p,
.rex-auth-copy .notice,
.rex-auth-points {
  max-width: 560px;
}

@media (max-width: 980px) {
  .rex-auth-shell {
    grid-template-columns: 1fr;
  }

  .rex-auth-card {
    max-width: none;
  }
}

.stat-card b,
.dashboard-head h1 {
  color: var(--cream);
}

.status-pill.ok {
  color: #fff;
  border-color: rgba(255,82,104,.35);
}

.status-pill.warn {
  color: #3a1016;
  background: rgba(255,242,228,.9);
  border-color: rgba(255,242,228,.75);
}

.rex-cream {
  background: rgba(255, 242, 228, .96) !important;
  color: #210b0f !important;
  border: 1px solid rgba(255, 242, 228, .62) !important;
  box-shadow: 0 16px 42px rgba(255, 242, 228, .12) !important;
}

.rex-cream:hover {
  background: #fff8ef !important;
}

@keyframes rexFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
  .hero, .login-shell, .product-strip, .dashboard-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rex-hero, .rex-app-section { grid-template-columns: 1fr; }
  .rex-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-hero, .agency-contact { grid-template-columns: 1fr; }
  .agency-about { grid-template-columns: 1fr; }
  .agency-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; }
  .nav { display: none; }
  .hero { padding-top: 34px; }
  .metric-grid, .wide-metric, .features, .stats, .video-wall { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .rex-home {
    background: linear-gradient(160deg, #17070b, #090b14 58%, #fff 58.2%, #fff7f8);
  }
  .rex-hero { padding-top: 42px; }
  .rex-feature-grid, .preview-grid, .rex-media-grid { grid-template-columns: 1fr; }
  .rex-media-card.tall { grid-row: span 1; }
  .agency-strip, .agency-services, .agency-project-grid, .agency-about-grid { grid-template-columns: 1fr; }
  .agency-section-head { align-items: start; flex-direction: column; }
  .agency-strip div { border-right: 0; border-bottom: 1px solid rgba(255,242,228,.10); }
  .agency-strip div:last-child { border-bottom: 0; }
  .agency-services article,
  .agency-services article:nth-child(2n),
  .agency-services article:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,242,228,.10);
  }
  .agency-services article:last-child { border-bottom: 0; }
}

/* RexNew agency panel refresh */
.rex-auth-page,
.rex-member-page,
.rex-admin-page {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, #08080b 0%, #12090c 48%, #070910 100%);
  color: #fff3e7;
}

.rex-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 9%, rgba(198, 19, 42, .36), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(255, 122, 47, .22), transparent 30%),
    radial-gradient(circle at 50% 76%, rgba(198, 19, 42, .16), transparent 38%),
    linear-gradient(135deg, #08080b 0%, #17080d 44%, #070910 100%);
}

.rex-auth-page .login-shell,
.rex-auth-page .rex-auth-shell {
  background: transparent;
}

.rex-auth-shell {
  max-width: 1180px;
  min-height: calc(100vh - 92px);
}

.rex-auth-copy .notice {
  border-color: rgba(255, 122, 47, .35);
  background: rgba(198, 19, 42, .12);
}

.rex-auth-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.rex-auth-points article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 242, 228, .12);
  border-radius: 16px;
  background: rgba(255, 242, 228, .05);
}

.rex-auth-points b {
  color: #ff8a1e;
}

.rex-auth-card {
  border-color: rgba(255, 122, 47, .26);
  box-shadow: 0 24px 80px rgba(198, 19, 42, .16);
}

.rex-auth-shell.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.reset-card h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
  margin: 18px 0 12px;
}

.login-tabs.three {
  grid-template-columns: repeat(3, 1fr);
}

.rex-member-page,
.rex-admin-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.rex-panel-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 242, 228, .10);
  background:
    linear-gradient(180deg, rgba(198, 19, 42, .20), rgba(5, 7, 13, .94)),
    #0b0b10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-panel-sidebar.admin {
  background:
    linear-gradient(180deg, rgba(198, 19, 42, .25), rgba(6, 6, 10, .96)),
    #09090d;
}

.rex-panel-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.rex-panel-logo img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(255, 122, 47, .24);
}

.rex-panel-logo span {
  display: grid;
  gap: 3px;
}

.rex-panel-logo small {
  color: rgba(255, 242, 228, .58);
}

.rex-wallet {
  padding: 16px;
  border: 1px solid rgba(255, 122, 47, .32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 47, .18), rgba(198, 19, 42, .14));
}

.rex-wallet span,
.rex-stat-card span,
.rex-stat-card small {
  display: block;
  color: rgba(255, 242, 228, .66);
  font-size: 12px;
}

.rex-wallet strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: #fff;
}

.rex-side-menu {
  display: grid;
  gap: 8px;
}

.rex-side-menu a,
.rex-sidebar-foot a,
.rex-sidebar-foot button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 242, 228, .76);
  text-decoration: none;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.rex-side-menu a.active,
.rex-side-menu a:hover,
.rex-sidebar-foot a:hover,
.rex-sidebar-foot button:hover {
  color: #fff;
  border-color: rgba(255, 122, 47, .28);
  background: linear-gradient(135deg, rgba(255, 122, 47, .18), rgba(198, 19, 42, .18));
}

.rex-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.rex-member-main,
.rex-admin-main {
  min-width: 0;
  padding: 28px;
}

.rex-member-top,
.rex-admin-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.rex-member-top h1,
.rex-admin-top h1 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0;
}

.rex-admin-top p {
  color: rgba(255, 242, 228, .68);
  max-width: 760px;
}

.rex-account-card {
  min-width: 240px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 242, 228, .12);
  border-radius: 18px;
  background: rgba(255, 242, 228, .06);
  display: grid;
  gap: 5px;
  justify-items: end;
}

.rex-account-card small {
  color: rgba(255, 242, 228, .62);
}

.rex-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.rex-stat-grid.admin {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rex-panel-view {
  min-width: 0;
  animation: rexViewIn .18s ease both;
}

.rex-panel-view[hidden] {
  display: none !important;
}

.rex-maintenance-panel {
  max-width: 760px;
  margin: 12vh auto;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(239, 35, 60, .28), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}

.rex-maintenance-panel h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .95;
}

.rex-maintenance-panel p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

@keyframes rexViewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rex-stat-card,
.rex-panel-card {
  border: 1px solid rgba(255, 242, 228, .12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 242, 228, .07), rgba(198, 19, 42, .07)),
    rgba(11, 10, 15, .86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.rex-stat-card {
  padding: 18px;
  min-height: 116px;
}

.rex-stat-card.hot {
  border-color: rgba(255, 122, 47, .32);
  background:
    linear-gradient(145deg, rgba(255, 122, 47, .20), rgba(198, 19, 42, .15)),
    rgba(11, 10, 15, .86);
}

.rex-stat-card b {
  display: block;
  margin: 9px 0 4px;
  color: #fff;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
}

.rex-panel-card {
  padding: 22px;
  margin-bottom: 16px;
}

.rex-action-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rex-action-band h2,
.rex-panel-card h2,
.rex-panel-card h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

.rex-panel-card p,
.rex-panel-card .muted {
  color: rgba(255, 242, 228, .66);
}

.rex-performance-grid,
.rex-grid-two,
.rex-admin-grid {
  display: grid;
  gap: 16px;
}

.rex-performance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rex-grid-two {
  grid-template-columns: 1fr 1fr;
}

.rex-admin-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr);
}

.rex-admin-grid .span-2 {
  grid-column: 1 / -1;
}

.rex-soft-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffd7b3;
  background: rgba(255, 122, 47, .14);
  border: 1px solid rgba(255, 122, 47, .24);
  font-weight: 800;
  font-size: 12px;
}

.rex-rexpoint-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 47, .18), rgba(198, 19, 42, .16));
}

.rex-rexpoint-box strong {
  display: block;
  font-size: 46px;
  color: #fff;
}

.rex-catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rex-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
  border-color: rgba(255, 43, 76, 0.35);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 43, 76, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(20, 7, 11, 0.94), rgba(15, 18, 34, 0.94));
}

.rex-catalog-brand,
.rex-catalog-balance {
  border: 1px solid rgba(255, 43, 76, 0.28);
  border-radius: 16px;
  padding: 24px;
  background: rgba(7, 8, 15, 0.62);
}

.rex-catalog-brand span,
.rex-catalog-balance span {
  display: block;
  color: #ff5069;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rex-catalog-brand strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.95;
  color: #fff7ef;
  text-transform: uppercase;
}

.rex-catalog-brand p,
.rex-catalog-intro p,
.rex-catalog-category-head p {
  color: var(--muted);
}

.rex-catalog-balance strong {
  display: block;
  margin-top: 6px;
  color: #ff3559;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1;
}

.rex-catalog-balance b {
  display: inline-flex;
  margin: 14px 0 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 115, 24, 0.28), rgba(255, 22, 74, 0.32));
}

.rexpoint-rule-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(255, 176, 0, .48);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 176, 0, .22), transparent 34%),
    linear-gradient(135deg, rgba(32, 12, 8, .95), rgba(20, 8, 22, .94));
  box-shadow: 0 18px 46px rgba(255, 122, 47, .12);
}

.rexpoint-rule-card span {
  display: inline-flex;
  color: #ffcb69;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rexpoint-rule-card h2 {
  margin: 8px 0 10px;
  color: #fff7ef;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.rexpoint-rule-card p,
.rexpoint-rule-progress small {
  color: rgba(255, 242, 228, .72);
}

.rexpoint-rule-progress {
  display: grid;
  gap: 10px;
}

.rexpoint-rule-progress article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 176, 0, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.rexpoint-rule-progress b {
  color: #fff;
  font-size: 18px;
}

.rexpoint-rule-progress i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}

.rexpoint-rule-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb000, #ff3559);
}

.rex-catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.rex-catalog-steps {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 10px;
}

.rex-catalog-steps span,
.rex-catalog-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff7ef;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
}

.rex-catalog-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.rex-catalog-tabs button {
  cursor: pointer;
}

.rex-catalog-tabs button.active {
  border-color: rgba(255, 43, 76, 0.7);
  background: linear-gradient(135deg, rgba(255, 43, 76, 0.34), rgba(255, 125, 25, 0.2));
  box-shadow: 0 0 22px rgba(255, 43, 76, 0.16);
}

.rex-catalog-grid-live {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rex-catalog-category-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.rex-catalog-category-head h3 {
  margin: 0;
  color: #fff7ef;
  font-size: 1.35rem;
}

.rex-catalog-item,
.rex-empty-card {
  min-height: 190px;
  border: 1px solid rgba(255, 43, 76, 0.34);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 43, 76, 0.18), transparent 40%),
    rgba(8, 8, 17, 0.72);
}

.rex-catalog-item.locked {
  opacity: 0.66;
}

.rex-catalog-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #ff7a18, #ff214f);
  box-shadow: 0 0 24px rgba(255, 43, 76, 0.24);
}

.rex-catalog-icon[hidden] {
  display: none !important;
}

.rex-catalog-media {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  justify-self: center;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.rex-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rex-catalog-item span {
  color: #ffb36b;
  font-size: 0.88rem;
  font-weight: 800;
}

.rex-catalog-item b {
  color: #fff7ef;
  font-size: 1.02rem;
}

.rex-catalog-item strong {
  color: #ff3559;
  font-size: 1.45rem;
}

.rex-catalog-amount {
  display: grid;
  gap: 6px;
}

.rex-catalog-amount span {
  color: var(--muted);
  font-size: 0.78rem;
}

.rex-catalog-amount input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 116, 24, 0.42);
  border-radius: 10px;
  padding: 0 12px;
  color: #fff7ef;
  font-weight: 900;
  background: rgba(5, 5, 10, 0.82);
}

.rex-catalog-amount input:disabled {
  opacity: 0.55;
}

.rex-level-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rex-level-track article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.rex-level-track b,
.rex-level-track span,
.rex-level-track small {
  display: block;
}

.rex-level-track b {
  color: #fff7ef;
}

.rex-level-track span {
  margin-top: 8px;
  color: #ffb36b;
  font-weight: 900;
}

.rex-level-track small {
  margin-top: 4px;
  color: var(--muted);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

button.danger,
.small.danger {
  border-color: rgba(255, 67, 92, 0.55);
  background: rgba(255, 43, 76, 0.13);
  color: #ff9cab;
}

@media (max-width: 900px) {
  .rex-catalog-hero,
  .rex-catalog-intro {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rex-catalog-steps,
  .rex-catalog-tabs,
  .rex-catalog-grid-live,
  .rex-level-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rex-catalog-steps,
  .rex-catalog-tabs,
  .rex-catalog-grid-live,
  .rex-level-track {
    grid-template-columns: 1fr;
  }

  .rex-catalog-brand,
  .rex-catalog-balance {
    padding: 18px;
  }
}

.rex-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rex-profile-form-grid label {
  display: grid;
  gap: 8px;
  color: rgba(255, 242, 228, .70);
  font-weight: 800;
  font-size: 12px;
}

.rex-profile-form-grid input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 47, .22);
  background: rgba(0, 0, 0, .32);
  color: #fff;
  padding: 0 14px;
}

.rex-profile-form-grid input:disabled {
  opacity: .65;
}

.rex-profile-form-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff7a1f, #d81836);
  cursor: pointer;
}

.rex-profile-form-grid button:disabled {
  opacity: .65;
  cursor: wait;
}

.rexpoint-admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rex-import-demo-card {
  border-color: rgba(154, 83, 255, .26);
}

.rex-import-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 14px;
  align-items: stretch;
}

.rex-file-drop {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 18px;
  border: 1px dashed rgba(0, 216, 255, .34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 216, 255, .10), rgba(154, 83, 255, .10));
  cursor: pointer;
}

.rex-file-drop input {
  display: none;
}

.rex-file-drop span {
  color: #00d8ff;
  font-weight: 900;
}

.rex-file-drop b {
  color: #fff;
}

.rex-file-drop small,
.rex-report-type-field small,
.rex-import-note {
  color: rgba(255, 242, 228, .66);
}

.rex-report-type-field {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 140, 0, .26);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.rex-report-type-field span {
  color: rgba(255, 242, 228, .72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rex-report-type-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 140, 0, .45);
  border-radius: 12px;
  background: #09050d;
  color: #fff2e4;
  font-weight: 900;
  outline: none;
  padding: 0 12px;
}

.rex-import-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.rex-import-preview {
  margin-top: 14px;
}

.monthly-summary-row small,
.eligibility-failure-row small {
  margin-top: 4px;
}

.rex-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rex-preview-grid article {
  padding: 14px;
  border: 1px solid rgba(255, 242, 228, .10);
  border-radius: 14px;
  background: rgba(255, 242, 228, .05);
}

.rex-preview-grid span {
  display: block;
  color: rgba(255, 242, 228, .60);
  font-size: 12px;
  font-weight: 800;
}

.rex-preview-grid b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 24px;
}

.rex-import-note {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 47, .24);
  border-radius: 14px;
  background: rgba(255, 122, 47, .10);
  font-weight: 800;
}

.rex-import-note.ok {
  border-color: rgba(25, 195, 125, .38);
  background: rgba(25, 195, 125, .12);
}

.rex-import-note.danger {
  border-color: rgba(255, 69, 116, .36);
  background: rgba(255, 69, 116, .12);
  color: #ffd2dc;
}

.rex-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.rex-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, .8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 242, 228, .10);
  border-radius: 12px;
  background: rgba(255, 242, 228, .045);
}

.rex-preview-row b,
.rex-preview-row small {
  display: block;
}

.rex-preview-row b {
  color: #fff;
  font-size: 13px;
}

.rex-preview-row small {
  margin-top: 3px;
  color: rgba(255, 242, 228, .58);
  font-size: 12px;
}

.rex-preview-row i {
  min-width: 82px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.rex-preview-row.ok i {
  color: #bfffe0;
  background: rgba(25, 195, 125, .18);
}

.rex-preview-row.warn i {
  color: #ffe2a8;
  background: rgba(255, 176, 32, .18);
}

.rex-preview-row.danger i {
  color: #ffc0cf;
  background: rgba(255, 69, 116, .18);
}

.mini-row.stacked {
  display: grid;
  gap: 8px;
}

.mini-row small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 242, 228, .58);
  font-size: 12px;
}

.rex-progress {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 242, 228, .10);
}

.rex-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d8ff, #9a53ff, #ff2b8a);
}

.success-text {
  color: #38e7a3 !important;
}

.danger-text {
  color: #ff6d7a !important;
}

.rex-member-tabs,
.rex-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

[data-admin-rexpoint-view][hidden] {
  display: none !important;
}

.rex-member-tabs button,
.rex-admin-tabs button {
  border: 1px solid rgba(255, 242, 228, .16);
  border-radius: 14px;
  padding: 12px 16px;
  color: rgba(255, 242, 228, .72);
  font-weight: 900;
  background: rgba(255, 242, 228, .05);
  cursor: pointer;
}

.rex-member-tabs button.active,
.rex-member-tabs button:hover,
.rex-admin-tabs button.active,
.rex-admin-tabs button:hover {
  color: #fff;
  border-color: rgba(0, 216, 255, .42);
  background: linear-gradient(135deg, rgba(0, 216, 255, .16), rgba(154, 83, 255, .18));
}

.rex-referral-hero {
  border-color: rgba(154, 83, 255, .28);
  background:
    radial-gradient(circle at top right, rgba(154, 83, 255, .24), transparent 34%),
    linear-gradient(145deg, rgba(255, 242, 228, .07), rgba(198, 19, 42, .07)),
    rgba(11, 10, 15, .86);
}

.rex-referral-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(0, 216, 255, .24);
  border-radius: 18px;
  background: rgba(0, 216, 255, .06);
}

.rex-referral-code span {
  color: rgba(255, 242, 228, .62);
  font-size: 12px;
  font-weight: 900;
}

.rex-referral-code strong {
  color: #38e7a3;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: 0;
}

.referral-copy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.referral-detected {
  display: block;
  margin: -4px 0 8px;
  color: #38e7a3;
  font-weight: 800;
}

.rex-referral-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rex-referral-steps article {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(154, 83, 255, .24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(154, 83, 255, .12), rgba(0, 216, 255, .06));
}

.rex-referral-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #9a53ff, #ff2b8a);
}

.rex-referral-steps span {
  color: #fff;
  font-weight: 900;
}

.rex-referral-steps small {
  color: rgba(255, 242, 228, .62);
  line-height: 1.5;
}

.rex-member-request-list {
  margin-top: 14px;
}

.profile-action-message {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 47, .24);
  background: rgba(255, 122, 47, .10);
  color: #fff3e8;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
}

.profile-action-message[data-type="success"] {
  border-color: rgba(25, 195, 125, .45);
  background: rgba(25, 195, 125, .12);
}

.profile-action-message[data-type="error"] {
  border-color: rgba(233, 39, 63, .48);
  background: rgba(233, 39, 63, .13);
}

.profile-grid .rex-download-card {
  grid-column: span 2;
  align-items: start;
}

.rex-download-card .btn {
  margin-top: 14px;
  width: fit-content;
}

.rex-admin-inline-form,
.rex-admin-bulk-form,
.rex-admin-tool {
  display: grid;
  gap: 10px;
}

.rex-admin-inline-form {
  grid-template-columns: 1fr 220px 120px auto;
  margin: 16px 0;
}

.rex-admin-inline-form.compact {
  grid-template-columns: minmax(0, 1fr) 180px auto;
}

.rex-admin-inline-form.referral-link-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.rex-admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 210px 210px 190px;
  gap: 10px;
  margin: 0 0 16px;
}

.rex-admin-tool {
  grid-template-columns: 1fr 120px;
}

.rex-admin-bulk-form {
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 122, 47, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}

.rex-admin-bulk-form div {
  display: grid;
  gap: 8px;
}

.rex-admin-bulk-form label {
  color: rgba(255, 242, 228, .70);
  font-weight: 800;
  font-size: 12px;
}

.rex-admin-tool button {
  grid-column: 1 / -1;
}

.rex-admin-inline-form input,
.rex-admin-inline-form select,
.rex-admin-filters input,
.rex-admin-filters select,
.rex-admin-bulk-form input,
.rex-admin-bulk-form textarea,
.rex-admin-tool input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 47, .22);
  background: rgba(0, 0, 0, .32);
  color: #fff;
  padding: 0 14px;
}

.rex-admin-inline-form select {
  appearance: none;
}

.rex-admin-filters select {
  appearance: none;
}

.agency-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.agency-admin-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.agency-admin-main strong {
  color: #fff2e4;
  font-size: 15px;
}

.agency-admin-main span {
  color: rgba(255, 242, 228, .58);
  overflow-wrap: anywhere;
}

.agency-admin-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.rex-admin-bulk-form textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

.rex-admin-inline-form button,
.rex-admin-bulk-form button,
.rex-admin-tool button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff7a1f, #d81836);
  cursor: pointer;
}

.rex-publisher-table td span {
  display: block;
  color: rgba(255, 242, 228, .58);
  margin-top: 4px;
}

.rex-publisher-table td .status-pill {
  display: inline-flex;
  margin-top: 0;
  vertical-align: middle;
}

.status-pill.muted {
  background: rgba(255, 242, 228, .10);
  color: rgba(255, 242, 228, .70);
}

.vla-server-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vla-server-filters {
  grid-template-columns: minmax(260px, 1fr) 240px;
}

.vla-server-table td {
  vertical-align: middle;
}

.vla-error-cell {
  max-width: 320px;
  color: rgba(255, 242, 228, .68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vla-log-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.vla-log-detail-btn span {
  display: inline-flex;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 122, 47, .18);
  color: #fff2e4;
  font-size: 10px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  flex: 0 0 auto;
  transform: translateY(0);
}

.vla-log-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 12, .72);
  backdrop-filter: blur(10px);
}

.vla-log-modal[hidden] {
  display: none;
}

.vla-log-modal-card {
  width: min(1080px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 47, .24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 24, 34, .98), rgba(14, 12, 18, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.vla-log-modal-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 242, 228, .10);
}

.vla-log-modal-card h2 {
  margin: 0;
}

.vla-log-modal-card p {
  margin: 4px 0 0;
  color: rgba(255, 242, 228, .62);
}

.vla-server-log-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-color: rgba(255, 122, 47, .65) rgba(255, 242, 228, .08);
}

.vla-server-log-list::-webkit-scrollbar {
  width: 10px;
}

.vla-server-log-list::-webkit-scrollbar-track {
  background: rgba(255, 242, 228, .08);
  border-radius: 999px;
}

.vla-server-log-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7a1f, #d81836);
  border-radius: 999px;
}

.vla-log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
  padding-top: 4px;
}

.vla-log-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 122, 47, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 242, 228, .72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vla-log-tabs button.active {
  border-color: rgba(255, 122, 47, .65);
  background: linear-gradient(135deg, rgba(255, 122, 47, .28), rgba(216, 24, 54, .18));
  color: #fff2e4;
}

.vla-log-tabs span {
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 122, 47, .18);
  color: #fff2e4;
  font-variant-numeric: tabular-nums;
}

.vla-log-line {
  display: grid;
  grid-template-columns: 150px minmax(160px, .8fr) 170px minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 242, 228, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.vla-log-line.warn,
.vla-log-line.error {
  border-color: rgba(255, 122, 47, .30);
  background: rgba(198, 19, 42, .10);
}

.vla-log-line span,
.vla-log-line em {
  color: rgba(255, 242, 228, .58);
  font-style: normal;
  font-size: 12px;
}

.vla-log-line strong {
  color: #fff2e4;
  overflow-wrap: anywhere;
}

.vla-log-line p {
  margin: 0;
  color: rgba(255, 242, 228, .78);
  overflow-wrap: anywhere;
}

.rex-mini-list {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 242, 228, .10);
  border-radius: 14px;
  background: rgba(255, 242, 228, .045);
}

.mini-row > span {
  color: rgba(255, 242, 228, .78);
}

.mini-row > b {
  color: #fff;
  text-align: right;
}

.mini-row.stacked {
  display: grid;
  justify-content: stretch;
}

.history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 0;
  color: rgba(255, 242, 228, .62);
  font-size: 12px;
  font-weight: 900;
}

.history-pagination > div {
  display: flex;
  gap: 8px;
}

.history-pagination button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

@media (max-width: 1280px) {
  .rex-stat-grid,
  .rex-stat-grid.admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rexpoint-admin-stats,
  .rex-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vla-server-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vla-log-line {
    grid-template-columns: 1fr 1fr;
  }

  .rex-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .rex-member-page,
  .rex-admin-page {
    grid-template-columns: 1fr;
  }

  .rex-panel-sidebar {
    position: relative;
    height: auto;
  }

  .rex-member-top,
  .rex-admin-top,
  .rex-action-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .rex-stat-grid,
  .rex-stat-grid.admin,
  .rex-performance-grid,
  .rex-grid-two,
  .rex-admin-grid,
  .rex-admin-inline-form,
  .rex-admin-filters,
  .vla-server-filters,
  .vla-log-line,
  .rex-admin-tool,
  .rex-profile-form-grid,
  .rex-import-flow,
  .rexpoint-rule-card,
  .rex-referral-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rex-member-main,
  .rex-admin-main {
    padding: 18px;
  }

  .rex-catalog-grid {
    grid-template-columns: 1fr;
  }

  .rexpoint-admin-stats,
  .rex-preview-grid {
    grid-template-columns: 1fr;
  }
}
