:root {
  color-scheme: dark;
  --accent: #ff4500;
  --accent-2: #ff7a1a;
  --accent-soft: rgba(255, 69, 0, 0.16);
  --success: #1fbf75;
  --info: #36a3ff;
  --warning: #ffb020;
  --danger: #ff4d5d;
  --radius: 8px;
  --radius-sm: 6px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
}

body[data-theme="dark"] {
  --bg: #090a0c;
  --bg-2: #101114;
  --panel: rgba(20, 21, 24, 0.92);
  --panel-strong: rgba(17, 18, 21, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f7f7f4;
  --muted: #a5a6aa;
  --subtle: #6f7178;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 26px rgba(255, 255, 255, 0.35), 0 0 52px rgba(255, 69, 0, 0.18);
  --field: rgba(9, 10, 12, 0.72);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f2;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-soft: rgba(255, 69, 0, 0.055);
  --text: #151515;
  --muted: #686b73;
  --subtle: #8b8f97;
  --border: rgba(24, 25, 28, 0.1);
  --shadow: 0 24px 70px rgba(28, 24, 18, 0.12);
  --glow: 0 0 20px rgba(255, 69, 0, 0.16);
  --field: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  transition: background-color 420ms ease, color 420ms ease;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 69, 0, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  background-size: 72px 72px, 72px 72px, auto;
  transition: background 420ms ease;
}

body[data-theme="dark"] .app-background::before,
body[data-theme="light"] .app-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(255, 69, 0, 0.12) 47%, rgba(255, 69, 0, 0.12) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(255, 69, 0, 0.08) 47%, rgba(255, 69, 0, 0.08) 53%, transparent 54%);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.5;
}

.light-flash {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: rgba(255, 246, 222, 0.9);
  opacity: 0;
}

.light-flash.is-on {
  animation: flashOn 620ms ease;
}

@keyframes flashOn {
  0% {
    opacity: 0;
  }
  24% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}

.dashboard-app {
  width: min(1480px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 34px;
}

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 4;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 26px;
  min-height: 74px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.admin-dashboard-app {
  width: calc(100% - 32px);
  max-width: none;
}

.admin-top-nav {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

.admin-nav-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-nav-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-copy strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(255, 69, 0, 0.4);
}

.brand-arrow {
  position: relative;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-bottom: 14px solid #fff;
}

.brand-arrow::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link,
.theme-chip,
.signup-button,
.icon-button,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: var(--radius-sm);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--panel-soft);
}

.nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-dot {
  position: absolute;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link.is-active .nav-dot {
  opacity: 1;
  transform: translateY(0);
}

.nav-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.alarm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.alarm-toggle.is-on {
  border-color: rgba(54, 163, 255, 0.48);
  background: rgba(54, 163, 255, 0.14);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(54, 163, 255, 0.14);
}

.bell-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 3px 3px;
}

.bell-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 6px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.chip-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 69, 0, 0.75);
}

body[data-theme="light"] .chip-light {
  background: var(--warning);
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.8);
}

.signup-button,
.primary-button {
  min-height: 42px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(255, 69, 0, 0.26);
}

.signup-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  padding-top: 24px;
}

.admin-page-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.section-stage {
  position: relative;
  min-height: calc(100vh - 156px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 69, 0, 0.08) 20% 20.5%, transparent 20.5%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
}

.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-state {
  color: var(--accent);
}

.section-content {
  min-height: calc(100vh - 220px);
  padding: 24px;
  transform-origin: calc(100% + 240px) 18%;
}

.section-content.is-contracting {
  animation: contractToMascot 520ms cubic-bezier(0.72, 0, 0.18, 1) forwards;
}

.section-content.is-expanding {
  animation: expandFromMascot 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes contractToMascot {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) scale(1);
  }
  65% {
    opacity: 0.76;
  }
  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(32vw, -8vh) scale(0.08) rotate(5deg);
  }
}

@keyframes expandFromMascot {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(30vw, -7vh) scale(0.08) rotate(-4deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) scale(1) rotate(0);
  }
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  align-items: stretch;
  gap: 18px;
}

