/* =========================================================
   ADMIN REWARDS — EMPERIAL BLOXX
   PARTE 1 DE 2
   ========================================================= */

/* =========================
   CONFIGURAÇÕES GERAIS
   ========================= */

:root {
  --admin-bg: #070707;
  --admin-bg-soft: #0c0c0c;
  --admin-card: rgba(17, 17, 17, 0.92);
  --admin-card-strong: rgba(21, 21, 21, 0.98);

  --admin-primary: #facc15;
  --admin-primary-light: #fde047;
  --admin-primary-dark: #ca8a04;

  --admin-text: #f8fafc;
  --admin-text-soft: #d4d4d8;
  --admin-text-muted: #8b8b95;

  --admin-border: rgba(250, 204, 21, 0.14);
  --admin-border-strong: rgba(250, 204, 21, 0.34);

  --admin-green: #22c55e;
  --admin-red: #ef4444;
  --admin-orange: #f97316;

  --admin-radius-sm: 10px;
  --admin-radius-md: 16px;
  --admin-radius-lg: 22px;

  --admin-shadow:
    0 18px 55px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(250, 204, 21, 0.035);

  --admin-transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(250, 204, 21, 0.045),
      transparent 30%
    ),
    var(--admin-bg);

  color: var(--admin-text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  outline: none;
}

::selection {
  background: rgba(250, 204, 21, 0.3);
  color: #fff;
}

/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #090909;
}

::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.22);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.4);
}

/* =========================
   ESTRUTURA PRINCIPAL
   ========================= */

.admin-rewards {
  position: relative;
  min-height: 100vh;
  padding: 38px 20px 60px;
  overflow: hidden;
}

.admin-rewards__container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.admin-rewards__glow {
  position: fixed;
  z-index: 0;

  width: 420px;
  height: 420px;

  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.admin-rewards__glow--one {
  top: -180px;
  left: -160px;
  background: var(--admin-primary);
}

.admin-rewards__glow--two {
  right: -180px;
  bottom: -200px;
  background: var(--admin-primary-dark);
}

/* =========================
   CABEÇALHO
   ========================= */

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 28px;
  padding: 8px 2px;
}

.admin-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  color: var(--admin-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.admin-header__eyebrow::before {
  content: "";

  width: 28px;
  height: 2px;

  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--admin-primary),
    rgba(250, 204, 21, 0.25)
  );
}

.admin-header__title {
  margin: 0;

  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f4f4f5 52%,
    #a1a1aa 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-header__description {
  max-width: 660px;
  margin: 16px 0 0;

  color: var(--admin-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.admin-header__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  flex-shrink: 0;

  padding: 10px 14px;

  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 999px;

  background: rgba(34, 197, 94, 0.055);
  color: #bbf7d0;

  font-size: 12px;
  font-weight: 700;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.admin-header__status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--admin-green);

  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.1),
    0 0 14px rgba(34, 197, 94, 0.75);

  animation: admin-status-pulse 1.8s infinite;
}

@keyframes admin-status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.82);
    opacity: 0.6;
  }
}

/* =========================
   ESTATÍSTICAS
   ========================= */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;

  margin-bottom: 18px;
}

.admin-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 118px;
  padding: 20px;

  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0)
    ),
    rgba(14, 14, 14, 0.88);

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  overflow: hidden;
  transition:
    transform var(--admin-transition),
    border-color var(--admin-transition),
    box-shadow var(--admin-transition);
}

.admin-stat-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 18px;

  width: 42px;
  height: 2px;

  border-radius: 0 0 999px 999px;

  background: linear-gradient(
    90deg,
    var(--admin-primary),
    rgba(250, 204, 21, 0.15)
  );
}

.admin-stat-card::after {
  content: "";

  position: absolute;
  right: -36px;
  bottom: -52px;

  width: 115px;
  height: 115px;

  border-radius: 50%;

  background: rgba(250, 204, 21, 0.055);
  filter: blur(2px);

  pointer-events: none;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--admin-border-strong);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.46),
    0 0 24px rgba(250, 204, 21, 0.035);
}

