:root {
  color-scheme: dark;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --bg: #07111f;
  --bg-soft: #0d1830;
  --bg-elevated: rgba(15, 26, 49, 0.82);
  --page-gradient:
    radial-gradient(circle at 12% 14%, rgba(92, 140, 255, 0.26), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(41, 211, 198, 0.2), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(255, 171, 112, 0.16), transparent 20%),
    linear-gradient(145deg, #06101d 0%, #0b1731 48%, #07101d 100%);
  --grid-line: rgba(255, 255, 255, 0.035);
  --card: rgba(13, 23, 45, 0.72);
  --card-strong: rgba(15, 28, 54, 0.9);
  --card-soft: rgba(255, 255, 255, 0.05);
  --card-softer: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.11);
  --card-border-strong: rgba(137, 166, 255, 0.32);
  --text: #edf4ff;
  --text-soft: #cad7ee;
  --text-muted: #9cb0d1;
  --text-subtle: #7d94ba;
  --accent: #6c8bff;
  --accent-strong: #29d3c6;
  --accent-warm: #ffab70;
  --success: #2bcf9d;
  --danger: #ff738c;
  --shadow-lg: 0 24px 60px rgba(3, 10, 25, 0.42);
  --shadow-md: 0 18px 36px rgba(3, 10, 25, 0.24);
  --shadow-sm: 0 10px 24px rgba(3, 10, 25, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb;
  --bg-soft: #f7faff;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --page-gradient:
    radial-gradient(circle at 8% 10%, rgba(108, 139, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(41, 211, 198, 0.16), transparent 22%),
    radial-gradient(circle at 82% 82%, rgba(255, 171, 112, 0.16), transparent 18%),
    linear-gradient(145deg, #f4f7fc 0%, #edf3fb 44%, #f9fbff 100%);
  --grid-line: rgba(31, 52, 89, 0.06);
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.98);
  --card-soft: rgba(17, 24, 39, 0.035);
  --card-softer: rgba(17, 24, 39, 0.028);
  --card-border: rgba(42, 59, 89, 0.11);
  --card-border-strong: rgba(108, 139, 255, 0.24);
  --text: #112037;
  --text-soft: #223654;
  --text-muted: #59708f;
  --text-subtle: #7488a4;
  --accent: #4c70f7;
  --accent-strong: #0ea59b;
  --accent-warm: #f1884f;
  --success: #16956f;
  --danger: #d54867;
  --shadow-lg: 0 26px 58px rgba(46, 74, 117, 0.16);
  --shadow-md: 0 16px 32px rgba(46, 74, 117, 0.12);
  --shadow-sm: 0 10px 22px rgba(46, 74, 117, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--page-gradient);
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 94%);
}

img {
  display: block;
  max-width: 100%;
}

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

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

::selection {
  background: rgba(108, 139, 255, 0.24);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.78;
  pointer-events: none;
  animation: ambient-drift 15s ease-in-out infinite;
}

.ambient-one {
  top: 5%;
  left: 3%;
  width: 280px;
  height: 280px;
  background: rgba(108, 139, 255, 0.22);
}

.ambient-two {
  right: 8%;
  bottom: 8%;
  width: 340px;
  height: 340px;
  background: rgba(255, 171, 112, 0.14);
  animation-delay: -5s;
}

.ambient-three {
  top: 26%;
  right: 4%;
  width: 260px;
  height: 260px;
  background: rgba(41, 211, 198, 0.14);
  animation-delay: -8s;
}

.glass-card,
.glass-subcard {
  border: 1px solid var(--card-border);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.glass-card {
  background: var(--card);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
}

.glass-subcard {
  background: var(--card-softer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.glass-card:hover,
.submit-card:hover,
.recent-card:hover,
.auth-card:hover,
.settings-card:hover,
.settings-preview-panel:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 500px);
  padding: 34px;
  border-radius: var(--radius-xl);
  animation: pop-rise 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-row,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-row {
  margin-bottom: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 0.98), rgba(41, 211, 198, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 34px rgba(69, 93, 181, 0.32);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong {
  color: var(--text);
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.intro-text,
.helper-copy,
.micro-copy,
.summary-note,
.table-empty,
.report-item p,
.empty-state p,
.sidebar-bio,
.preview-bio,
.upload-hint {
  color: var(--text-muted);
  line-height: 1.68;
}

.stack-form,
.create-account-form,
.settings-stack,
.recent-list,
.analytics-stack,
.account-list {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-span {
  grid-column: 1 / -1;
}

.field-label,
.helper-title,
.user-pill-label,
.search-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea,
.amount-wrap,
.search-shell input,
.input-shell {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-soft);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.field input,
.field select {
  min-height: 56px;
  padding: 0 18px;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  padding: 16px 18px;
}

.field input::placeholder,
.field textarea::placeholder,
.search-shell input::placeholder {
  color: var(--text-subtle);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-shell input:focus,
.amount-wrap:focus-within,
.input-shell:focus-within {
  transform: translateY(-1px);
  border-color: var(--card-border-strong);
  background: var(--card-strong);
  box-shadow:
    0 0 0 4px rgba(108, 139, 255, 0.12),
    var(--shadow-sm);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 25px,
    calc(100% - 16px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  color: #101827;
}

.field-footnote,
.save-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.amount-wrap {
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.amount-prefix {
  color: var(--accent-strong);
  font-size: 1.1rem;
  font-weight: 800;
}

.amount-wrap input {
  height: 56px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}

.input-shell input {
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.input-action {
  min-width: 64px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(108, 139, 255, 0.14);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.input-action:hover {
  transform: translateY(-1px);
  background: rgba(108, 139, 255, 0.2);
}

.primary-button,
.ghost-button,
.danger-button {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    opacity 0.22s ease;
}

.primary-button {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 0.98), rgba(41, 211, 198, 0.96));
  box-shadow:
    0 18px 34px rgba(70, 91, 173, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ghost-button {
  color: var(--text);
  background: var(--card-soft);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.danger-button {
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--danger) 92%, #ff8ea3 8%), color-mix(in srgb, var(--danger) 80%, #8b112d 20%));
  box-shadow:
    0 16px 30px color-mix(in srgb, var(--danger) 28%, transparent 72%),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow:
    0 22px 38px rgba(70, 91, 173, 0.34),
    0 0 24px rgba(41, 211, 198, 0.12);
}

.ghost-button:hover {
  border-color: var(--card-border-strong);
  background: var(--card-strong);
}

.danger-button:hover {
  box-shadow:
    0 20px 36px color-mix(in srgb, var(--danger) 32%, transparent 68%),
    0 0 24px color-mix(in srgb, var(--danger) 18%, transparent 82%);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.error-button-link,
.quick-submit-button,
.create-account-form .primary-button {
  width: 100%;
}

.helper-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.remember-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 4px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.remember-toggle-input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent-strong);
  flex: 0 0 auto;
}

.remember-toggle-copy {
  display: grid;
  gap: 2px;
}

.remember-toggle-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.remember-toggle-copy small {
  color: var(--text-subtle);
  line-height: 1.45;
}

.alert {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  animation: float-in 0.36s ease;
}

.alert-success {
  background: rgba(43, 207, 157, 0.12);
  border-color: rgba(43, 207, 157, 0.2);
  color: color-mix(in srgb, var(--success) 72%, white 28%);
}

.alert-info {
  background: rgba(108, 139, 255, 0.12);
  border-color: rgba(108, 139, 255, 0.22);
  color: color-mix(in srgb, #8fb0ff 76%, white 24%);
}

.alert-error {
  background: rgba(255, 115, 140, 0.12);
  border-color: rgba(255, 115, 140, 0.2);
  color: color-mix(in srgb, var(--danger) 74%, white 26%);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 24, 0.58);
  backdrop-filter: blur(14px);
}

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

.modal-card {
  width: min(100%, 500px);
  padding: 24px;
  border-radius: 26px;
}

.modal-card-danger {
  border-color: color-mix(in srgb, var(--danger) 24%, var(--card-border) 76%);
}

.modal-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-row-between {
  justify-content: space-between;
}

code {
  font-family: var(--font-ui);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
}

.avatar-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 1), rgba(41, 211, 198, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(70, 91, 173, 0.26);
}

.avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-shell span {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.avatar-shell-sm {
  width: 48px;
  height: 48px;
}

.avatar-shell-md {
  width: 58px;
  height: 58px;
}

.avatar-shell-xl {
  width: 126px;
  height: 126px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 26px;
}

.topbar-actions,
.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.user-pill-profile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.search-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-shell input {
  width: 280px;
  min-height: 48px;
  padding: 0 16px;
}

.admin-badge {
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.admin-badge span,
.sidebar-profile-copy span,
.account-row span,
.table-empty,
.report-table-head,
.report-row-meta,
.report-meta span,
.info-chip span,
.account-status,
.compact-clock span,
.analytics-metric span,
.summary-label {
  color: var(--text-muted);
}

.admin-badge strong {
  display: block;
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 20px;
  margin-top: 20px;
}

.submit-card,
.recent-card,
.reports-panel,
.analytics-panel,
.accounts-panel,
.settings-card,
.settings-preview-panel {
  padding: 22px;
  border-radius: 26px;
}

.section-heading,
.panel-head,
.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.compact-panel-head {
  margin-bottom: 12px;
}

.section-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(43, 207, 157, 0.12);
  color: color-mix(in srgb, var(--success) 74%, white 26%);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.auto-info-grid,
.summary-grid,
.profile-stat-grid {
  display: grid;
  gap: 12px;
}

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

.summary-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card,
.info-chip,
.profile-stat {
  padding: 16px;
  border-radius: 20px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.summary-card strong,
.analytics-metric strong,
.profile-stat strong {
  display: block;
  margin-top: 10px;
}

.summary-card strong {
  font-size: clamp(1.22rem, 1.7vw, 1.68rem);
}

.info-chip {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-chip strong {
  margin-top: 6px;
  font-size: 1rem;
}

.submit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.submit-form .primary-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 180px;
}

.recent-list {
  margin-top: 16px;
}

.report-item {
  padding: 16px;
  border-radius: 20px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.report-item:hover,
.report-row:hover,
.staff-filter-card:hover,
.filter-chip:hover,
.account-row:hover,
.theme-choice:hover {
  transform: translateY(-2px);
}

.report-item:hover,
.report-row:hover,
.staff-filter-card:hover,
.account-row:hover {
  border-color: var(--card-border-strong);
  box-shadow: var(--shadow-sm);
}

.report-item-top,
.account-row,
.sidebar-profile-row,
.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-item-top {
  align-items: flex-start;
}

.report-amount,
.staff-filter-amount,
.report-row strong {
  color: var(--accent-strong);
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-meta span,
.theme-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.empty-state,
.table-empty,
.security-lock-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px dashed var(--card-border);
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0 36px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
}

.settings-app-shell {
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: start;
  min-height: auto;
  height: fit-content;
  padding: 24px 20px;
  border-radius: 30px;
}

.admin-shell-dashboard {
  width: min(1340px, calc(100% - 36px));
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  gap: 16px;
  padding: 20px 18px;
  border-radius: 28px;
}

.dashboard-sidebar:hover,
.dashboard-topbar-panel:hover,
.admin-shell-dashboard .reports-panel:hover,
.admin-shell-dashboard .analytics-panel:hover,
.admin-shell-dashboard .accounts-panel:hover {
  transform: none;
}

.dashboard-sidebar-brand {
  align-items: flex-start;
  gap: 14px;
}

.dashboard-sidebar .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  font-size: 1.05rem;
}

.dashboard-sidebar-brand-copy {
  min-width: 0;
}

.dashboard-sidebar h1 {
  font-size: clamp(2.1rem, 2.8vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.dashboard-sidebar .eyebrow {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.dashboard-sidebar-note {
  margin: 6px 0 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  color: var(--text-muted);
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link span {
  color: inherit;
}

.nav-link small {
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}

.dashboard-sidebar .sidebar-nav {
  gap: 8px;
}

.dashboard-sidebar .nav-link {
  min-height: 50px;
  padding: 0 15px;
  border-radius: 16px;
}

.dashboard-sidebar .nav-link small {
  font-size: 0.72rem;
}

.nav-link:hover,
.nav-link-active {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 0.18), rgba(41, 211, 198, 0.12));
  border-color: var(--card-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-profile-card {
  padding: 18px;
  border-radius: 24px;
}

.dashboard-profile-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--card-softer);
}

.dashboard-profile-header {
  display: grid;
  gap: 10px;
}

.dashboard-profile-row {
  align-items: center;
  gap: 12px;
}

.dashboard-profile-row .avatar-shell-md {
  width: 52px;
  height: 52px;
}

.sidebar-profile-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-profile-copy strong,
.profile-preview-copy h3 {
  display: block;
  margin-bottom: 4px;
}

.sidebar-profile-copy small,
.profile-username {
  color: var(--text-subtle);
}

.sidebar-bio {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

.dashboard-profile-card .sidebar-profile-copy span {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.dashboard-profile-card .sidebar-profile-copy strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.dashboard-profile-card .sidebar-profile-copy small {
  font-size: 0.88rem;
}

.dashboard-profile-card .account-status {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  font-size: 0.72rem;
}

.dashboard-profile-card .sidebar-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sidebar-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.dashboard-chip-row {
  margin-top: 0;
}

.info-chip-mini {
  padding: 12px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.dashboard-chip-row .info-chip-mini {
  min-height: 74px;
  padding: 12px 13px;
}

.dashboard-chip-row .info-chip-mini strong {
  font-size: 1.02rem;
}

.info-chip-mini strong,
.info-chip-mini small {
  display: block;
}

.info-chip-mini small {
  margin-top: 4px;
  color: var(--text-subtle);
}

.compact-clock {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.compact-clock span {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-compact-clock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.dashboard-compact-clock .compact-clock-card {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.dashboard-compact-clock .compact-clock-card small {
  color: var(--text-subtle);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-compact-clock .compact-clock-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.22;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sidebar-actions form {
  width: 100%;
}

.dashboard-sidebar-actions {
  gap: 8px;
  margin-top: 0;
}

.dashboard-sidebar-actions .quick-submit-button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.dashboard-sidebar-actions .primary-button {
  box-shadow:
    0 14px 30px rgba(70, 91, 173, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-main,
.settings-main,
.insight-column,
.settings-editor-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.dashboard-main {
  gap: 16px;
}

.dashboard-topbar-panel {
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
}

.dashboard-topbar-copy {
  min-width: 0;
  max-width: 560px;
}

.dashboard-topbar-copy h2 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.dashboard-topbar-copy .summary-note {
  margin-top: 10px;
  max-width: 58ch;
}

.dashboard-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.dashboard-toolbar .search-shell {
  min-width: min(100%, 268px);
}

.dashboard-toolbar .search-shell input {
  width: min(280px, 100%);
  min-height: 44px;
  border-radius: 16px;
}

.dashboard-toolbar .admin-badge {
  min-width: 132px;
  padding: 11px 13px;
  border-radius: 16px;
}

.dashboard-toolbar form .ghost-button,
.admin-shell-dashboard .panel-head .ghost-button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.dashboard-summary-grid {
  margin-top: 0;
  gap: 14px;
}

.admin-shell-dashboard .summary-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
}

.admin-shell-dashboard .summary-card p {
  margin-bottom: 0;
}

.dashboard-content-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.86fr);
  gap: 16px;
}

.admin-shell-dashboard .reports-panel,
.admin-shell-dashboard .analytics-panel,
.admin-shell-dashboard .accounts-panel {
  padding: 20px;
  border-radius: 24px;
}

.admin-shell-dashboard .panel-head {
  margin-bottom: 14px;
}

.admin-shell-dashboard .panel-head h3 {
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.admin-shell-dashboard .staff-filter-grid {
  gap: 10px;
  margin-bottom: 14px;
}

.admin-shell-dashboard .staff-filter-card {
  min-height: 132px;
  padding: 14px;
  border-radius: 18px;
}

.admin-shell-dashboard .filter-extra-row {
  margin-bottom: 14px;
}

.admin-shell-dashboard .report-table-card {
  padding: 12px;
  border-radius: 20px;
}

.admin-shell-dashboard .report-table-body {
  gap: 8px;
  max-height: 400px;
}

.admin-shell-dashboard .analytics-stack,
.admin-shell-dashboard .account-list {
  gap: 12px;
}

.archived-accounts-head {
  margin-top: 18px;
  padding-top: 6px;
}

.archived-account-list {
  margin-top: 2px;
}

.admin-shell-dashboard .analytics-metric,
.admin-shell-dashboard .account-row {
  padding: 14px;
  border-radius: 16px;
}

.admin-shell-dashboard .account-row-end {
  gap: 10px;
}

.admin-shell-dashboard .account-delete-button {
  min-width: 96px;
  min-height: 40px;
  border-radius: 14px;
  font-size: 0.88rem;
}

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

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-soft);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-chip-active,
.staff-filter-card-active {
  border-color: var(--card-border-strong);
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 0.18), rgba(41, 211, 198, 0.12));
  color: var(--text);
}

.staff-filter-card {
  padding: 16px;
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-soft);
  color: var(--text);
  cursor: pointer;
}

.staff-filter-card strong,
.staff-filter-amount {
  display: block;
}

.staff-filter-card strong {
  margin: 8px 0 4px;
}

.staff-filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.report-table-card {
  padding: 14px;
  border-radius: 22px;
}

.report-table-head,
.report-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 0.78fr;
  gap: 12px;
  align-items: center;
}

.report-table-head {
  padding: 0 10px 12px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.report-table-body {
  max-height: 430px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.report-row {
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.report-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}

.analytics-metric,
.account-row {
  padding: 16px;
  border-radius: 18px;
}

.progress-shell {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: var(--card-soft);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 1), rgba(41, 211, 198, 0.96));
  transition: width 0.28s ease;
}

.account-row {
  justify-content: space-between;
}

.account-row-archived {
  opacity: 0.88;
  border-style: dashed;
}

.account-row-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-avatar {
  box-shadow: none;
}

.account-row-summary {
  text-align: right;
}

.account-row-end,
.account-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-row-end {
  margin-left: auto;
}

.account-delete-button {
  min-width: 110px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 0.92rem;
}

.modal-warning-copy {
  margin-bottom: 0;
}

.delete-preview-card {
  display: grid;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 18px;
  border-radius: 22px;
}

.account-status {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(43, 207, 157, 0.14);
  color: color-mix(in srgb, var(--success) 74%, white 26%);
  font-size: 0.76rem;
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.settings-preview-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.profile-preview-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  margin-top: 12px;
  justify-items: start;
}

.profile-preview-copy {
  display: grid;
  gap: 10px;
}

.theme-pill {
  display: inline-flex;
  width: fit-content;
  color: var(--text-soft);
}

.profile-stat-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.settings-security-grid {
  margin-top: 6px;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.avatar-upload-row .field-label,
.avatar-upload-row p {
  margin-bottom: 0;
}

.upload-button {
  cursor: pointer;
}

.settings-divider {
  height: 1px;
  background: var(--card-border);
}

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

.theme-choice {
  min-height: 52px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-soft);
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
}

.theme-choice-active {
  color: var(--text);
  border-color: var(--card-border-strong);
  background:
    linear-gradient(135deg, rgba(108, 139, 255, 0.18), rgba(41, 211, 198, 0.12));
  box-shadow: var(--shadow-sm);
}

.settings-toolbar {
  justify-content: flex-end;
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
}

.toast {
  opacity: 0;
  transform: translateY(-8px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  background: var(--card-strong);
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(43, 207, 157, 0.28);
}

.toast-error {
  border-color: rgba(255, 115, 140, 0.28);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-rise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ambient-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(14px, -18px, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1180px) {
  .admin-shell-dashboard {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
  }

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

  .admin-shell-dashboard .insight-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .settings-preview-panel {
    position: static;
  }
}

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

  .sidebar {
    position: static;
    min-height: auto;
  }

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

  .admin-shell-dashboard .insight-column {
    grid-template-columns: 1fr;
  }

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

  .dashboard-topbar,
  .topbar,
  .dashboard-topbar-actions,
  .topbar-actions,
  .avatar-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-shell input {
    width: 100%;
  }

  .dashboard-sidebar {
    padding: 18px;
  }

  .dashboard-topbar-copy h2 {
    max-width: none;
  }

  .dashboard-toolbar {
    justify-content: stretch;
    align-items: stretch;
  }

  .dashboard-toolbar .search-shell,
  .dashboard-toolbar .admin-badge,
  .dashboard-toolbar form {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .summary-grid,
  .staff-filter-grid,
  .profile-stat-grid,
  .settings-form-grid,
  .theme-switch {
    grid-template-columns: 1fr;
  }

  .report-table-head {
    display: none;
  }

  .report-row {
    grid-template-columns: 1fr 1fr;
  }

  .submit-form {
    grid-template-columns: 1fr;
  }

  .submit-form .primary-button {
    width: 100%;
    justify-self: stretch;
  }

  .button-row,
  .button-row-between,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row-between .save-hint {
    justify-content: flex-start;
  }

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

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

  .dashboard-sidebar-actions .quick-submit-button {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 16px;
  }

  .page-shell,
  .admin-shell {
    width: min(100% - 18px, 100%);
    padding-top: 16px;
  }

  .auth-card,
  .topbar,
  .submit-card,
  .recent-card,
  .sidebar,
  .dashboard-topbar,
  .reports-panel,
  .analytics-panel,
  .accounts-panel,
  .settings-card,
  .settings-preview-panel,
  .modal-card {
    padding: 16px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .user-pill,
  .admin-badge {
    width: 100%;
  }

  .auto-info-grid {
    grid-template-columns: 1fr;
  }

  .report-item-top,
  .report-row,
  .account-row,
  .sidebar-profile-row {
    flex-direction: column;
    align-items: stretch;
  }

  .report-row {
    grid-template-columns: 1fr;
  }

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

  .account-row-end,
  .account-row-actions {
    width: 100%;
    justify-content: space-between;
  }

  .account-delete-button {
    width: 100%;
  }

  .dashboard-sidebar .brand-mark {
    width: 52px;
    height: 52px;
  }

  .dashboard-sidebar h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .dashboard-profile-card {
    padding: 14px;
  }

  .dashboard-profile-header {
    gap: 8px;
  }

.toast-stack {
    top: auto;
    bottom: 16px;
    right: 16px;
  }
}

.settings-shortcut-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-shortcut-card,
.report-shortcut-card,
.reward-link-card,
.reward-admin-staff-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--card-soft), transparent);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.settings-shortcut-card span,
.report-shortcut-card span,
.reward-link-card span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.settings-shortcut-card strong,
.report-shortcut-card strong,
.reward-link-card strong {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.settings-shortcut-card:hover,
.report-shortcut-card:hover,
.reward-link-card:hover,
.reward-admin-staff-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-strong);
  box-shadow: var(--shadow-sm);
}

.report-shortcut-strip {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.rewards-shell {
  gap: 24px;
}

.rewards-main {
  display: grid;
  gap: 22px;
  min-width: 0;
  flex: 1;
}

.rewards-topbar {
  align-items: start;
}

.rewards-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

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

.reward-summary-card strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.reward-utility-grid,
.reward-history-grid,
.rewards-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reward-history-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.rewards-admin-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
}

.reward-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.reward-inline-form,
.reward-settings-form,
.reward-admin-form {
  display: grid;
  gap: 14px;
}

.reward-inline-summary {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--card-soft), transparent);
}

.reward-inline-summary strong {
  font-size: 1.5rem;
}

.reward-link-grid {
  display: grid;
  gap: 12px;
}

.reward-pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.reward-pill {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(9, 18, 42, 0.78);
  color: var(--text-soft);
  padding: 8px 14px;
  font-size: 0.84rem;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.reward-pill-active {
  color: var(--text);
  border-color: rgba(41, 211, 198, 0.58);
  background: linear-gradient(180deg, rgba(41, 211, 198, 0.14), rgba(108, 139, 255, 0.1));
}

.reward-feed,
.reward-history-list,
.reward-history-stack {
  display: grid;
  gap: 12px;
}

.reward-feed-item,
.reward-history-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.reward-feed-item p,
.reward-history-item p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.reward-feed-kind {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.reward-feed-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--text-muted);
}

.reward-feed-meta strong {
  color: var(--text);
}

.reward-mini-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.lucky-draw-page {
  --lucky-accent-blue: rgba(105, 128, 255, 0.98);
  --lucky-accent-cyan: rgba(38, 223, 209, 0.96);
  --lucky-accent-violet: rgba(165, 112, 255, 0.98);
  --lucky-accent-gold: rgba(255, 206, 88, 0.98);
  --lucky-bg-top: #071022;
  --lucky-bg-mid: #08162e;
  --lucky-bg-deep: #050c1a;
  --lucky-surface: rgba(10, 18, 42, 0.9);
  --lucky-surface-strong: rgba(8, 14, 34, 0.96);
  --lucky-border-soft: rgba(118, 148, 255, 0.18);
  --lucky-border-strong: rgba(122, 162, 255, 0.3);
  --lucky-shadow: rgba(3, 8, 24, 0.52);
  background:
    radial-gradient(circle at 8% 12%, rgba(97, 122, 255, 0.26), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(32, 218, 210, 0.22), transparent 22%),
    radial-gradient(circle at 50% 64%, rgba(161, 110, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(18, 163, 188, 0.16), transparent 22%),
    linear-gradient(180deg, var(--lucky-bg-top) 0%, var(--lucky-bg-mid) 48%, var(--lucky-bg-deep) 100%);
}

.lucky-draw-page .ambient-one,
.lucky-draw-page .ambient-two,
.lucky-draw-page .ambient-three {
  filter: blur(30px);
  opacity: 0.88;
  animation: luckyDrawPageGlowFloat 18s ease-in-out infinite;
}

.lucky-draw-page .ambient-one {
  background: radial-gradient(circle, rgba(101, 123, 255, 0.36), transparent 72%);
}

.lucky-draw-page .ambient-two {
  background: radial-gradient(circle, rgba(36, 224, 209, 0.3), transparent 72%);
  animation-delay: -6s;
}

.lucky-draw-page .ambient-three {
  background: radial-gradient(circle, rgba(165, 112, 255, 0.28), transparent 72%);
  animation-delay: -10s;
}

.lucky-draw-page .eyebrow,
.lucky-draw-page .reward-feed-kind {
  color: rgba(84, 238, 223, 0.92);
}

.lucky-draw-page .summary-note,
.lucky-draw-page .reward-feed-item p,
.lucky-draw-page .reward-history-item p {
  color: rgba(209, 221, 244, 0.8);
}

.lucky-draw-page .glass-card,
.lucky-draw-page .glass-subcard {
  border-color: var(--lucky-border-soft);
  background:
    linear-gradient(160deg, rgba(12, 24, 55, 0.95), rgba(6, 12, 28, 0.98)),
    linear-gradient(120deg, rgba(101, 123, 255, 0.09), rgba(36, 224, 209, 0.08), rgba(165, 112, 255, 0.1));
  box-shadow:
    0 24px 54px var(--lucky-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lucky-draw-page .rewards-main {
  position: relative;
  isolation: isolate;
}

.lucky-draw-page .rewards-main::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(165, 112, 255, 0.18), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.lucky-draw-page .rewards-main::after {
  content: "";
  position: absolute;
  bottom: 8%;
  left: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36, 224, 209, 0.16), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.lucky-draw-page .brand-mark {
  background:
    linear-gradient(135deg, var(--lucky-accent-blue), var(--lucky-accent-cyan) 48%, var(--lucky-accent-violet));
  box-shadow:
    0 16px 34px rgba(32, 112, 218, 0.28),
    0 0 36px rgba(36, 224, 209, 0.14);
}

.lucky-draw-page .rewards-topbar,
.lucky-draw-page .rewards-sidebar,
.lucky-draw-page .reward-panel {
  border-color: rgba(122, 162, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.lucky-draw-page .rewards-topbar::before,
.lucky-draw-page .rewards-sidebar::before,
.lucky-draw-page .reward-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(101, 123, 255, 0), rgba(36, 224, 209, 0.38), rgba(165, 112, 255, 0));
  pointer-events: none;
}

.lucky-draw-page .nav-link-active {
  border-color: rgba(122, 162, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(101, 123, 255, 0.2), rgba(36, 224, 209, 0.14), rgba(165, 112, 255, 0.16)),
    rgba(10, 18, 44, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lucky-draw-page .admin-badge,
.lucky-draw-page .sidebar-card,
.lucky-draw-page .reward-chip-card,
.lucky-draw-page .reward-table-row,
.lucky-draw-page .reward-history-item,
.lucky-draw-page .reward-feed-item {
  border-color: rgba(122, 162, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(12, 22, 48, 0.94), rgba(8, 14, 32, 0.96)),
    linear-gradient(120deg, rgba(101, 123, 255, 0.08), rgba(36, 224, 209, 0.06), rgba(165, 112, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 32px rgba(3, 9, 24, 0.22);
}

.lucky-draw-page .admin-badge strong,
.lucky-draw-page .reward-summary-card strong,
.lucky-draw-page .reward-chip-card strong {
  color: #f5fbff;
}

.lucky-draw-page .reward-summary-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(122, 162, 255, 0.2);
}

.lucky-draw-page .reward-summary-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 48%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 30%);
  pointer-events: none;
}

.lucky-draw-page .reward-summary-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(101, 123, 255, 0), rgba(36, 224, 209, 0.56), rgba(165, 112, 255, 0));
  opacity: 0.7;
  pointer-events: none;
}

.lucky-draw-page .reward-summary-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(101, 123, 255, 0.16), transparent 32%),
    linear-gradient(140deg, rgba(82, 133, 255, 0.14), rgba(36, 224, 209, 0.08)),
    rgba(9, 18, 42, 0.84);
}

.lucky-draw-page .reward-summary-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(36, 224, 209, 0.16), transparent 30%),
    linear-gradient(140deg, rgba(36, 224, 209, 0.16), rgba(82, 128, 255, 0.08)),
    rgba(9, 18, 42, 0.84);
}

.lucky-draw-page .reward-summary-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(165, 112, 255, 0.16), transparent 32%),
    linear-gradient(140deg, rgba(165, 112, 255, 0.16), rgba(82, 128, 255, 0.08)),
    rgba(9, 18, 42, 0.84);
}

.lucky-draw-page .reward-summary-card:nth-child(4) {
  background:
    radial-gradient(circle at top right, rgba(255, 206, 88, 0.18), transparent 34%),
    linear-gradient(140deg, rgba(255, 206, 88, 0.16), rgba(165, 112, 255, 0.08)),
    rgba(9, 18, 42, 0.84);
}

.lucky-draw-page .lucky-draw-arena {
  overflow: hidden;
}

.lucky-draw-page .lucky-draw-arena::after {
  content: "";
  position: absolute;
  inset: auto 10% -120px;
  height: 180px;
  background:
    radial-gradient(circle, rgba(36, 224, 209, 0.14), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-stage {
  border-color: rgba(122, 162, 255, 0.24);
  background:
    radial-gradient(circle at 24% 18%, rgba(36, 224, 209, 0.18), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(165, 112, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 72%, rgba(101, 123, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(11, 21, 48, 0.97), rgba(6, 11, 28, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(122, 162, 255, 0.12),
    0 30px 80px rgba(4, 10, 30, 0.5);
}

.lucky-draw-page .lucky-draw-stage::before,
.lucky-draw-page .lucky-draw-stage::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 28px;
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-stage::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 48%),
    conic-gradient(from 90deg, rgba(101, 123, 255, 0.08), rgba(36, 224, 209, 0.08), rgba(165, 112, 255, 0.08), rgba(101, 123, 255, 0.08));
  filter: blur(10px);
  animation: luckyDrawStageHaloShift 14s linear infinite;
}

.lucky-draw-page .lucky-draw-stage::after {
  inset: 16%;
  border: 1px solid rgba(122, 162, 255, 0.14);
  background: radial-gradient(circle at center, rgba(14, 30, 74, 0.24), transparent 64%);
}

.lucky-draw-page .lucky-draw-ring-shell {
  position: relative;
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-ring-shell::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    rgba(101, 123, 255, 0.82),
    rgba(36, 224, 209, 0.76),
    rgba(165, 112, 255, 0.76),
    rgba(101, 123, 255, 0.82)
  );
  opacity: 0.38;
  filter: blur(1px);
  animation: luckyDrawStageHaloShift 10s linear infinite;
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-ring-shell::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 48px rgba(36, 224, 209, 0.08),
    inset 0 0 28px rgba(165, 112, 255, 0.08);
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-ring {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-segment {
  border-color: rgba(110, 148, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(16, 28, 62, 0.95), rgba(8, 15, 34, 0.96)),
    linear-gradient(135deg, rgba(101, 123, 255, 0.09), rgba(36, 224, 209, 0.08), rgba(165, 112, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(2, 8, 24, 0.2);
  pointer-events: none;
}

.lucky-draw-page .lucky-draw-segment-active {
  border-color: rgba(36, 224, 209, 0.7);
  background:
    linear-gradient(150deg, rgba(21, 66, 96, 0.88), rgba(16, 20, 48, 0.95)),
    linear-gradient(135deg, rgba(36, 224, 209, 0.22), rgba(101, 123, 255, 0.14));
  box-shadow:
    0 0 0 1px rgba(36, 224, 209, 0.12),
    0 22px 40px rgba(36, 224, 209, 0.14),
    0 0 36px rgba(36, 224, 209, 0.08);
}

.lucky-draw-page .lucky-draw-segment-jackpot {
  border-color: rgba(255, 206, 88, 0.58);
  background:
    linear-gradient(150deg, rgba(58, 42, 14, 0.4), rgba(20, 18, 46, 0.95)),
    linear-gradient(135deg, rgba(255, 206, 88, 0.18), rgba(165, 112, 255, 0.12));
  box-shadow:
    0 0 30px rgba(255, 206, 88, 0.08),
    0 0 42px rgba(165, 112, 255, 0.06);
}

.lucky-draw-page .lucky-draw-core {
  border-color: rgba(122, 162, 255, 0.3);
  background:
    linear-gradient(160deg, rgba(13, 26, 62, 0.95), rgba(8, 16, 36, 0.98)),
    linear-gradient(135deg, rgba(101, 123, 255, 0.18), rgba(36, 224, 209, 0.13), rgba(165, 112, 255, 0.16));
  box-shadow:
    0 24px 58px rgba(6, 14, 34, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 4;
}

.lucky-draw-page .lucky-draw-core-label {
  color: rgba(84, 238, 223, 0.94);
}

.lucky-draw-page .lucky-draw-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: none;
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(101, 123, 255, 0.98), rgba(36, 224, 209, 0.97) 52%, rgba(165, 112, 255, 0.98));
  background-size: 180% 180%;
  box-shadow:
    0 18px 34px rgba(33, 120, 214, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 38px rgba(36, 224, 209, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.32s ease;
}

.lucky-draw-page .lucky-draw-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.28) 46%, transparent 68%);
  transform: translateX(-135%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.lucky-draw-page .lucky-draw-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 24px 42px rgba(33, 120, 214, 0.3),
    0 0 34px rgba(36, 224, 209, 0.18);
}

.lucky-draw-page .lucky-draw-button:hover:not(:disabled)::before,
.lucky-draw-page .lucky-draw-button:focus-visible::before {
  transform: translateX(135%);
}

.lucky-draw-page .lucky-draw-button:focus-visible {
  outline: 2px solid rgba(36, 224, 209, 0.45);
  outline-offset: 2px;
}

.lucky-draw-page .lucky-draw-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  background:
    linear-gradient(135deg, rgba(58, 76, 126, 0.92), rgba(47, 70, 108, 0.92) 52%, rgba(68, 66, 110, 0.92));
  box-shadow:
    0 14px 26px rgba(20, 40, 92, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lucky-draw-page .reward-chip-card:nth-child(1) {
  background:
    linear-gradient(140deg, rgba(101, 123, 255, 0.16), rgba(11, 20, 46, 0.92)),
    rgba(9, 18, 42, 0.82);
}

.lucky-draw-page .reward-chip-card:nth-child(2) {
  background:
    linear-gradient(140deg, rgba(36, 224, 209, 0.16), rgba(11, 20, 46, 0.92)),
    rgba(9, 18, 42, 0.82);
}

.lucky-draw-page .reward-chip-card:nth-child(3) {
  background:
    linear-gradient(140deg, rgba(165, 112, 255, 0.16), rgba(11, 20, 46, 0.92)),
    rgba(9, 18, 42, 0.82);
}

.lucky-draw-page .reward-chip-card:nth-child(4) {
  background:
    linear-gradient(140deg, rgba(255, 206, 88, 0.18), rgba(11, 20, 46, 0.92)),
    rgba(9, 18, 42, 0.82);
}

.lucky-draw-page .reward-result-modal-card {
  border-color: rgba(122, 162, 255, 0.24);
  background:
    radial-gradient(circle at top, rgba(36, 224, 209, 0.12), transparent 48%),
    linear-gradient(155deg, rgba(13, 26, 58, 0.98), rgba(8, 14, 32, 0.98)),
    linear-gradient(135deg, rgba(101, 123, 255, 0.12), rgba(36, 224, 209, 0.1), rgba(165, 112, 255, 0.12));
  box-shadow:
    0 36px 80px rgba(1, 6, 18, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.lucky-draw-page .reward-result-tier-normal {
  background:
    radial-gradient(circle at top, rgba(36, 224, 209, 0.1), transparent 44%),
    linear-gradient(155deg, rgba(10, 29, 50, 0.98), rgba(8, 14, 32, 0.98)),
    linear-gradient(135deg, rgba(36, 224, 209, 0.12), rgba(101, 123, 255, 0.08));
}

.lucky-draw-page .reward-result-tier-big {
  background:
    radial-gradient(circle at top, rgba(165, 112, 255, 0.1), transparent 44%),
    linear-gradient(155deg, rgba(23, 24, 56, 0.98), rgba(8, 14, 32, 0.98)),
    linear-gradient(135deg, rgba(165, 112, 255, 0.14), rgba(255, 206, 88, 0.1));
}

.lucky-draw-page .reward-result-tier-jackpot {
  background:
    radial-gradient(circle at top, rgba(255, 206, 88, 0.16), transparent 48%),
    linear-gradient(155deg, rgba(30, 24, 12, 0.97), rgba(10, 14, 32, 0.98)),
    linear-gradient(135deg, rgba(255, 206, 88, 0.18), rgba(165, 112, 255, 0.14));
}

.lucky-draw-page .reward-table-row-jackpot,
.lucky-draw-page .reward-history-item-jackpot {
  border-color: rgba(255, 206, 88, 0.32);
  background:
    linear-gradient(145deg, rgba(45, 33, 10, 0.4), rgba(10, 18, 42, 0.95)),
    linear-gradient(135deg, rgba(255, 206, 88, 0.13), rgba(165, 112, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(28, 20, 8, 0.22);
}

@keyframes luckyDrawPageGlowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.05);
  }
}

@keyframes luckyDrawStageHaloShift {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.lucky-draw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.lucky-draw-side-stack {
  display: grid;
  gap: 16px;
}

.lucky-draw-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 460px;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at center, rgba(108, 139, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  overflow: hidden;
}

.lucky-draw-stage-spinning {
  box-shadow:
    inset 0 0 0 1px rgba(125, 166, 255, 0.12),
    0 28px 64px rgba(29, 57, 112, 0.24);
}

.lucky-draw-stage-celebrate-normal {
  box-shadow:
    inset 0 0 0 1px rgba(41, 211, 198, 0.16),
    0 0 46px rgba(41, 211, 198, 0.14);
}

.lucky-draw-stage-celebrate-big {
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 82, 0.22),
    0 0 62px rgba(255, 210, 82, 0.18);
}

.lucky-draw-stage-celebrate-jackpot {
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 82, 0.28),
    0 0 86px rgba(255, 210, 82, 0.24);
}

.lucky-draw-celebration-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.lucky-draw-pointer {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid rgba(255, 210, 82, 0.92);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(255, 210, 82, 0.24));
}

.lucky-draw-ring-shell {
  display: grid;
  place-items: center;
  width: min(100%, 430px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}

.lucky-draw-ring {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  transform-origin: center;
  pointer-events: none;
}

.lucky-draw-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  padding: 12px 10px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: rgba(8, 18, 36, 0.86);
  color: var(--text);
  transform:
    translate(-50%, -50%)
    rotate(var(--segment-angle))
    translateY(-176px)
    rotate(calc(-1 * var(--segment-angle)));
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.lucky-draw-segment-jackpot {
  border-color: rgba(255, 210, 82, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 210, 82, 0.18), rgba(108, 139, 255, 0.08)),
    rgba(8, 18, 36, 0.92);
}

.lucky-draw-segment span,
.lucky-draw-segment small {
  display: block;
}

.lucky-draw-segment span {
  font-weight: 800;
}

.lucky-draw-segment small {
  margin-top: 4px;
  color: var(--text-muted);
}

.lucky-draw-segment-active {
  border-color: rgba(41, 211, 198, 0.72);
  background:
    linear-gradient(180deg, rgba(41, 211, 198, 0.18), rgba(108, 139, 255, 0.12)),
    rgba(8, 18, 36, 0.94);
  box-shadow: 0 0 0 1px rgba(41, 211, 198, 0.14), 0 18px 34px rgba(41, 211, 198, 0.16);
}

.lucky-draw-core {
  position: absolute;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid var(--card-border-strong);
  background:
    linear-gradient(180deg, rgba(108, 139, 255, 0.18), rgba(41, 211, 198, 0.12)),
    rgba(8, 18, 36, 0.94);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  z-index: 4;
}

.lucky-draw-core-spinning {
  animation: luckyDrawCorePulse 1.2s ease-in-out infinite;
}

.lucky-draw-core-win-normal {
  box-shadow:
    0 0 0 1px rgba(41, 211, 198, 0.2),
    0 18px 34px rgba(41, 211, 198, 0.18);
}

.lucky-draw-core-win-big {
  animation: luckyDrawCoreBounce 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow:
    0 0 0 1px rgba(255, 210, 82, 0.22),
    0 22px 40px rgba(255, 210, 82, 0.2);
}

.lucky-draw-core-win-jackpot {
  animation: luckyDrawCoreBounce 720ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(255, 210, 82, 0.28),
    0 0 72px rgba(255, 210, 82, 0.26);
}

.lucky-draw-core-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lucky-draw-core strong {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.lucky-draw-button {
  min-width: 180px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

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

.reward-chip-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(9, 18, 42, 0.72);
}

.reward-chip-card span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.reward-chip-card strong {
  font-size: 1rem;
}

.reward-table {
  display: grid;
  gap: 10px;
}

.reward-table-head,
.reward-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.reward-table-head {
  padding: 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.reward-table-body {
  display: grid;
  gap: 10px;
}

.reward-table-row {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--card-soft), transparent);
}

.reward-table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lucky-draw-odds-panel .reward-table-head,
.lucky-draw-odds-panel .reward-table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reward-table-row-jackpot {
  border-color: rgba(255, 210, 82, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 210, 82, 0.12), rgba(108, 139, 255, 0.06)),
    transparent;
}

.reward-history-item-jackpot {
  border-color: rgba(255, 210, 82, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 210, 82, 0.14), rgba(108, 139, 255, 0.06)),
    transparent;
}

.reward-admin-staff-list {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.reward-admin-staff-card {
  width: 100%;
  text-align: left;
}

.reward-admin-staff-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}

.reward-admin-staff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.reward-admin-staff-card-active {
  border-color: var(--card-border-strong);
  background:
    linear-gradient(180deg, rgba(108, 139, 255, 0.12), rgba(41, 211, 198, 0.08)),
    transparent;
}

.reward-admin-form-grid,
.reward-settings-columns {
  display: grid;
  gap: 14px;
}

.reward-admin-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.reward-admin-form h4,
.reward-settings-card h4 {
  margin: 0;
  font-size: 1rem;
}

.reward-settings-card,
.reward-admin-form {
  align-content: start;
}

.reward-inline-dual-input {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-option-editor {
  display: grid;
  gap: 12px;
}

.reward-option-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

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

.reward-option-editor-head h5 {
  margin: 0;
  font-size: 0.95rem;
}

.reward-option-rows {
  display: grid;
  gap: 10px;
}

.reward-option-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 150px 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--card-soft), transparent);
}

.reward-option-row-disabled {
  opacity: 0.82;
  border-color: rgba(255, 255, 255, 0.08);
}

.reward-option-order-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid rgba(98, 191, 255, 0.18);
  background: rgba(10, 24, 52, 0.72);
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reward-option-preview {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.reward-option-preview span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.reward-option-preview small {
  color: var(--text-subtle);
  font-size: 0.72rem;
}

.reward-option-toggle {
  display: grid;
  gap: 10px;
}

.reward-option-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(98, 191, 255, 0.16);
  background: rgba(9, 18, 42, 0.72);
}

.reward-option-toggle-control input {
  width: 18px;
  height: 18px;
}

.reward-option-row-actions {
  display: grid;
  gap: 10px;
}

.reward-option-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-option-remove {
  align-self: stretch;
}

.streak-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--card-soft), transparent);
}

.reward-result-modal-card {
  max-width: 420px;
  width: min(100%, 420px);
  overflow: hidden;
}

.reward-result-copy h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.reward-result-copy p {
  margin: 0;
  color: var(--text-muted);
}

.reward-result-tier-normal {
  border-color: rgba(41, 211, 198, 0.24);
  box-shadow: 0 24px 54px rgba(41, 211, 198, 0.16);
}

.reward-result-tier-big {
  border-color: rgba(255, 210, 82, 0.26);
  box-shadow: 0 28px 62px rgba(255, 210, 82, 0.18);
}

.reward-result-tier-jackpot {
  border-color: rgba(255, 210, 82, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 210, 82, 0.16), 0 0 82px rgba(255, 210, 82, 0.22);
}

.lucky-draw-confetti {
  position: absolute;
  top: -8%;
  border-radius: 999px;
  opacity: 0.92;
  transform: translate3d(0, 0, 0) rotate(var(--confetti-rotate));
  animation: luckyDrawConfettiFall var(--confetti-duration) ease-out forwards;
  animation-delay: var(--confetti-delay);
}

.lucky-draw-confetti-big,
.lucky-draw-confetti-jackpot {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}

@keyframes luckyDrawConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(var(--confetti-rotate)) scale(0.72);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 380px, 0) rotate(calc(var(--confetti-rotate) + 260deg)) scale(1);
  }
}

@keyframes luckyDrawCorePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes luckyDrawCoreBounce {
  0% {
    transform: scale(0.92);
  }

  45% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.rewards-admin-history-grid {
  grid-template-columns: 1fr;
}

.rewards-toolbar-field {
  min-width: 220px;
}

.rewards-admin-page .rewards-admin-main {
  gap: 24px;
}

.rewards-admin-page .rewards-topbar {
  padding: 24px 26px;
}

.rewards-admin-page .rewards-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.rewards-admin-page .reward-summary-grid {
  gap: 16px;
}

.rewards-admin-page .reward-summary-card {
  min-height: 162px;
  padding: 20px;
}

.rewards-admin-page .rewards-admin-command-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.rewards-admin-page .rewards-admin-settings-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.rewards-admin-page .reward-panel {
  padding: 24px;
  border-radius: 28px;
  gap: 20px;
}

.rewards-admin-page .reward-admin-section-block,
.rewards-admin-page .rewards-admin-history-shell {
  display: grid;
  gap: 16px;
}

.rewards-admin-page .reward-panel-section-heading,
.rewards-admin-page .rewards-admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.rewards-admin-page .reward-panel-section-heading .summary-note,
.rewards-admin-page .rewards-admin-section-heading .summary-note {
  max-width: 36ch;
  margin: 0;
  text-align: right;
}

.rewards-admin-page .reward-admin-staff-list {
  max-height: 440px;
  padding-right: 8px;
}

.rewards-admin-page .reward-admin-staff-card {
  padding: 18px 20px;
  border-radius: 22px;
  gap: 10px;
}

.rewards-admin-page .reward-admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rewards-admin-page .reward-admin-form,
.rewards-admin-page .rewards-admin-settings-card,
.rewards-admin-page .reward-settings-savebar {
  padding: 20px;
  border-radius: 22px;
}

.rewards-admin-page .reward-admin-form-salary {
  grid-column: 1 / -1;
}

.rewards-admin-page .reward-admin-form h4,
.rewards-admin-page .rewards-admin-settings-card h4 {
  margin-bottom: 4px;
}

.rewards-admin-page .reward-settings-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rewards-admin-page .reward-settings-card-wide {
  grid-column: 1 / -1;
}

.rewards-admin-page .reward-option-editor-streaks,
.rewards-admin-page .reward-option-editor-pool {
  gap: 16px;
}

.rewards-admin-page .reward-option-editor-head {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

.rewards-admin-page .reward-option-editor-head .summary-note {
  margin: 6px 0 0;
  max-width: 48ch;
}

.rewards-admin-page .reward-option-editor-actions {
  margin-left: auto;
}

.rewards-admin-page .reward-option-table-head {
  display: grid;
  grid-template-columns: 80px minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(190px, 1fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.rewards-admin-page .reward-option-row {
  grid-template-columns: 80px minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(190px, 1fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 22px;
}

.rewards-admin-page .reward-option-order-chip {
  min-height: 52px;
  margin-bottom: 0;
  border-radius: 18px;
}

.rewards-admin-page .reward-option-toggle {
  gap: 8px;
}

.rewards-admin-page .reward-option-toggle-control {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  justify-content: space-between;
  border-radius: 18px;
}

.rewards-admin-page .reward-option-preview {
  min-height: 92px;
  padding: 14px 16px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(98, 191, 255, 0.14);
  background: rgba(8, 18, 38, 0.74);
  align-content: center;
}

.rewards-admin-page .reward-option-preview strong {
  font-size: 1.08rem;
}

.rewards-admin-page .reward-option-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.rewards-admin-page .reward-option-order-actions {
  display: inline-flex;
  gap: 10px;
}

.rewards-admin-page .reward-option-order-actions .ghost-button,
.rewards-admin-page .reward-option-remove {
  min-width: 82px;
}

.rewards-admin-page .reward-option-remove {
  border-color: rgba(255, 115, 140, 0.24);
  color: color-mix(in srgb, var(--danger) 78%, white 22%);
  background: rgba(255, 115, 140, 0.08);
}

.rewards-admin-page .reward-option-remove:hover:not(:disabled) {
  background: rgba(255, 115, 140, 0.14);
  border-color: rgba(255, 115, 140, 0.34);
}

.rewards-admin-page .streak-tier-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(190px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 22px;
}

.rewards-admin-page .reward-settings-savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, rgba(108, 139, 255, 0.08), rgba(41, 211, 198, 0.04)),
    rgba(9, 18, 42, 0.82);
}

.rewards-admin-page .reward-settings-savebar .save-hint {
  justify-content: flex-start;
}

.rewards-admin-page .rewards-admin-history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rewards-admin-page .reward-table {
  min-width: 0;
}

.rewards-admin-page .reward-table-head,
.rewards-admin-page .reward-table-row {
  gap: 14px;
}

.rewards-admin-page .reward-feed-item {
  padding: 16px 18px;
  border-radius: 20px;
}

@media (max-width: 1460px) {
  .rewards-admin-page .rewards-admin-command-grid {
    grid-template-columns: minmax(360px, 0.96fr) minmax(0, 1.08fr);
  }

  .rewards-admin-page .reward-option-table-head,
  .rewards-admin-page .reward-option-row {
    grid-template-columns: 72px minmax(108px, 0.8fr) minmax(108px, 0.8fr) minmax(170px, 0.95fr) minmax(110px, 0.75fr) minmax(164px, 0.92fr);
  }
}

@media (max-width: 1280px) {
  .rewards-admin-page .rewards-admin-toolbar {
    grid-template-columns: 1fr auto auto;
  }

  .rewards-admin-page .rewards-admin-command-grid {
    grid-template-columns: 1fr;
  }

  .rewards-admin-page .rewards-admin-history-grid {
    grid-template-columns: 1fr;
  }

  .rewards-admin-page .reward-option-table-head {
    display: none;
  }

  .rewards-admin-page .reward-option-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .rewards-admin-page .reward-option-row-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .rewards-admin-page .streak-tier-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewards-admin-page .streak-tier-row .reward-option-remove {
    grid-column: 1 / -1;
  }

  .rewards-admin-page .reward-panel-section-heading .summary-note,
  .rewards-admin-page .rewards-admin-section-heading .summary-note {
    max-width: 44ch;
  }
}

@media (max-width: 980px) {
  .rewards-admin-page .rewards-admin-toolbar,
  .rewards-admin-page .reward-panel-section-heading,
  .rewards-admin-page .rewards-admin-section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .rewards-admin-page .reward-panel-section-heading .summary-note,
  .rewards-admin-page .rewards-admin-section-heading .summary-note {
    max-width: none;
    text-align: left;
  }

  .rewards-admin-page .reward-settings-columns,
  .rewards-admin-page .reward-admin-form-grid {
    grid-template-columns: 1fr;
  }

  .rewards-admin-page .reward-admin-form-salary,
  .rewards-admin-page .reward-settings-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .rewards-admin-page .reward-option-table-head {
    display: none;
  }

  .rewards-admin-page .reward-settings-savebar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 1180px) {
  .reward-summary-grid,
  .reward-utility-grid,
  .reward-admin-form-grid,
  .reward-settings-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-history-grid,
  .lucky-draw-grid,
  .rewards-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .reward-summary-grid,
  .reward-utility-grid,
  .reward-admin-form-grid,
  .reward-settings-columns,
  .reward-option-row,
  .streak-tier-row,
  .reward-inline-dual-input,
  .reward-chip-grid {
    grid-template-columns: 1fr;
  }

  .reward-option-order-chip,
  .reward-option-preview {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .reward-feed-item,
  .reward-history-item {
    flex-direction: column;
  }

  .reward-feed-meta {
    justify-items: start;
    text-align: left;
  }

  .reward-table-head,
  .reward-table-row,
  .lucky-draw-odds-panel .reward-table-head,
  .lucky-draw-odds-panel .reward-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lucky-draw-stage {
    min-height: 400px;
    padding: 18px;
  }

  .lucky-draw-segment {
    width: 96px;
    transform:
      translate(-50%, -50%)
      rotate(var(--segment-angle))
      translateY(-145px)
      rotate(calc(-1 * var(--segment-angle)));
  }

  .report-shortcut-strip {
    grid-template-columns: 1fr;
  }
}