.hero-copy {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.14), transparent 54%),
    var(--panel-soft);
  border: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: 4.2rem;
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: var(--glow);
}

.accent-word {
  color: var(--accent);
  text-shadow: 0 0 26px rgba(255, 69, 0, 0.36);
}

.hero-copy p {
  max-width: 650px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.secondary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font-weight: 800;
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(255, 69, 0, 0.45);
  transform: translateY(-1px);
}

.status-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 69, 0, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 69, 0, 0.86), rgba(255, 122, 26, 0.74)),
    repeating-linear-gradient(55deg, transparent 0 26px, rgba(0, 0, 0, 0.08) 26px 34px);
  color: #fff;
  overflow: hidden;
}

.status-tile span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-transform: uppercase;
}

.status-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 4.6rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.42);
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 76%;
  border-radius: inherit;
  background: #fff;
}

.referral-promo-card {
  margin-top: 18px;
  padding: 20px 28px 16px;
  border: 1px solid rgba(255, 69, 0, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.13), rgba(255, 255, 255, 0.04)),
    var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.referral-promo-card h2 {
  font-size: 1.55rem;
  line-height: 1.2;
}

.referral-promo-card p {
  max-width: 980px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.referral-promo-card mark {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 69, 0, 0.18);
  color: var(--accent);
  font-weight: 900;
}

.referral-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.referral-inline-link:hover {
  color: var(--accent);
}

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

.stat-card,
.action-card,
.section-card,
.table-panel,
.form-panel,
.history-panel,
.settings-panel,
.ticket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.11);
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 18px solid var(--accent-soft);
}

.stat-card span,
.action-card span,
.section-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2.3rem;
  line-height: 1;
}

.stat-card small {
  display: inline-flex;
  margin-top: 14px;
  color: var(--success);
  font-weight: 800;
}

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.section-card,
.table-panel,
.form-panel,
.history-panel,
.settings-panel {
  padding: 20px;
}

.section-card h2,
.table-panel h2,
.form-panel h2,
.history-panel h2,
.settings-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.activity-list,
.transaction-list,
.ticket-list {
  display: grid;
  gap: 12px;
}

.activity-item,
.transaction-row,
.ticket-card,
.setting-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.activity-item {
  grid-template-columns: 38px minmax(0, 1fr) max-content;
}

.activity-icon,
.nav-icon,
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.activity-item strong,
.transaction-row strong,
.ticket-card strong {
  display: block;
  font-size: 0.94rem;
}

.activity-item p,
.transaction-row span,
.ticket-card span,
.setting-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.amount-positive {
  color: var(--success);
  font-weight: 900;
}

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

.action-card {
  min-height: 116px;
  padding: 16px;
  text-align: left;
  color: var(--text);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 69, 0, 0.36);
}

.action-card strong {
  display: block;
  margin-top: 22px;
  font-size: 1rem;
}

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

.section-heading h1 {
  font-size: 3.2rem;
}

.section-heading p {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.65;
}

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

.search-input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  outline: 0;
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  min-height: 114px;
  resize: vertical;
  padding-top: 12px;
}

.search-input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 69, 0, 0.58);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
}

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

.mock-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-table td {
  color: var(--text);
  font-size: 0.92rem;
}

.table-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.table-link-button:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

.table-link-button.is-last-clicked {
  color: var(--info);
  text-shadow: 0 0 18px rgba(54, 163, 255, 0.26);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.pending {
  background: var(--warning);
  color: #201400;
}

.status-pill.processing {
  background: var(--info);
}

.status-pill.completed {
  background: var(--success);
}

.status-pill.danger {
  background: var(--danger);
}

.buy-layout,
.wallet-layout,
.referral-layout,
.support-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 18px;
}

.referral-layout {
  grid-template-columns: minmax(0, 1fr);
}

.referral-hero-card {
  display: grid;
  gap: 16px;
}

.referral-hero-card h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.referral-hero-card p {
  max-width: 860px;
  color: var(--muted);
  font-weight: 650;
}