.admin-stat-card__icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 14px;

  background: linear-gradient(
    145deg,
    rgba(250, 204, 21, 0.13),
    rgba(250, 204, 21, 0.04)
  );

  color: var(--admin-primary);
  font-size: 20px;
  font-weight: 900;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 20px rgba(250, 204, 21, 0.05);
}

.admin-stat-card > div:last-child {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-stat-card__label {
  color: var(--admin-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-stat-card__value {
  color: var(--admin-text);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* =========================
   GRID PRINCIPAL
   ========================= */

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 18px;

  margin-bottom: 18px;
}

/* =========================
   CARDS
   ========================= */

.admin-card {
  position: relative;

  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.026),
      rgba(255, 255, 255, 0)
    ),
    var(--admin-card);

  box-shadow: var(--admin-shadow);
  overflow: hidden;
}

.admin-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(250, 204, 21, 0.025) 45%,
      transparent 70%
    );

  pointer-events: none;
}

.admin-card--form,
.admin-card--info {
  padding: 26px;
}

.admin-card__header {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 24px;
}

.admin-card__eyebrow {
  display: block;
  margin-bottom: 7px;

  color: var(--admin-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.admin-card__title {
  margin: 0;

  color: var(--admin-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.025em;
}

/* =========================
   FORMULÁRIO
   ========================= */

.reward-form {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reward-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reward-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reward-form__group label {
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.reward-form__group input,
.reward-form__group textarea,
.admin-search input {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--admin-radius-sm);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.017),
      rgba(255, 255, 255, 0)
    ),
    rgba(5, 5, 5, 0.76);

  color: var(--admin-text);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    inset 0 0 18px rgba(0, 0, 0, 0.25);

  transition:
    border-color var(--admin-transition),
    background var(--admin-transition),
    box-shadow var(--admin-transition);
}

.reward-form__group input {
  height: 48px;
  padding: 0 14px;
}

.reward-form__group textarea {
  min-height: 112px;
  padding: 13px 14px;

  line-height: 1.55;
  resize: vertical;
}

.reward-form__group input::placeholder,
.reward-form__group textarea::placeholder,
.admin-search input::placeholder {
  color: #5f5f68;
}

.reward-form__group input:hover,
.reward-form__group textarea:hover,
.admin-search input:hover {
  border-color: rgba(250, 204, 21, 0.16);
}

.reward-form__group input:focus,
.reward-form__group textarea:focus,
.admin-search input:focus {
  border-color: rgba(250, 204, 21, 0.48);

  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.025),
      rgba(255, 255, 255, 0)
    ),
    rgba(7, 7, 7, 0.9);

  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.reward-form__group input:disabled,
.reward-form__group textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reward-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.reward-code-field input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.reward-code-field__button {
  min-width: 94px;
  height: 48px;
  padding: 0 18px;

  border: 1px solid rgba(250, 204, 21, 0.26);
  border-radius: var(--admin-radius-sm);

  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.14),
      rgba(250, 204, 21, 0.055)
    );

  color: var(--admin-primary-light);

  font-size: 12px;
  font-weight: 800;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.2);

  transition:
    transform var(--admin-transition),
    border-color var(--admin-transition),
    background var(--admin-transition),
    box-shadow var(--admin-transition);
}

.reward-code-field__button:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.55);

  background:
    linear-gradient(
      180deg,
      rgba(250, 204, 21, 0.22),
      rgba(250, 204, 21, 0.085)
    );

  box-shadow:
    0 11px 26px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(250, 204, 21, 0.06);
}

.reward-code-field__button:active {
  transform: translateY(0);
}

.reward-form__hint {
  color: #6f6f78;
  font-size: 11px;
  line-height: 1.5;
}

.reward-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 52px;
  margin-top: 2px;
  padding: 0 22px;

  border: 1px solid rgba(255, 224, 94, 0.6);
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #ffe36b 0%,
      #facc15 46%,
      #dcae08 100%
    );

  color: #111111;

  font-size: 13px;
  font-weight: 900;

  box-shadow:
    0 12px 28px rgba(250, 204, 21, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);

  overflow: hidden;

  transition:
    transform var(--admin-transition),
    filter var(--admin-transition),
    box-shadow var(--admin-transition);
}

.reward-form__submit::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 55%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.56),
    transparent
  );

  transform: skewX(-18deg);
  transition: 0.65s ease;
}

