:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --border: #e9edf3;
  --border-strong: #dfe5ee;
  --text: #172033;
  --muted: #6e7787;
  --subtle: #98a2b3;
  --brand: #08111f;
  --accent: #020a15;
  --accent-soft: #eef2f7;
  --blue: #2b6df6;
  --danger: #e04646;
  --green: #20a06b;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

button:active,
.button:active,
.menu-item:active {
  transform: translateY(1px) scale(0.99);
}

::selection {
  color: #fff;
  background: #111827;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 26px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.brand-name {
  font-size: 18px;
}

.top-links {
  display: none;
}

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

.muted-link,
.top-link-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.muted-link:hover,
.top-link-button:hover {
  color: var(--text);
}

.user-menu {
  position: relative;
}

.user-trigger {
  min-width: 214px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.user-trigger:hover,
.user-menu.open .user-trigger {
  border-color: var(--border);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.user-avatar.large {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.user-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.user-email {
  max-width: 130px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid #8b95a5;
  border-bottom: 1.5px solid #8b95a5;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.user-menu.open .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dropdown-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dropdown-profile strong,
.dropdown-profile small {
  display: block;
}

.dropdown-profile strong {
  font-size: 14px;
}

.dropdown-profile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.dropdown-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: #f4f6f9;
  color: var(--text);
  transform: translateX(2px);
}

.dropdown-item.logout {
  color: var(--danger);
}

.logout-banner {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #d8eadf;
  border-radius: 8px;
  color: #136847;
  background: #f1fbf5;
}

.logout-banner.show {
  display: flex;
}

.logout-banner::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  padding: 18px 14px 20px;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.menu {
  flex: 1;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-heading {
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.menu-heading::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid #9aa3b2;
  border-bottom: 1.6px solid #9aa3b2;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.menu-heading:hover {
  color: var(--text);
  background: #f7f9fb;
}

.menu-heading:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.menu-section:not(.is-open) .menu-heading::after {
  transform: rotate(-45deg);
}

.menu-items {
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.menu-section:not(.is-open) .menu-items {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.settings-icon {
  border: 2px solid #111827;
  border-radius: 50%;
}

.settings-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #111827;
}

.billing-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 4px;
}

.billing-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 1.8px solid #9aa3b2;
}

.subscribe-icon {
  border-radius: 4px;
  background: linear-gradient(135deg, #a3adb9, #687386);
}

.notification-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 8px 8px 5px 5px;
}

.notification-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa3b2;
}

.menu-item {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  margin: 2px 0 2px 30px;
  padding: 0 14px;
  color: #626b7b;
  border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}

.menu-item:hover {
  color: var(--text);
  background: #f4f6f9;
  transform: translateX(2px);
}

.menu-item.active {
  color: var(--accent);
  background: #eef1f5;
  font-weight: 600;
}

.menu-item.active::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #111827;
}

.button.dark:hover,
.login-submit:hover {
  background: #172033;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.16);
}

.community {
  margin-top: 8px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.community-quote {
  max-width: 210px;
  margin: 16px auto 0;
  padding: 0 12px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.qr-image {
  width: 92px;
  height: 92px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.community-caption {
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 34px 42px 48px;
}

.content:focus {
  outline: none;
}

.page {
  max-width: 1120px;
  animation: pageIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.section-card {
  padding: 24px;
  margin-bottom: 18px;
}

.section-card:hover,
.metric:hover,
.plan-card:hover {
  border-color: #d7dee9;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.card-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.field-list {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
}

.field-label {
  color: var(--muted);
}

.field-value {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6a7280;
  background: #f0f2f5;
  font-size: 13px;
}

.action-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.action-link.danger {
  color: var(--danger);
}

.action-link.is-copied {
  color: var(--green);
}

.action-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.verified-note {
  color: var(--green);
  font-weight: 700;
}

.enterprise-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.enterprise-summary strong {
  font-weight: 700;
}

.button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  border-color: #cfd7e3;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.button.dark {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.ghost {
  background: var(--panel-soft);
}

.button.danger {
  color: var(--danger);
  border-color: #f0c8c8;
  background: #fffafa;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.select-box {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.select-box:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
}

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

.modal {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  background: #f8fafc;
}

.enterprise-modal {
  width: min(100%, 520px);
}

.password-form,
.enterprise-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 8px;
  color: #3f4959;
  background: #f5f7fb;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.callout-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: #4a5568;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.table-empty {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.pagination-meta,
.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination-total,
.pagination-page {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.pagination-total {
  color: var(--muted);
  white-space: nowrap;
}

.pagination-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pagination-page {
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel-soft);
  font-weight: 700;
  white-space: nowrap;
}

.pagination-button {
  min-width: 92px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap !important;
}

.pagination-button:hover {
  border-color: #b8c6d9;
  color: var(--blue);
  background: #f7faff;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
}

.pagination-button:focus-visible {
  outline: 3px solid rgba(43, 109, 246, 0.18);
  outline-offset: 2px;
}

.pagination-arrow {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 0.75;
}

.pagination-button:disabled {
  cursor: not-allowed;
  color: var(--subtle);
  background: #f8fafc;
  border-color: var(--border);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.empty-graphic {
  width: 72px;
  height: 58px;
  border: 2px solid #dce2ea;
  border-radius: 10px;
  background:
    linear-gradient(#dce2ea, #dce2ea) 18px 20px / 36px 2px no-repeat,
    linear-gradient(#dce2ea, #dce2ea) 24px 30px / 24px 2px no-repeat,
    #fff;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.metric-label {
  color: var(--muted);
  margin-bottom: 14px;
}

.metric-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
}

.metric-note {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 13px;
}

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

.plan-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.plan-card.featured {
  border-color: #101828;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.09);
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin: 18px 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.plan-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  color: #475467;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.notice-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f0f2f5;
}

.notice-tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.notice-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.login-body {
  min-height: 100vh;
  background: #f5f7fb;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 42vw) minmax(0, 1fr);
  background: #fff;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 42px;
  background: #fff;
  border-right: 1px solid var(--border);
  animation: loginPanelIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
}

.login-card {
  width: min(100%, 390px);
  margin: auto;
  padding: 14px 0 54px;
  animation: loginCardIn 0.52s 0.04s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.welcome-kicker {
  margin-bottom: 28px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #475467;
  font-weight: 600;
}

.login-field em {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.login-field input {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-field input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #020a15;
  cursor: pointer;
  font-weight: 700;
}

.login-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.login-submit:active {
  transform: translateY(1px) scale(0.99);
}

.form-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-message.info {
  color: var(--muted);
}


.login-showcase {
  min-height: 100vh;
  padding: 44px;
  background:
    radial-gradient(circle at 82% 12%, rgba(68, 86, 118, 0.12), transparent 34%),
    linear-gradient(135deg, #f7f9fc 0%, #edf1f7 100%);
  overflow: hidden;
  animation: showcaseIn 0.54s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.showcase-inner {
  max-width: 760px;
  margin: 0 auto;
}

.showcase-eyebrow {
  margin: 38px 0 12px;
  color: #475467;
  font-weight: 750;
}

.showcase-inner h1 {
  max-width: 620px;
  margin: 0;
  color: #101828;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
}

.showcase-subtitle {
  margin: 16px 0 28px;
  color: #667085;
  font-size: 16px;
}

.leaderboard-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(245px, 1fr));
  gap: 16px;
  align-items: start;
}

.leaderboard-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(222, 228, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 35px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(14px);
  animation: cardFloatIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.leaderboard-card:nth-child(2) {
  margin-top: 36px;
  animation-delay: 0.08s;
}

.leaderboard-card:nth-child(3) {
  margin-top: 72px;
  animation-delay: 0.16s;
}

.leaderboard-card:hover {
  border-color: rgba(199, 208, 222, 0.95);
  box-shadow: 0 22px 46px rgba(16, 24, 40, 0.12);
  transform: translateY(-4px);
}

.leaderboard-head {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.leaderboard-head span {
  color: #101828;
  font-weight: 800;
}

.leaderboard-head small,
.model-row small {
  color: var(--muted);
}

.model-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eef1f5;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.model-row.featured {
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #f4f7fb;
  margin-bottom: 4px;
}

.model-row:not(.featured):hover {
  background: rgba(244, 247, 251, 0.68);
  transform: translateX(2px);
}

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

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.model-row strong,
.model-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-row strong {
  font-size: 13px;
}

.model-row b {
  font-size: 15px;
}

.model-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.model-logo.moon {
  background: #6d7bff;
}

.model-logo.blue {
  background: #2b6df6;
}

.model-logo.dark {
  background: #101828;
}

.model-logo.google {
  background: #34a853;
}

.model-logo.red {
  background: #f04438;
}

.model-logo.seed {
  background: #7a5af8;
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px;
  }

  .topbar-right {
    flex: 0 0 auto;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .top-links {
    gap: 14px;
  }

  .user-trigger {
    min-width: 188px;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 112px);
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 24px 18px 40px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .balance-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .pagination-meta,
  .pagination-actions {
    flex-shrink: 1;
  }

  .pagination-button {
    min-width: 0;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: auto;
    padding: 22px 18px 36px;
    border-right: 0;
  }

  .login-card {
    margin: 48px auto 0;
  }

  .login-showcase {
    min-height: auto;
    padding: 28px 18px 40px;
  }

  .showcase-inner h1 {
    font-size: 34px;
  }

  .leaderboard-stack {
    grid-template-columns: 1fr;
  }

  .leaderboard-card:nth-child(2),
  .leaderboard-card:nth-child(3) {
    margin-top: 0;
  }
}