.referral-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: end;
}

.referral-metrics {
  margin-top: 0;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field > span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 69, 0, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.22), transparent 54%),
    var(--panel-strong);
}

.price-card h2 {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
}

.price-card strong {
  font-size: 3.4rem;
  line-height: 1;
}

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

.price-list div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.price-list div:last-child {
  border-bottom: 0;
}

.price-promo-note {
  padding: 12px 14px;
  border: 1px solid rgba(255, 69, 0, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 69, 0, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.price-promo-note b {
  color: var(--accent);
}

.price-promo-note s {
  color: var(--muted);
}

.wallet-balance {
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 191, 117, 0.28), transparent 58%),
    var(--panel-strong);
  border: 1px solid rgba(31, 191, 117, 0.28);
}

.wallet-balance span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-balance strong {
  display: block;
  margin: 16px 0 24px;
  font-size: 4rem;
  line-height: 1;
}

.wallet-upvote-capacity {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.wallet-upvote-capacity b {
  color: var(--text);
}

.wallet-bonus-note {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 69, 0, 0.32);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.wallet-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.transaction-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.ticket-card {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.ticket-card-button {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
}

.ticket-card-button:hover {
  border-color: rgba(255, 69, 0, 0.38);
  transform: translateY(-1px);
}

.ticket-detail {
  display: grid;
  gap: 16px;
}

.ticket-detail .status-pill {
  width: fit-content;
}

.ticket-detail-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.ticket-detail-block span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-detail-block p {
  margin-top: 8px;
  white-space: pre-wrap;
}

.link-preview {
  word-break: break-word;
}

.setting-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--border);
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.switch.off {
  background: var(--subtle);
}

.switch.off::after {
  right: auto;
  left: 4px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.feature-mini strong {
  display: block;
}

.feature-mini span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-bento {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "pending inspector inspector"
    "users wallet support";
  grid-template-rows: minmax(0, clamp(470px, calc(100vh - 255px), 627px)) minmax(0, 394px);
  gap: 16px;
  min-height: 0;
  align-items: stretch;
}

.admin-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.08), transparent 44%),
    var(--panel-strong);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.admin-users-card {
  grid-area: users;
}

.admin-details-card {
  grid-area: inspector;
}

.admin-deposits-card {
  grid-area: wallet;
}

.admin-support-card {
  grid-area: support;
}

.admin-pending-users-card {
  grid-area: pending;
}

.admin-card-header,
.admin-thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-card-header h2 {
  margin: 2px 0 0;
  font-size: 1.12rem;
}

.admin-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-count,
.admin-chip,
.admin-balance-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 10px;
}

.admin-balance-chip {
  color: var(--success);
}

.admin-search-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.admin-search-wrap .admin-search {
  margin: 0;
  padding-right: 96px;
}

.admin-search-filter {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  min-width: 72px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.admin-search-filter.is-active {
  border-color: rgba(54, 163, 255, 0.5);
  background: rgba(54, 163, 255, 0.14);
  color: var(--info);
}

.admin-scroll {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  padding-right: 4px;
}

.admin-user-list {
  max-height: none;
}

.admin-approval-list,
.admin-ticket-list,
.admin-detail-scroll,
.admin-pending-user-list {
  max-height: none;
}

.admin-card > .admin-empty {
  flex: 1 1 auto;
  min-height: 0;
}

.admin-list-row,
.admin-compact-row,
.admin-approval-row {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
}

.admin-list-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  margin-bottom: 10px;
}

.admin-list-row:hover,
.admin-list-row.is-selected {
  border-color: rgba(255, 69, 0, 0.48);
  background: var(--accent-soft);
}

.admin-list-row strong,
.admin-compact-row strong,
.admin-approval-row strong,
.admin-thread-header strong {
  display: block;
}

.admin-list-row span,
.admin-compact-row span,
.admin-approval-row span,
.admin-thread-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.admin-user-summary strong {
  display: block;
  font-size: 1.4rem;
}