.reward-form__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);

  box-shadow:
    0 17px 34px rgba(250, 204, 21, 0.24),
    0 0 22px rgba(250, 204, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.reward-form__submit:hover::before {
  left: 135%;
}

.reward-form__submit:active {
  transform: translateY(0);
}

.reward-form__submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.65;
  transform: none;
}

.reward-form__submit-icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  border-radius: 7px;

  background: rgba(0, 0, 0, 0.12);

  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.reward-form__message {
  display: none;

  margin: 0;
  padding: 11px 13px;

  border-radius: 10px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.reward-form__message.is-visible {
  display: block;
}

.reward-form__message.is-success {
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.07);
  color: #bbf7d0;
}

.reward-form__message.is-error {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.07);
  color: #fecaca;
}

/* =========================
   CARD DE INFORMAÇÕES
   ========================= */

.admin-card--info {
  align-self: stretch;
}

.admin-info-list {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;

  padding: 15px;

  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.018);

  transition:
    border-color var(--admin-transition),
    background var(--admin-transition),
    transform var(--admin-transition);
}

.admin-info-item:hover {
  transform: translateX(3px);
  border-color: rgba(250, 204, 21, 0.15);
  background: rgba(250, 204, 21, 0.025);
}

.admin-info-item__number {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 11px;

  background: rgba(250, 204, 21, 0.065);

  color: var(--admin-primary);
  font-size: 11px;
  font-weight: 900;
}

.admin-info-item strong {
  display: block;
  margin-bottom: 5px;

  color: var(--admin-text-soft);
  font-size: 13px;
}

.admin-info-item p {
  margin: 0;

  color: var(--admin-text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.admin-warning {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;

  margin-top: 18px;
  padding: 14px;

  border: 1px solid rgba(249, 115, 22, 0.19);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      rgba(249, 115, 22, 0.075),
      rgba(249, 115, 22, 0.025)
    );
}

.admin-warning__icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 9px;

  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;

  font-size: 14px;
  font-weight: 900;
}

.admin-warning p {
  margin: 2px 0 0;

  color: #d6a57e;
  font-size: 11px;
  line-height: 1.55;
}

/* =========================================================
   ADMIN REWARDS — EMPERIAL BLOXX
   PARTE 2 DE 2
   ========================================================= */

/* =========================
   LISTA DE CÓDIGOS
   ========================= */

.admin-card--codes {
  padding: 0;
}

.admin-card__header--codes {
  margin: 0;
  padding: 24px 26px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.admin-search {
  width: 100%;
  max-width: 280px;
}

.admin-search input {
  height: 44px;
  padding: 0 14px;
}

/* =========================
   TABELA
   ========================= */

.admin-table-wrapper {
  position: relative;
  z-index: 1;

  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;

  border-collapse: collapse;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.018);
}

.admin-table th {
  padding: 14px 18px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.055);

  color: #7f7f89;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 17px 18px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.045);

  color: var(--admin-text-soft);
  font-size: 12px;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition:
    background var(--admin-transition),
    transform var(--admin-transition);
}

