/* ============ ACCOUNT PAGE ============ */
.account-page { background: #f2f2f2; }

.account-wrap {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 104px 32px 60px;
  width: 100%;
  box-sizing: border-box;
}
.account-wrap > * + * { margin-top: 20px; }

/* ── Card shell ── */
.ac-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #ececec;
  overflow: hidden;
}
.ac-card__head {
  background: var(--red);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ac-card__head-title {
  margin: 0;
  font-family: 'Mossport', sans-serif;
  font-weight: normal;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-card__body { padding: 24px; }

/* ── Passport card ── */
.passport-card {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #ececec;
}
.passport-card__left {
  background: linear-gradient(160deg, #eb3333 0%, #a81818 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.passport-card__left::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  top: -30px;
  right: -30px;
}
.passport-card__left::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  bottom: -20px;
  left: -20px;
}
.passport-card__logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}
.passport-card__label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  position: relative;
  z-index: 1;
}
.passport-card__status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.passport-card__status-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.passport-card__status-icon--issued {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 16px rgba(34,197,94,0.5), 0 0 0 4px rgba(34,197,94,0.2);
}
.passport-card__status-icon--not-issued {
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.2);
}
.passport-card__status-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.passport-card__status-label--issued { color: #86efac; }
.passport-card__status-label--not-issued { color: rgba(255,255,255,0.4); }

.passport-card__right {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}
.passport-card__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0px, transparent 28px, rgba(235,51,51,0.025) 28px, rgba(235,51,51,0.025) 29px);
  pointer-events: none;
}
.passport-card__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  position: relative;
  z-index: 1;
}
.passport-field__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 2px;
}
.passport-field__value {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.passport-field__value--name { font-size: 18px; }
.passport-field__value--muted { color: #aaa; font-weight: 400; }
.passport-field__value-sub { color: #999; font-size: 14px; }

.passport-card__footer {
  border-top: 1px solid #ececec;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.passport-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.passport-card__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.passport-card__divider {
  width: 1px;
  height: 16px;
  background: #e0e0e0;
}
.passport-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-card {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-block;
  line-height: normal;
}
.btn-card--primary {
  border: 1.5px solid var(--red);
  color: var(--red);
  background: #fff;
}
.btn-card--primary:hover { background: var(--red); color: #fff; }
.btn-card--muted {
  border: 1.5px solid #ddd;
  color: #999;
  background: #fff;
}
.btn-card--muted:hover { border-color: #999; color: #555; }
.btn-card--logout:hover { border-color: var(--red); color: var(--red); }

/* ── Stats row ── */
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  flex: 1.4;
  min-width: 160px;
}
.level-badge--novice   { background: linear-gradient(135deg, #444 0%, #222 100%); }
.level-badge--bronze   { background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%); }
.level-badge--silver   { background: linear-gradient(135deg, #8e9eab 0%, #5f6e78 100%); }
.level-badge--gold     { background: linear-gradient(135deg, #f7b733 0%, #c9922a 100%); }

.level-badge__icon { height: 48px; width: 48px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.22)); flex-shrink: 0; }
.level-badge__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; flex: 1; }
.level-badge__eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.7; font-weight: 600; }
.level-badge__name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(18px, 2.5vw, 24px); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.level-badge__next { font-size: 11px; opacity: 0.65; }

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 110px;
  position: relative;
  overflow: hidden;
}
.stat-box--points {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1.5px solid #fde8e8;
}
.stat-box--rank {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1.5px solid #fde8e8;
}
.stat-box--district {
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
  border: 1.5px solid #dbeafe;
}
.stat-box__number {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}
.stat-box--points .stat-box__number { font-size: clamp(40px, 6vw, 60px); color: var(--red); }
.stat-box--rank .stat-box__number,
.stat-box--district .stat-box__number { color: var(--ink); }
.stat-box__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-top: 4px;
}
.stat-box--points .stat-box__label { color: var(--red); opacity: 0.6; }
.stat-box--rank .stat-box__label { color: var(--red); opacity: 0.7; }
.stat-box--district .stat-box__label { color: #2563a8; opacity: 0.7; }
.stat-box__sub { font-size: 11px; color: #bbb; margin-top: 2px; }
.stat-box__icon { margin-bottom: 4px; opacity: 0.7; }

/* ── Progress bar ── */
@keyframes stripes {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 0; }
}
.progress-bar-wrap { margin-top: 18px; }
.progress-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.progress-bar {
  height: 14px;
  background: #ececec;
  border-radius: 7px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  border-radius: 7px;
  width: 0%;
  background: repeating-linear-gradient(135deg, #eb3333 0px, #eb3333 20px, #d42b2b 20px, #d42b2b 40px);
  background-size: 40px 40px;
  animation: stripes 0.8s linear infinite;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-bar__hint {
  margin-top: 6px;
  font-size: 12px;
  color: #bbb;
  text-align: right;
}
.progress-bar__hint--done { color: #1a8a4a; font-weight: 700; }

/* ── Prizes grid ── */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prize-item {
  border: 2px solid #ececec;
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prize-item--available {
  border-color: var(--red);
  box-shadow: 0 4px 18px rgba(235,51,51,0.12);
}
.prize-item--awarded {
  border-color: #1a8a4a;
  background: #f7fbf9;
}
.prize-item--locked { opacity: 0.45; }

.prize-item__imgs {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 128px;
  flex-shrink: 0;
}
.prize-item__img { width: 100px; height: 100px; object-fit: contain; }
.prize-item__imgs .prize-item__img:nth-child(2) { width: 80px; height: 80px; }
.prize-item__level {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.prize-item__prizes { font-size: 16px; color: #666; line-height: 1.4; }
.prize-item__min { font-size: 13px; color: #bbb; }

.prize-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
}
.prize-status--available { background: var(--red); color: #fff; }
.prize-status--awarded { background: #1a8a4a; color: #fff; }
.prize-status--locked { background: #eee; color: #bbb; }

/* ── Profile edit form grid ── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Misc buttons ── */
.btn-outline {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid var(--red);
  color: var(--red);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-logout {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid #ddd;
  color: #999;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-logout:hover { border-color: #999; color: #555; }

/* ── Profile Edit page ── */
.edit-wrap {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 104px 32px 60px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.edit-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.edit-page__title {
  margin: 0;
  font-family: 'Mossport', sans-serif;
  font-weight: normal;
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  color: #121212;
  letter-spacing: 0.5px;
}
.edit-page__back {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}
.edit-page__back:hover { color: var(--red); }

.edit-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ef-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.ef-row > * { flex: 1; min-width: 0; }
.ef-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 6px;
}
.ef-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  color: #222;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
  appearance: none;
}
.ef-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(235,51,51,0.12);
}
.ef-input--select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.ef-label-hint {
  font-weight: 400;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: #aaa;
}
.ef-hint {
  margin-top: 5px;
  font-size: 12px;
  color: #bbb;
}
.ef-readonly-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  background: #f7f7f7;
  color: #aaa;
  font-size: 15px;
  font-family: 'PT Sans', sans-serif;
  box-sizing: border-box;
}
.ef-error {
  margin-top: 5px;
  font-size: 13px;
  color: #c81e1e;
  font-weight: 600;
}
.edit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 8px;
}
.btn-edit-save {
  font-family: 'Mossport', sans-serif;
  font-weight: normal;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 36px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(235,51,51,0.35);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: inline-block;
}
.btn-edit-save:hover {
  background: #c81e1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(235,51,51,0.45);
}
.btn-edit-save:active { transform: translateY(0); }
.btn-edit-cancel {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  background: #fff;
  color: #999;
  border: 2px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-edit-cancel:hover { border-color: #999; color: #555; }
.edit-alert {
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.edit-alert--success {
  background: #e6f7ee;
  border: 1px solid #b7e4c7;
  color: #1a8a4a;
}
.edit-alert--error {
  background: #fff5f5;
  border: 1px solid #fcc;
  color: #c81e1e;
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .prizes-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { flex-direction: column; }
  .passport-card__fields { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .account-wrap { padding: 80px 14px 48px; }
  .edit-wrap { padding: 80px 14px 48px; }
  .ac-card__body { padding: 18px; }
  .edit-card__body { padding: 18px; }
  .ef-row { flex-direction: column; }
  .prizes-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .passport-card { flex-direction: column; }
  .passport-card__left { border-radius: 10px 10px 0 0; min-width: 0; padding: 20px; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .passport-card__right { border-radius: 0 0 10px 10px; }
  .passport-card__footer { flex-direction: column; align-items: flex-start; }
}

/* ============ ADMIN PANEL ============ */
.admin-page { background: #f2f2f2; }

.admin-wrap {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 32px 60px;
  width: 100%;
  box-sizing: border-box;
}
.admin-inner { display: flex; flex-direction: column; gap: 20px; }

/* Dark card head variant */
.ac-card__head--dark { background: #121212; }

/* Header with right label */
.ac-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-total-label {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}

/* Search row */
.admin-search-row {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.admin-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  color: #222;
  outline: none;
  background: #fafafa;
  transition: border-color 0.15s;
}
.admin-search-input:focus { border-color: #eb3333; background: #fff; }

.admin-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filter-tab {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #888;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.admin-filter-tab:hover { border-color: #eb3333; color: #eb3333; }
.admin-filter-tab--active { background: #eb3333; border-color: #eb3333; color: #fff; }

/* Buttons */
.admin-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  background: none;
}
.admin-btn--primary { background: #eb3333; color: #fff; border-color: #eb3333; }
.admin-btn--primary:hover { background: #c81e1e; }
.admin-btn--muted { border-color: #e0e0e0; color: #888; background: #fff; }
.admin-btn--muted:hover { border-color: #eb3333; color: #eb3333; }
.admin-btn--outline { border-color: #e0e0e0; color: #888; background: #fff; font-size: 12px; padding: 6px 14px; }
.admin-btn--outline:hover { border-color: #eb3333; color: #eb3333; }

/* Stats row */
.admin-stats-row {
  padding: 14px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.admin-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}
.admin-stat strong { color: #222; margin-left: 2px; }
.admin-stat__val--green { color: #1a8a4a; }

/* Table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.admin-th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  background: #f7f7f7;
  border-bottom: 2px solid #ececec;
  white-space: nowrap;
}
.admin-th--num { padding-left: 24px; width: 44px; }
.admin-th--center { text-align: center; }
.admin-th--right { text-align: right; }
.admin-th__sort { color: #999; text-decoration: none; transition: color 0.15s; }
.admin-th__sort:hover { color: #eb3333; }
.admin-th__sort--active { color: #eb3333; }

.admin-tr { border-bottom: 1px solid #f5f5f5; transition: background 0.12s; }
.admin-tr:hover { background: #fff8f8; }
.admin-td { padding: 14px 16px; vertical-align: middle; }
.admin-td--num { padding-left: 24px; font-family: 'Oswald', sans-serif; font-size: 13px; color: #ccc; font-weight: 500; }
.admin-td--center { text-align: center; }
.admin-td--right { text-align: right; }
.admin-td--uin { font-family: 'Oswald', sans-serif; font-size: 13px; color: #888; white-space: nowrap; letter-spacing: 0.5px; }
.admin-td--okrug { font-size: 13px; font-weight: 700; color: #555; white-space: nowrap; }
.admin-td__name { font-weight: 700; font-size: 14px; color: #121212; line-height: 1.3; }
.admin-td__email { font-size: 13px; color: #555; white-space: nowrap; }
.admin-td__sub { font-size: 12px; color: #bbb; margin-top: 2px; }

/* Passport icon button */
.admin-passport-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  border-radius: 50%;
}
.admin-passport-btn:hover { opacity: 0.75; }
.admin-passport-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.admin-passport-icon--issued {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
.admin-passport-icon--none {
  background: #f0f0f0;
  border: 1.5px dashed #ddd;
}

/* Points */
.admin-points {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #eb3333;
}
.admin-points--dim { color: #ddd; }

/* Level badge (list) */
.admin-level-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
}
.admin-level-badge--novice { background: linear-gradient(135deg, #444 0%, #222 100%); }
.admin-level-badge--bronze { background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%); }
.admin-level-badge--silver { background: linear-gradient(135deg, #8e9eab 0%, #5f6e78 100%); }
.admin-level-badge--gold   { background: linear-gradient(135deg, #f7b733 0%, #c9922a 100%); }

/* Empty state */
.admin-empty {
  padding: 60px 24px;
  text-align: center;
  color: #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.admin-empty__title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ccc;
}
.admin-empty__text { font-size: 14px; color: #bbb; }

/* Pagination */
.admin-pager {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-pager__info { font-size: 13px; color: #bbb; }
.admin-pager__btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-pager__num {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #888;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.admin-pager__num:hover { border-color: #eb3333; color: #eb3333; }
.admin-pager__num--active { background: #eb3333; border-color: #eb3333; color: #fff; cursor: default; }
.admin-pager__ellipsis { font-size: 13px; color: #ccc; padding: 0 4px; }

/* Breadcrumb */
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #bbb;
}
.admin-breadcrumb__link {
  color: #bbb;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.admin-breadcrumb__link:hover { color: #eb3333; }
.admin-breadcrumb__sep { color: #ddd; }
.admin-breadcrumb__current {
  color: #888;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Passport toggle button in card head */
.admin-passport-toggle {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s;
}
.admin-passport-toggle:hover { opacity: 0.85; }
.admin-passport-toggle--issued { background: rgba(255,255,255,0.2); color: #fff; }
.admin-passport-toggle--none { background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.7); }

/* Stats cards (detail page) */
.admin-stats-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}
.admin-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  flex: 1;
  min-width: 130px;
  text-align: center;
  gap: 4px;
}
.admin-stat-card--red {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1.5px solid #fde8e8;
}
.admin-stat-card--blue {
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
  border: 1.5px solid #dbeafe;
}
.admin-stat-card__num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #121212;
  line-height: 1;
}
.admin-stat-card__sub { font-size: 11px; color: #bbb; }
.admin-stat-card__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  opacity: 0.7;
}

/* Admin level card (admin detail page) */
.admin-level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  flex: 1.4;
  min-width: 160px;
}
.admin-level-card--novice  { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.admin-level-card--bronze  { background: linear-gradient(135deg, #9B6540 0%, #7a4a28 100%); }
.admin-level-card--silver  { background: linear-gradient(135deg, #5A7080 0%, #3d5460 100%); }
.admin-level-card--gold    { background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%); }
.admin-level-card__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  font-weight: 600;
  margin-bottom: 4px;
}
.admin-level-card__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Points display/edit wrappers — centered */
#points-display, #points-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Points display button */
.admin-points-display-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  color: #eb3333;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.admin-points-display-btn:hover { opacity: 0.75; }

/* Points cancel button */
.admin-points-cancel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.admin-points-cancel:hover { background: #e0e0e0; }

/* Points edit form */
.admin-points-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-points-input {
  width: 90px;
  padding: 6px 10px;
  border: 1.5px solid #eb3333;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #eb3333;
  text-align: center;
  outline: none;
  background: #fff;
}
.admin-points-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #22c55e;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.admin-points-save:hover { background: #16a34a; }

/* Prize admin actions */
.prize-item__divider { border-top: 1px solid #f0f0f0; margin: 4px 16px; }
.prize-item__admin-action {
  padding: 0 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.admin-prize-btn {
  width: 100%;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.15s;
}
.admin-prize-btn:hover:not(:disabled) { opacity: 0.82; }
.admin-prize-btn--issued { background: #1a8a4a; color: #fff; }
.admin-prize-btn--available { background: #eb3333; color: #fff; }
.admin-prize-btn--locked { background: #f0f0f0; color: #bbb; cursor: not-allowed; }
.admin-prize-date { font-size: 11px; color: #16a34a; text-align: center; font-weight: 700; }

/* Nav link extras */
.nav__link--admin {
  color: #fff !important;
  background: #121212;
  padding: 9px 16px;
  border-radius: 2px;
}
.nav__link--logout {
  border: none;
  cursor: pointer;
}

/* Admin page: darker level badge colors per design */
.admin-page .level-badge--novice  { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.admin-page .level-badge--bronze  { background: linear-gradient(135deg, #9B6540 0%, #7a4a28 100%); }
.admin-page .level-badge--silver  { background: linear-gradient(135deg, #5A7080 0%, #3d5460 100%); }
.admin-page .level-badge--gold    { background: linear-gradient(135deg, #B8860B 0%, #8B6508 100%); }

/* Admin prize card: images get top padding since card has no bottom padding */
.admin-page .prize-item { padding-bottom: 0; }
.admin-page .prize-item__imgs { padding-top: 18px; }

@media (max-width: 860px) {
  .admin-wrap { padding: 80px 16px 48px; }
  .admin-stats-cards { flex-direction: column; }
}

@media (max-width: 600px) {
  .admin-wrap { padding: 80px 12px 40px; }
  .admin-search-row { padding: 14px; }
  .admin-stats-row { padding: 12px 14px; }
  .admin-th--num, .admin-td--num { display: none; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
body { display: flex; flex-direction: column; min-height: 100vh; }
.footer {
  background: #111;
  color: #fff;
  padding: 30px 24px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eb3333;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
}
.footer__email:hover { opacity: 0.8; }
.footer { margin-top: auto; flex-shrink: 0; }