.admin-user-summary span {
  color: var(--muted);
}

.admin-summary-grid,
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary-grid span,
.admin-metric-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-summary-grid b,
.admin-metric-card strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tabs.compact {
  margin-bottom: 12px;
}

.admin-tab {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: capitalize;
}

.admin-tab.is-active {
  border-color: rgba(255, 69, 0, 0.45);
  background: var(--accent);
  color: #fff;
}

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

.admin-repair-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 69, 0, 0.22);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--panel-soft));
}

.admin-repair-note strong,
.admin-repair-note span {
  display: block;
}

.admin-repair-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-repair-note.is-stable {
  border-color: var(--border);
  background: var(--panel-soft);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 780px;
}

.admin-compact-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  margin-bottom: 10px;
}

.admin-approval-row {
  grid-template-columns: minmax(0, 1fr) 150px;
  margin-bottom: 10px;
}

.admin-approval-main p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-approval-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.admin-approval-side b {
  font-size: 1.35rem;
}

.admin-action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.admin-action-stack {
  display: grid;
  gap: 6px;
  min-width: 132px;
}

.primary-button.tiny,
.secondary-button.tiny {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.admin-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}

.admin-ticket-thread {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
  padding: 12px;
}

.admin-message-list {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  max-height: none;
  min-height: 0;
  margin-bottom: 12px;
}

.admin-message {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
}

.admin-message.is-admin {
  border-color: rgba(255, 69, 0, 0.34);
  background: var(--accent-soft);
}

.admin-message p {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-reply-form {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.admin-reply-form textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  padding: 12px;
  resize: vertical;
}

.admin-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.mascot-panel {
  position: sticky;
  top: 114px;
  align-self: start;
  min-height: calc(100vh - 146px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.rope-control {
  position: absolute;
  top: 0;
  right: 62px;
  z-index: 2;
  width: 74px;
  height: 188px;
  pointer-events: none;
}

.rope-button {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.rope-line {
  position: absolute;
  top: 0;
  left: 36px;
  width: 3px;
  height: 138px;
  border-radius: 999px;
  background: linear-gradient(#f4dfb0, #b98738);
  transform-origin: top;
}

.rope-knot {
  position: absolute;
  top: 126px;
  left: 29px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #d8a34f;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.rope-handle {
  position: absolute;
  top: 143px;
  left: 22px;
  width: 31px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(255, 69, 0, 0.36);
}

.mascot-panel.is-pulling .rope-line,
.mascot-panel.is-pulling .rope-knot,
.mascot-panel.is-pulling .rope-handle {
  animation: ropePull 560ms cubic-bezier(0.36, 0, 0.2, 1);
}

@keyframes ropePull {
  0%,
  100% {
    transform: translateY(0);
  }
  42%,
  58% {
    transform: translateY(28px);
  }
}

.mascot-scene {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 69, 0, 0.08), transparent 70%),
    var(--panel-soft);
}

.portal-pattern {
  position: absolute;
  right: -74px;
  bottom: -94px;
  width: 360px;
  height: 360px;
  border-radius: 50% 50% 8px 8px;
  background:
    repeating-linear-gradient(68deg, transparent 0 34px, rgba(20, 20, 20, 0.1) 34px 44px),
    linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), 0 0 52px rgba(255, 69, 0, 0.24);
}

.portal-pattern::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: inherit;
}

.mascot {
  position: absolute;
  right: 34px;
  bottom: 20px;
  width: 260px;
  height: 285px;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.28));
  transform-origin: 54% 88%;
}

.mascot-panel.is-pulling .mascot {
  animation: mascotTug 560ms ease;
}

.mascot-panel.is-pulling-section .mascot {
  animation: sectionTug 650ms ease;
}

@keyframes mascotTug {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  42% {
    transform: rotate(-4deg) translateY(8px);
  }
}

@keyframes sectionTug {
  0%,
  100% {
    transform: rotate(0deg) translateX(0);
  }
  44% {
    transform: rotate(5deg) translateX(-12px);
  }
}