.admin-table tbody tr:not(.admin-table__empty-row):hover {
  background: rgba(250, 204, 21, 0.02);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--admin-primary-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.admin-table__code::before {
  content: "#";

  color: rgba(250, 204, 21, 0.45);
  font-size: 11px;
}

.admin-table__reward {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-table__reward strong {
  color: var(--admin-text);
  font-size: 12px;
}

.admin-table__reward span {
  max-width: 230px;

  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.5;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table__coins {
  color: var(--admin-primary);
  font-weight: 850;
}

.admin-table__usage {
  display: flex;
  flex-direction: column;
  gap: 7px;

  min-width: 95px;
}

.admin-table__usage-text {
  color: var(--admin-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.admin-table__usage-track {
  width: 100%;
  height: 5px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.admin-table__usage-bar {
  display: block;

  height: 100%;
  width: 0;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    var(--admin-primary-dark),
    var(--admin-primary-light)
  );

  box-shadow: 0 0 10px rgba(250, 204, 21, 0.14);
}

.admin-table__date {
  color: var(--admin-text-muted);
  white-space: nowrap;
}

/* =========================
   STATUS
   ========================= */

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 7px 10px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status-badge::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;
}

.admin-status-badge--active {
  border: 1px solid rgba(34, 197, 94, 0.17);
  background: rgba(34, 197, 94, 0.06);
  color: #bbf7d0;
}

.admin-status-badge--active::before {
  background: var(--admin-green);

  box-shadow: 0 0 9px rgba(34, 197, 94, 0.6);
}

.admin-status-badge--expired {
  border: 1px solid rgba(239, 68, 68, 0.17);
  background: rgba(239, 68, 68, 0.06);
  color: #fecaca;
}

.admin-status-badge--expired::before {
  background: var(--admin-red);
}

.admin-status-badge--disabled {
  border: 1px solid rgba(161, 161, 170, 0.14);
  background: rgba(161, 161, 170, 0.055);
  color: #c4c4cc;
}

.admin-status-badge--disabled::before {
  background: #8b8b95;
}

/* =========================
   AÇÕES DA TABELA
   ========================= */

.admin-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 34px;
  padding: 0 11px;

  border-radius: 9px;

  font-size: 10px;
  font-weight: 800;

  transition:
    transform var(--admin-transition),
    border-color var(--admin-transition),
    background var(--admin-transition),
    color var(--admin-transition);
}

.admin-action-button:hover {
  transform: translateY(-2px);
}

.admin-action-button:active {
  transform: translateY(0);
}

.admin-action-button--copy {
  border: 1px solid rgba(250, 204, 21, 0.18);
  background: rgba(250, 204, 21, 0.055);
  color: var(--admin-primary-light);
}

.admin-action-button--copy:hover {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.11);
}

.admin-action-button--delete {
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #fca5a5;
}

.admin-action-button--delete:hover {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.1);
}

/* =========================
   ESTADO VAZIO
   ========================= */

.admin-table__empty-row td {
  padding: 0;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 260px;
  padding: 36px 20px;

  text-align: center;
}

.admin-empty__icon {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;
  margin-bottom: 14px;

  border: 1px solid rgba(250, 204, 21, 0.16);
  border-radius: 16px;

  background: rgba(250, 204, 21, 0.045);

  color: var(--admin-primary);
  font-size: 22px;
  font-weight: 900;
}

.admin-empty strong {
  margin-bottom: 6px;

  color: var(--admin-text-soft);
  font-size: 14px;
}

.admin-empty p {
  margin: 0;

  color: var(--admin-text-muted);
  font-size: 11px;
}

/* =========================
   CARDS MOBILE
   ========================= */

.admin-mobile-list {
  position: relative;
  z-index: 1;

  display: none;
  padding: 16px;
}

.admin-mobile-code {
  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0)
    ),
    rgba(8, 8, 8, 0.72);
}

.admin-mobile-code + .admin-mobile-code {
  margin-top: 12px;
}

.admin-mobile-code__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
}

.admin-mobile-code__code {
  color: var(--admin-primary-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  word-break: break-all;
}

.admin-mobile-code__title {
  margin: 0 0 4px;

  color: var(--admin-text);
  font-size: 13px;
}

.admin-mobile-code__description {
  margin: 0;

  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.admin-mobile-code__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-top: 14px;
}

.admin-mobile-code__item {
  padding: 11px;

  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.016);
}

.admin-mobile-code__item span {
  display: block;
  margin-bottom: 5px;

  color: #6f6f78;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-mobile-code__item strong {
  color: var(--admin-text-soft);
  font-size: 11px;
}

.admin-mobile-code__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;

  margin-top: 14px;
}

.admin-mobile-code__actions .admin-action-button {
  width: 100%;
  min-height: 38px;
}

/* =========================
   MODAL
   ========================= */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.admin-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.admin-modal__content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 430px;
  padding: 28px;

  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0)
    ),
    #101010;

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(250, 204, 21, 0.05);

  text-align: center;

  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.admin-modal.is-open .admin-modal__content {
  transform: translateY(0) scale(1);
}

.admin-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.025);
  color: #a1a1aa;

  font-size: 20px;
  line-height: 1;

  transition:
    color var(--admin-transition),
    border-color var(--admin-transition),
    background var(--admin-transition);
}

