.dash-page {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  position: relative;
  z-index: 2;
}

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

.dash-section-tabs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.dash-section-tab {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.7);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dash-section-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.45);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.dash-section-tab.active {
  color: rgba(30, 20, 10, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(240, 214, 176, 0.95), rgba(196, 138, 68, 0.9) 60%, rgba(122, 78, 35, 0.95));
}

.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.7);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.45);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.tab.active {
  color: rgba(30, 20, 10, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(240, 214, 176, 0.95), rgba(196, 138, 68, 0.9) 60%, rgba(122, 78, 35, 0.95));
}

.search {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.7);
  overflow: hidden;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 11px 40px 11px 14px;
  font-size: 13px;
}

.search svg {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(214, 176, 122, 0.95);
}

.dash-left {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 40, 0.85);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.dash-left-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.dash-h1 {
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

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

.dash-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.7);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dash-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.5);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.dash-filters {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.dash-list {
  padding: 12px 10px 12px 12px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.dash-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 26, 0.55);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-row:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.3);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.dash-row.active {
  border-color: rgba(214, 176, 122, 0.55);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.dash-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-3);
  padding-top: 4px;
}

.dash-row-title {
  font-size: 13px;
  font-weight: 700;
}

.dash-row-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.dash-io {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.dash-io-btn {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.75);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.dash-io-import {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(12, 16, 28, 0.55);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.dash-io-import input {
  display: none;
}

.dash-note {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  padding-top: 4px;
}

.dash-right {
  display: grid;
  gap: 18px;
}

.editor {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.88), rgba(9, 12, 20, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.cover-preview {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.55);
  overflow: hidden;
}

.cover-preview img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.stats-grid {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.55);
  display: grid;
  gap: 10px;
}

.stats-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.stats-rows {
  display: grid;
  gap: 8px;
}

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

.stats-row input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.9);
  color: var(--text);
  padding: 8px;
  font-size: 12px;
  font-family: "Manrope", system-ui, sans-serif;
}

.editor::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
  transform: translateX(-45%);
  animation: sheen 26s linear infinite;
  pointer-events: none;
}

.editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.editor-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.editor-title {
  margin-top: 6px;
  font-family: "Cinzel", serif;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.editor-tools {
  display: flex;
  gap: 8px;
}

.editor-form {
  margin-top: 14px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.rewards-editor {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 40, 0.82);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  padding: 16px;
}

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

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

.reward-row {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 26, 0.55);
}

.reward-row input {
  width: 100%;
}

.reward-del {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.75);
  color: var(--text);
  cursor: pointer;
}

.users-section {
  padding: 12px;
  overflow-y: auto;
}

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

.user-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 26, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-card:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.3);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.user-card.active {
  border-color: rgba(214, 176, 122, 0.55);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.user-avatar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(214, 176, 122, 0.4);
  overflow: hidden;
  background: linear-gradient(135deg, #7a92b8, #2f3b56);
  flex-shrink: 0;
}

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

.user-avatar-thumb svg {
  width: 24px;
  height: 24px;
  margin: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.user-info-mini {
  flex: 1;
  min-width: 0;
}

.user-name-mini {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email-mini {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.user-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.user-badge.admin {
  background: rgba(214, 176, 122, 0.2);
  color: var(--accent-3);
  border: 1px solid rgba(214, 176, 122, 0.3);
}

.user-badge.user {
  background: rgba(100, 120, 160, 0.2);
  color: #8fa4c8;
  border: 1px solid rgba(100, 120, 160, 0.3);
}

.user-badge-tokens {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.25), rgba(196, 138, 68, 0.15));
  color: var(--accent-3);
  border: 1px solid rgba(214, 176, 122, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(214, 176, 122, 0.2);
}

.user-badge-tokens svg {
  width: 12px;
  height: 12px;
}

.user-editor {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.88), rgba(9, 12, 20, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.user-editor::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.06) 48%, transparent 62%);
  transform: translateX(-45%);
  animation: sheen 28s linear infinite;
  pointer-events: none;
}

.user-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.user-editor-content {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.user-avatar-section {
  display: flex;
  gap: 16px;
  align-items: center;
}

.user-avatar-section img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(214, 176, 122, 0.5);
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(214, 176, 122, 0.5);
  background: linear-gradient(135deg, #7a92b8, #2f3b56);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-placeholder svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.4);
}

.user-avatar-placeholder.hidden {
  display: none;
}

.user-avatar-info {
  flex: 1;
}

.user-display-name {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 4px;
}

.user-display-email {
  font-size: 12px;
  color: var(--muted);
}

.user-tokens-display {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.12), rgba(196, 138, 68, 0.08));
  border: 1px solid rgba(214, 176, 122, 0.3);
  position: relative;
  overflow: hidden;
}

.user-tokens-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(214, 176, 122, 0.15), transparent 60%);
  pointer-events: none;
}

.user-tokens-display::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: tokensSheen 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tokensSheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.tokens-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(214, 176, 122, 0.3), rgba(196, 138, 68, 0.2));
  border: 1px solid rgba(214, 176, 122, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tokens-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-3);
  filter: drop-shadow(0 0 6px rgba(214, 176, 122, 0.5));
}

.tokens-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.tokens-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 2px;
}

.tokens-amount {
  font-family: "Cinzel", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-3);
  text-shadow: 0 0 20px rgba(214, 176, 122, 0.5);
  line-height: 1;
}

.user-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.user-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.user-info-value {
  font-size: 12px;
  color: var(--text);
}

.user-tokens-value {
  font-weight: 700;
  color: var(--accent-3);
}

.user-form {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.user-form-section {
  display: grid;
  gap: 12px;
}

.user-form-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.user-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.delete-user-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(200, 80, 80, 0.3);
  background: rgba(80, 20, 20, 0.5);
  color: rgba(255, 180, 180, 0.9);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-user-btn:hover {
  border-color: rgba(200, 80, 80, 0.6);
  background: rgba(100, 30, 30, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.user-save-status {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.user-save-status.success {
  color: #6ddb8a;
}

.user-save-status.error {
  color: #e57373;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 15, 0.7);
}

.confirm-modal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.98), rgba(9, 12, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}

.confirm-modal-title {
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.confirm-modal-message {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.send-tokens-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(214, 176, 122, 0.4);
  background: rgba(214, 176, 122, 0.15);
  color: var(--accent-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-tokens-btn:hover {
  border-color: rgba(214, 176, 122, 0.7);
  background: rgba(214, 176, 122, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.tokens-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tokens-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 15, 0.8);
}

.tokens-modal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 24, 40, 0.98), rgba(9, 12, 20, 0.98));
  border: 1px solid rgba(214, 176, 122, 0.3);
  border-radius: 18px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(214, 176, 122, 0.1);
}

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

.tokens-modal-title {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--accent-3);
}

.tokens-modal-body {
  display: grid;
  gap: 16px;
}

.tokens-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tokens-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.tokens-recipient-name {
  font-weight: 600;
  color: var(--accent-3);
}

.tokens-status {
  font-size: 12px;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
}

.tokens-status.success {
  color: #6ddb8a;
  background: rgba(109, 219, 138, 0.1);
}

.tokens-status.error {
  color: #e57373;
  background: rgba(229, 115, 115, 0.1);
}

.tokens-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .dash-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .editor-grid,
  .field-row,
  .editor-actions {
    grid-template-columns: 1fr;
  }

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

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

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

  .user-form-actions {
    flex-direction: column;
  }
}