.mascot-head {
  position: absolute;
  left: 35px;
  top: 42px;
  width: 190px;
  height: 145px;
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(160deg, #f9ffff 0%, #e7fbff 58%, #d7eef7 100%);
  box-shadow: inset -18px -22px 34px rgba(69, 154, 191, 0.18), inset 10px 12px 24px rgba(255, 255, 255, 0.9);
}

.mascot-ear {
  position: absolute;
  top: 82px;
  width: 50px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(155deg, #f6ffff, #d8edf6);
}

.mascot-ear-left {
  left: 6px;
}

.mascot-ear-right {
  right: 10px;
}

.mascot-antenna {
  position: absolute;
  left: 128px;
  top: 14px;
  width: 76px;
  height: 64px;
  border-top: 6px solid #eafaff;
  border-right: 6px solid #eafaff;
  border-radius: 50%;
  transform: rotate(20deg);
}

.mascot-orb {
  position: absolute;
  left: 184px;
  top: 8px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #bfe5f2);
  box-shadow: inset -8px -10px 16px rgba(30, 100, 140, 0.12);
}

.mascot-eye {
  position: absolute;
  top: 58px;
  width: 48px;
  height: 38px;
  border-radius: 48% 48% 52% 52%;
  background: radial-gradient(circle at 66% 28%, #ffcf54 0 12%, transparent 13%), linear-gradient(135deg, #ff4e00, #d82b00);
  box-shadow: inset 0 0 0 4px rgba(100, 24, 0, 0.24);
}

.mascot-eye-left {
  left: 38px;
}

.mascot-eye-right {
  right: 38px;
}

.mascot-smile {
  position: absolute;
  left: 66px;
  top: 100px;
  width: 62px;
  height: 18px;
  border-bottom: 4px solid #191919;
  border-radius: 50%;
}

.mascot-body {
  position: absolute;
  left: 72px;
  bottom: 4px;
  width: 126px;
  height: 126px;
  border-radius: 48% 48% 20px 20px;
  background: linear-gradient(160deg, #f8ffff, #dceff5);
  box-shadow: inset -16px -18px 24px rgba(81, 145, 174, 0.16);
}

.mascot-arm {
  position: absolute;
  bottom: 64px;
  width: 60px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(160deg, #f8ffff, #dceff5);
}

.mascot-arm-left {
  left: 34px;
  transform: rotate(-42deg);
}

.mascot-arm-right {
  right: 20px;
  transform: rotate(-18deg);
}

.mascot-hand {
  position: absolute;
  right: 28px;
  bottom: 74px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #dceff5);
  box-shadow: inset -6px -8px 12px rgba(81, 145, 174, 0.16);
}

.mascot-copy {
  padding: 24px 24px 0;
}

.mascot-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mascot-copy h2 {
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1.1;
  text-shadow: var(--glow);
}

.mascot-copy p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 24px 24px;
}

.mini-stats div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(12px);
  animation: modalFade 180ms ease;
}

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

.deposit-modal,
.auth-modal,
.ticket-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.16), transparent 48%),
    var(--panel-strong);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.54);
  padding: 26px;
  animation: modalRise 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal {
  width: min(560px, 100%);
  padding: 0;
}

.ticket-modal {
  width: min(560px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.modal-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.modal-step-indicator {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-modal h2,
.auth-modal h2,
.ticket-modal h2 {
  margin-top: 18px;
  font-size: 2rem;
  line-height: 1.1;
  text-shadow: var(--glow);
}

.deposit-modal p,
.auth-modal p,
.ticket-modal p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-header {
  padding: 30px 30px 18px;
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 900;
}

.auth-logo span {
  color: var(--accent);
}

.auth-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 22px 0 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 69, 0, 0.24);
}

.auth-body {
  padding: 26px 30px 30px;
  border-top: 1px solid var(--border);
}

.auth-title-block {
  margin-bottom: 22px;
  text-align: center;
}

.auth-title-block h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.auth-title-block p {
  margin-top: 6px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

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

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.auth-link-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.google-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  font-weight: 900;
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.auth-status {
  min-height: 22px;
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.auth-status.is-error {
  color: var(--danger);
}

.deposit-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.deposit-input-wrap {
  position: relative;
}

.deposit-input-wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--accent);
  font-weight: 900;
  transform: translateY(-50%);
}

.deposit-input-wrap input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  outline: 0;
  padding: 0 16px 0 36px;
  font-size: 1.2rem;
  font-weight: 800;
}