.admin-modal__close:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.07);
  color: #fca5a5;
}

.admin-modal__icon {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;
  margin: 0 auto 16px;

  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 17px;

  background: rgba(239, 68, 68, 0.065);
  color: #fca5a5;

  font-size: 25px;
  font-weight: 900;
}

.admin-modal h2 {
  margin: 0 0 8px;

  color: var(--admin-text);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.admin-modal p {
  margin: 0 0 15px;

  color: var(--admin-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-modal #deleteCodeName {
  display: inline-block;

  max-width: 100%;
  padding: 9px 12px;

  border: 1px solid rgba(250, 204, 21, 0.16);
  border-radius: 10px;

  background: rgba(250, 204, 21, 0.045);
  color: var(--admin-primary-light);

  font-size: 12px;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.admin-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 22px;
}

.admin-modal__button {
  min-height: 45px;
  padding: 0 15px;

  border-radius: 11px;

  font-size: 12px;
  font-weight: 850;

  transition:
    transform var(--admin-transition),
    border-color var(--admin-transition),
    background var(--admin-transition);
}

.admin-modal__button:hover {
  transform: translateY(-2px);
}

.admin-modal__button--cancel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--admin-text-soft);
}

.admin-modal__button--cancel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.admin-modal__button--delete {
  border: 1px solid rgba(239, 68, 68, 0.34);
  background:
    linear-gradient(
      180deg,
      rgba(239, 68, 68, 0.2),
      rgba(239, 68, 68, 0.1)
    );
  color: #fecaca;
}

.admin-modal__button--delete:hover {
  border-color: rgba(239, 68, 68, 0.55);
  background:
    linear-gradient(
      180deg,
      rgba(239, 68, 68, 0.28),
      rgba(239, 68, 68, 0.14)
    );
}

/* =========================
   ESTADOS DE CARREGAMENTO
   ========================= */

.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.68;
}

.is-loading::after {
  content: "";

  width: 15px;
  height: 15px;
  margin-left: 8px;

  border: 2px solid rgba(17, 17, 17, 0.25);
  border-top-color: #111;

  border-radius: 50%;

  animation: admin-spin 0.75s linear infinite;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   TOAST
   ========================= */

.admin-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: min(360px, calc(100vw - 40px));
}

.admin-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;

  padding: 14px;

  border-radius: 13px;

  background: rgba(15, 15, 15, 0.96);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  animation: admin-toast-in 0.28s ease both;
}