.deposit-input-wrap input:focus {
  border-color: rgba(255, 69, 0, 0.58);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-error.is-success {
  color: var(--success);
}

.manual-note,
.pending-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pending-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-color: rgba(255, 176, 32, 0.34);
  background: rgba(255, 176, 32, 0.1);
  color: var(--text);
}

.pending-note::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 14px rgba(255, 176, 32, 0.7);
}

.deposit-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 69, 0, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 69, 0, 0.12), transparent 62%),
    var(--panel-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-row strong {
  color: var(--text);
  text-align: right;
}

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

.modal-actions .primary-button,
.modal-actions .secondary-button {
  flex: 1 1 180px;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.empty-note {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .dashboard-app {
    width: min(100% - 26px, 1040px);
  }

  .top-nav {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-meta {
    justify-content: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "pending inspector"
      "users inspector"
      "wallet support";
    grid-template-rows: minmax(0, 358px) minmax(0, 358px) minmax(0, 403px);
  }

  .admin-users-card,
  .admin-details-card {
    grid-row: auto;
  }

  .mascot-panel {
    position: relative;
    top: 0;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) 1fr;
  }

  .mascot-scene {
    min-height: 360px;
  }

  .mascot-copy,
  .mini-stats {
    align-self: center;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 3rem;
  }

  .dashboard-hero,
  .panel-row,
  .buy-layout,
  .wallet-layout,
  .referral-layout,
  .support-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .referral-copy-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-summary,
  .admin-support-grid,
  .admin-approval-row {
    grid-template-columns: 1fr;
  }

  .admin-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pending"
      "users"
      "inspector"
      "wallet"
      "support";
    grid-template-rows: auto;
  }

  .admin-card {
    height: auto;
    min-height: 358px;
  }

  .admin-approval-side {
    justify-items: start;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .mock-table {
    min-width: 760px;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .dashboard-app {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .top-nav {
    top: 8px;
    gap: 14px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-link {
    min-width: max-content;
    padding: 0 12px;
  }

  .section-content {
    min-height: auto;
    padding: 16px;
  }

  .hero-copy {
    padding: 20px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .stats-grid,
  .quick-actions,
  .feature-strip,
  .form-grid,
  .admin-summary-grid,
  .admin-metric-grid,
  .mascot-panel {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .transaction-row,
  .ticket-card,
  .summary-row,
  .setting-row {
    grid-template-columns: 1fr;
  }

  .summary-row {
    display: grid;
  }

  .summary-row strong {
    text-align: left;
  }

  .deposit-modal,
  .auth-modal,
  .ticket-modal {
    padding: 22px 18px;
  }

  .auth-modal {
    padding: 0;
  }

  .auth-header,
  .auth-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-name-grid {
    grid-template-columns: 1fr;
  }

  .mascot {
    right: 10px;
    transform: scale(0.88);
  }

  .portal-pattern {
    right: -110px;
  }

  .rope-control {
    right: 34px;
  }

  @keyframes contractToMascot {
    0% {
      opacity: 1;
      filter: blur(0);
      transform: translate(0, 0) scale(1);
    }
    100% {
      opacity: 0;
      filter: blur(8px);
      transform: translate(14vw, 22vh) scale(0.08) rotate(5deg);
    }
  }

  @keyframes expandFromMascot {
    0% {
      opacity: 0;
      filter: blur(8px);
      transform: translate(14vw, 22vh) scale(0.08) rotate(-4deg);
    }
    100% {
      opacity: 1;
      filter: blur(0);
      transform: translate(0, 0) scale(1) rotate(0);
    }
  }
}