.admin-toast--success {
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-toast--error {
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-toast__icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 9px;

  font-size: 13px;
  font-weight: 900;
}

.admin-toast--success .admin-toast__icon {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.admin-toast--error .admin-toast__icon {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.admin-toast strong {
  display: block;
  margin-bottom: 3px;

  color: var(--admin-text-soft);
  font-size: 12px;
}

.admin-toast p {
  margin: 0;

  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   ANIMAÇÕES DE ENTRADA
   ========================= */

.admin-header,
.admin-stats,
.admin-grid,
.admin-card--codes {
  animation: admin-fade-up 0.55s ease both;
}

.admin-stats {
  animation-delay: 0.06s;
}

.admin-grid {
  animation-delay: 0.12s;
}

.admin-card--codes {
  animation-delay: 0.18s;
}

@keyframes admin-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVIDADE
   ========================= */

@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card--info {
    align-self: auto;
  }

  .admin-info-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-warning {
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  .admin-rewards {
    padding: 26px 14px 40px;
  }

  .admin-header {
    flex-direction: column;
    margin-bottom: 22px;
  }

  .admin-header__status {
    align-self: flex-start;
  }

  .admin-card--form,
  .admin-card--info {
    padding: 21px;
  }

  .admin-card__header--codes {
    align-items: stretch;
    flex-direction: column;
    padding: 21px;
  }

  .admin-search {
    max-width: none;
  }

  .admin-info-list {
    grid-template-columns: 1fr;
  }

  .admin-table-wrapper {
    display: none;
  }

  .admin-mobile-list {
    display: block;
  }

  .admin-mobile-list > .admin-empty {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .admin-rewards {
    padding: 22px 10px 34px;
  }

  .admin-header__title {
    font-size: 38px;
  }

  .admin-header__description {
    font-size: 13px;
    line-height: 1.6;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-stat-card {
    min-height: 96px;
    padding: 16px;
  }

  .admin-stat-card__icon {
    width: 43px;
    height: 43px;
  }

  .admin-stat-card__value {
    font-size: 24px;
  }

  .admin-card {
    border-radius: 17px;
  }

  .admin-card--form,
  .admin-card--info {
    padding: 17px;
  }

  .admin-card__title {
    font-size: 19px;
  }

  .reward-form__row {
    grid-template-columns: 1fr;
  }

  .reward-code-field {
    grid-template-columns: 1fr;
  }

  .reward-code-field__button {
    width: 100%;
  }

  .reward-form__submit {
    width: 100%;
  }

  .admin-card__header--codes {
    padding: 17px;
  }

  .admin-mobile-list {
    padding: 10px;
  }

  .admin-mobile-code {
    padding: 14px;
  }

  .admin-mobile-code__header {
    flex-direction: column;
  }

  .admin-mobile-code__grid {
    grid-template-columns: 1fr;
  }

  .admin-modal__content {
    padding: 24px 18px 18px;
  }

  .admin-modal__actions {
    grid-template-columns: 1fr;
  }

  .admin-toast-container {
    top: 10px;
    right: 10px;

    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   LOGIN ADMINISTRATIVO
   ========================= */

.is-hidden {
  display: none !important;
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  padding: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(250, 204, 21, 0.055),
      transparent 32%
    ),
    #070707;

  overflow: hidden;
}

.admin-login.is-hidden {
  display: none;
}

.admin-login__glow {
  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background: rgba(250, 204, 21, 0.12);
  filter: blur(110px);

  pointer-events: none;
}

.admin-login__card {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 450px;
  padding: 34px;

  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0)
    ),
    rgba(15, 15, 15, 0.96);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(250, 204, 21, 0.055);
}

.admin-login__eyebrow {
  display: block;
  margin-bottom: 9px;

  color: var(--admin-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.admin-login__title {
  margin: 0;

  color: var(--admin-text);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-login__description {
  margin: 14px 0 26px;

  color: var(--admin-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.admin-login__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-login__group label {
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-login__group input {
  width: 100%;
  height: 49px;
  padding: 0 14px;

  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  outline: none;

  background: rgba(5, 5, 5, 0.78);
  color: var(--admin-text);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.admin-login__group input:focus {
  border-color: rgba(250, 204, 21, 0.48);

  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.075);
}

.admin-login__button {
  min-height: 52px;
  margin-top: 3px;

  border: 1px solid rgba(255, 224, 94, 0.65);
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #ffe36b 0%,
      #facc15 48%,
      #dcae08 100%
    );

  color: #111;
  font-size: 13px;
  font-weight: 900;

  box-shadow:
    0 13px 30px rgba(250, 204, 21, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.admin-login__button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 17px 34px rgba(250, 204, 21, 0.24);
}

.admin-login__button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.admin-login__message {
  display: none;
  margin: 0;
  padding: 11px 13px;

  border-radius: 10px;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-login__message.is-visible {
  display: block;
}

.admin-login__message.is-error {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.07);
  color: #fecaca;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-logout-button {
  min-height: 38px;
  padding: 0 15px;

  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 999px;

  background: rgba(239, 68, 68, 0.055);
  color: #fca5a5;

  font-size: 11px;
  font-weight: 800;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.admin-logout-button:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 560px) {
  .admin-login__card {
    padding: 25px 19px;
    border-radius: 18px;
  }

  .admin-login__title {
    font-size: 29px;
  }

  .admin-header__actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================
   BOTÕES DE NAVEGAÇÃO
   ========================= */

.admin-nav-button,
.admin-nav-button:link,
.admin-nav-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;

  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.02);

  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition: all .25s ease;
}

.admin-nav-button:hover {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.08);
}

.admin-nav-button--active,
.admin-nav-button--active:link,
.admin-nav-button--active:visited {
  color: #111;

  background: linear-gradient(
    180deg,
    #fde047,
    #eab308
  );

  border-color: #facc15;

  box-shadow:
    0 10px 28px rgba(250, 204, 21, 0.18);
}