/* ============================================================
   Strevo — Gamified Life Tracker
   Dark RPG-Themed Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol { list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ── Root Variables ────────────────────────────────────────── */

:root {
  /* Core palette */
  --gold:   #f0c040;
  --gold2:  #ffd700;
  --ember:  #ff6b2b;
  --teal:   #00e5cc;

  /* Surfaces */
  --dark:   #0a0a0f;
  --dark2:  #111118;
  --dark3:  #1a1a28;
  --dark4:  #22223a;

  /* Text */
  --text:   #d4d0c8;
  --muted:  #7a7890;
  --white:  #f5f3ee;

  /* Tier colors */
  --novice:     #8bc34a;
  --apprentice: #29b6f6;
  --expert:     #ab47bc;
  --master:     #ef6c00;
  --legend:     #f0c040;
  --myth:       #e91e63;

  /* Difficulty */
  --diff-easy:      #8bc34a;
  --diff-medium:    #f9a825;
  --diff-hard:      #ef6c00;
  --diff-legendary: #e91e63;

  /* Misc */
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 4px 24px rgba(0, 0, 0, .45);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);

  --font-heading: 'Cinzel', serif;
  --font-body:    'Rajdhani', sans-serif;
}

/* ── Body & Background ─────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240, 192, 64, .06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(255, 107, 43, .04), transparent),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, .015) 39px,
      rgba(255, 255, 255, .015) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, .015) 39px,
      rgba(255, 255, 255, .015) 40px
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.25;
}

h1 { font-size: 2rem;   font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ── Main Navigation ───────────────────────────────────────── */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.5rem;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border-bottom: 1px solid rgba(240, 192, 64, .12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.nav-brand-icon {
  font-size: 1.5rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  position: relative;
  padding: .45rem .85rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* User section */
.nav-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 6px rgba(240, 192, 64, .3);
}

.nav-username {
  font-weight: 600;
  color: var(--white);
  font-size: .95rem;
}

.nav-level {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240, 192, 64, .1);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(240, 192, 64, .25);
}

/* ── Main Content ──────────────────────────────────────────── */

.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ── Section Titles ────────────────────────────────────────── */

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 192, 64, .3), transparent);
}

/* ── Cards ─────────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  opacity: .7;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(240, 192, 64, .08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Forms ─────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: .6rem .85rem;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, .15), 0 0 12px rgba(240, 192, 64, .08);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237a7890' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.3rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(240, 192, 64, .25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(240, 192, 64, .35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--dark2);
  color: var(--gold);
  border: 1px solid rgba(240, 192, 64, .3);
}

.btn-secondary:hover {
  background: rgba(240, 192, 64, .08);
  border-color: var(--gold);
}

.btn-danger {
  background: rgba(220, 50, 50, .15);
  color: #f06060;
  border: 1px solid rgba(220, 50, 50, .25);
}

.btn-danger:hover {
  background: rgba(220, 50, 50, .25);
  border-color: #f06060;
}

.btn-sm {
  padding: .3rem .75rem;
  font-size: .82rem;
}

.btn-icon {
  padding: .4rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  line-height: 1;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, .06);
}

/* ── EXP Bar ───────────────────────────────────────────────── */

.xp-bar-wrap {
  margin: .75rem 0;
}

.xp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.xp-bar-bg {
  width: 100%;
  height: 14px;
  background: var(--dark2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .04);
}

.xp-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  position: relative;
  animation: fillBar 1.2s ease-out forwards;
  transform-origin: left;
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: shimmer 2s ease-in-out infinite 1.2s;
}

@keyframes fillBar {
  from { width: 0; }
}

@keyframes shimmer {
  0%   { opacity: 0; transform: translateX(-30px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px); }
}

/* ── Toast Notifications ───────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: .6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.2rem;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  animation: toastIn .4s ease-out forwards;
  min-width: 260px;
  max-width: 380px;
}

.toast.toast-success { border-left-color: var(--diff-easy); }
.toast.toast-error   { border-left-color: #f06060; }
.toast.toast-info    { border-left-color: var(--teal); }
.toast.toast-xp      { border-left-color: var(--gold); }

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast.fade-out {
  animation: toastOut .35s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

/* ── Level Up Modal ────────────────────────────────────────── */

.level-up-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.level-up-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.level-up-content {
  text-align: center;
  padding: 3rem 2.5rem;
  background: var(--dark3);
  border: 1px solid rgba(240, 192, 64, .2);
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(240, 192, 64, .15), var(--shadow);
  animation: levelUpPop .5s cubic-bezier(.17, .67, .35, 1.3) forwards;
}

.level-up-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(240, 192, 64, .6),
    0 0 60px rgba(240, 192, 64, .3);
  animation: glowPulse 1.5s ease-in-out infinite;
}

.level-up-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin: .5rem 0;
  text-shadow: 0 0 30px rgba(240, 192, 64, .4);
}

.level-up-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

@keyframes levelUpPop {
  0%   { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(240, 192, 64, .6), 0 0 60px rgba(240, 192, 64, .3); }
  50%      { text-shadow: 0 0 30px rgba(240, 192, 64, .9), 0 0 80px rgba(240, 192, 64, .5); }
}

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

/* ── Badges ────────────────────────────────────────────────── */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.badge-icon {
  font-size: 2.2rem;
}

.badge-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--white);
}

.badge-card.rarity-common    { border-top: 2px solid var(--muted); }
.badge-card.rarity-rare      { border-top: 2px solid var(--apprentice); }
.badge-card.rarity-epic      { border-top: 2px solid var(--expert); }
.badge-card.rarity-legendary { border-top: 2px solid var(--gold); }

.badge-card.rarity-legendary {
  box-shadow: 0 0 16px rgba(240, 192, 64, .1);
}

.badge-rarity {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.badge-card.rarity-common    .badge-rarity { color: var(--muted); }
.badge-card.rarity-rare      .badge-rarity { color: var(--apprentice); }
.badge-card.rarity-epic      .badge-rarity { color: var(--expert); }
.badge-card.rarity-legendary .badge-rarity { color: var(--gold); }

/* ── Quest Cards ───────────────────────────────────────────── */

.quest-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.quest-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.quest-card:hover {
  background: var(--dark4);
  transform: translateX(3px);
}

.quest-card.completed {
  opacity: .5;
}

.quest-card.completed .quest-name {
  text-decoration: line-through;
}

.cat-icon {
  font-size: 1.5rem;
  width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}

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

.quest-name {
  font-weight: 600;
  color: var(--white);
  font-size: .98rem;
}

.quest-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.diff-badge {
  display: inline-block;
  padding: 1px 10px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 20px;
}

.diff-badge.easy      { background: rgba(139, 195, 74, .15); color: var(--diff-easy); }
.diff-badge.medium    { background: rgba(249, 168, 37, .15); color: var(--diff-medium); }
.diff-badge.hard      { background: rgba(239, 108, 0, .15);  color: var(--diff-hard); }
.diff-badge.legendary { background: rgba(233, 30, 99, .15);  color: var(--diff-legendary); }

.xp-pill {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240, 192, 64, .1);
  padding: 1px 10px;
  border-radius: 20px;
}

.quest-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

/* ── Leaderboard ───────────────────────────────────────────── */

.leaderboard-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
  min-width: 560px;
}

.leaderboard-table th {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.leaderboard-table td {
  padding: .7rem 1rem;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  color: var(--text);
}

.leaderboard-table tbody tr {
  transition: background var(--transition);
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, .02);
}

.leaderboard-table tr.current-user {
  background: rgba(240, 192, 64, .06);
  border-left: 3px solid var(--gold);
}

.leaderboard-table tr.current-user td {
  color: var(--white);
  font-weight: 600;
}

.rank-number {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

.tier-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
}

.tier-dot.novice     { background: var(--novice); }
.tier-dot.apprentice { background: var(--apprentice); }
.tier-dot.expert     { background: var(--expert); }
.tier-dot.master     { background: var(--master); }
.tier-dot.legend     { background: var(--legend); }
.tier-dot.myth       { background: var(--myth); }

/* ── Activity Heatmap ──────────────────────────────────────── */

.heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, 14px);
  gap: 3px;
  justify-content: start;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--dark4);
  transition: background var(--transition);
}

.heatmap-cell[data-level="1"] { background: rgba(139, 195, 74, .25); }
.heatmap-cell[data-level="2"] { background: rgba(139, 195, 74, .45); }
.heatmap-cell[data-level="3"] { background: rgba(139, 195, 74, .65); }
.heatmap-cell[data-level="4"] { background: rgba(139, 195, 74, .85); }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .04);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--gold);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--gold2);
}

.footer-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem .8rem;
  margin-bottom: 1rem;
}

.footer-support-label {
  color: var(--muted);
  font-size: .85rem;
}

.footer-support-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(240, 192, 64, .25);
  border-radius: var(--radius-sm);
  background: rgba(240, 192, 64, .06);
  transition: all var(--transition);
}

.footer-support-btn:hover {
  color: var(--gold2);
  border-color: rgba(240, 192, 64, .4);
  background: rgba(240, 192, 64, .12);
  transform: translateY(-1px);
}

.lang-toggle {
  display: inline-flex;
  gap: .25rem;
  margin-top: .75rem;
}

.lang-btn {
  padding: .25rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--gold);
  border-color: rgba(240, 192, 64, .3);
  background: rgba(240, 192, 64, .06);
}

/* ── Stat Boxes ────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.stat-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
}

/* ── Tabs ──────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: .15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  position: relative;
  padding: .65rem 1.15rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--transition);
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--gold);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

/* ── Utility Classes ───────────────────────────────────────── */

.text-gold   { color: var(--gold); }
.text-ember  { color: var(--ember); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs  { gap: .35rem; }
.gap-sm  { gap: .65rem; }
.gap-md  { gap: 1rem; }
.gap-lg  { gap: 1.5rem; }
.mt-1    { margin-top: .5rem; }
.mt-2    { margin-top: 1rem; }
.mt-3    { margin-top: 1.5rem; }
.mb-1    { margin-bottom: .5rem; }
.mb-2    { margin-bottom: 1rem; }

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

/* ── Scrollbar ─────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--dark4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .12);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    padding: .5rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    padding-top: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: .55rem .75rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: rgba(240, 192, 64, .08);
    border-radius: var(--radius-sm);
  }

  .nav-user {
    border-left: none;
    padding-left: 0;
  }

  .main-content {
    padding: 1.25rem 1rem 3rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

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

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

  .quest-card {
    flex-wrap: wrap;
  }

  .quest-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .04);
  }

  .leaderboard-wrap {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .level-up-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .level-up-title {
    font-size: 1.8rem;
  }

  .level-up-number {
    font-size: 3.5rem;
  }

  .toast-container {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
  }

  .toast {
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .badge-grid {
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .tabs {
    gap: 0;
  }

  .tab {
    padding: .5rem .75rem;
    font-size: .84rem;
  }
}

/* ── v2 — Category Checkbox Grid ──────────────────────── */

.category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin-bottom: .5rem;
}

.category-check-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--dark4);
  border: 1px solid rgba(255,255,255,.06);
  padding: .5rem .75rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: .85rem;
}

.category-check-item:hover {
  border-color: var(--cat-color, var(--gold));
}

.category-check-item input[type="checkbox"] {
  accent-color: var(--gold);
}

.category-check-item input[type="checkbox"]:checked ~ .cat-check-name {
  color: var(--white);
}

.cat-check-icon { font-size: 1.1rem; }
.cat-check-name { flex: 1; color: var(--text); }
.cat-check-mult { font-size: .75rem; color: var(--teal); font-weight: 700; }

.cat-multiplier-preview {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .25rem;
}
.cat-multiplier-preview strong {
  color: var(--teal);
}

/* ── v2 — Quest Start/End Badges ──────────────────────── */

.quest-start-badge,
.quest-end-badge {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
}

.quest-upcoming-badge {
  font-size: .9rem;
  color: var(--muted);
  padding: .25rem .75rem;
}

.quest-card.upcoming {
  opacity: .7;
  border-left: 3px solid var(--apprentice);
}

.quest-card-header .quest-cat-icons-wrap {
  width: auto;
  min-width: 44px;
  padding: 0 6px;
}

.quest-card-header .quest-cat-single {
  font-size: 0.85rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title-row .section-title {
  margin-bottom: 0;
}

.quest-item.upcoming {
  opacity: .65;
}

.quest-item-actions {
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── v2 — Penalty Styles ──────────────────────────────── */

.quest-card.penalized {
  border-left: 3px solid #e53935;
  opacity: .6;
}

.penalty-summary {
  border-left: 3px solid #e53935;
}

.penalty-recent-list {
  margin-top: .75rem;
}

.penalty-item {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .8rem;
}

.penalty-item:last-child { border-bottom: none; }
.penalty-title { color: var(--text); }
.penalty-exp { color: #e53935; font-weight: 700; }

/* ── v2 — Settings Page ──────────────────────────────── */

.settings-section { margin-bottom: 1.5rem; }

.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  color: var(--text);
  font-size: .9rem;
}

.radio-group input[type="radio"] {
  accent-color: var(--gold);
}

.formula-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  margin-top: .75rem;
}

.formula-preview-table th {
  text-align: left;
  padding: .4rem .75rem;
  color: var(--muted);
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.formula-preview-table td {
  padding: .35rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-family: monospace;
  color: var(--text);
}

.category-list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.category-list-item:last-child { border-bottom: none; }

.cat-swatch {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cat-list-name { flex: 1; color: var(--white); font-size: .9rem; }
.cat-list-mult { color: var(--teal); font-size: .85rem; font-weight: 700; }
.cat-list-actions { display: flex; gap: .4rem; }

.toggle-switch-inline {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--dark4);
  border: 1px solid rgba(255,255,255,.08);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.form-check-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.form-check-inline input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

/* ── v2 — Stat Row 4-col ─────────────────────────────── */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 1.5rem 0;
}

.card-danger {
  border-left: 3px solid #e53935;
}

/* ── Status Page ─────────────────────────────────────────────── */

.st-page {
  max-width: 960px;
  margin: 0 auto;
}

/* Overview bar */
.st-overview {
  background: var(--dark2);
  border: 1px solid rgba(240, 192, 64, .18);
  border-radius: 12px;
  padding: .85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.st-ov-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.st-ov-tier {
  font-family: 'Rajdhani', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.st-ov-level {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 12px rgba(240, 192, 64, .25);
}

.st-ov-bar-wrap {
  flex: 1;
  min-width: 120px;
}

.st-ov-bar {
  height: 8px;
  background: var(--dark4);
  border-radius: 999px;
  overflow: hidden;
}

.st-ov-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  box-shadow: 0 0 8px rgba(240, 192, 64, .25);
  transition: width .5s ease;
}

.st-ov-exp {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .2rem;
  text-align: right;
}

.st-ov-stats {
  display: flex;
  gap: .75rem;
}

.st-ov-stat {
  text-align: center;
  padding: 0 .5rem;
  border-left: 1px solid rgba(122, 120, 144, .18);
}

.st-ov-stat:first-child {
  border-left: none;
}

.st-ov-stat-val {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.st-ov-stat-lbl {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Empty */
.st-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 1.5rem;
}

/* Category grid — yan yana */
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}

/* Tile card */
.st-tile {
  background: var(--dark2);
  border: 1px solid rgba(122, 120, 144, .15);
  border-top: 3px solid var(--c, var(--gold));
  border-radius: 10px;
  padding: .75rem .65rem .6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.st-tile:hover {
  border-color: rgba(122, 120, 144, .25);
  border-top-color: var(--c, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

/* Mini ring inside tile */
.st-tile-ring {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: .3rem;
}

.st-tile-ring svg {
  display: block;
}

.st-tile-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 700;
  color: var(--c, var(--gold));
  line-height: 1;
}

.st-tile-icon {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: .15rem;
}

.st-tile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Bar */
.st-tile-bar {
  width: 100%;
  height: 4px;
  background: var(--dark4);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .35rem;
}

.st-tile-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--c, var(--gold));
  transition: width .4s ease;
}

/* Meta */
.st-tile-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'Rajdhani', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 700px) {
  .st-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-overview {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .st-ov-left {
    flex-direction: row;
    justify-content: center;
    gap: .5rem;
  }

  .st-ov-stats {
    justify-content: center;
  }

  .st-ov-exp {
    text-align: center;
  }
}

@media (max-width: 440px) {
  .st-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }

  .st-tile {
    padding: .6rem .4rem .5rem;
  }
}

/* ── Undo Button ────────────────────────────────────────────── */

.btn-undo {
  background: rgba(229, 57, 53, .1);
  border: 1px solid rgba(229, 57, 53, .3);
  color: #e53935;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-undo:hover {
  background: rgba(229, 57, 53, .2);
  border-color: rgba(229, 57, 53, .5);
}

.completed-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.completed-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  background: var(--dark3);
  border: 1px solid rgba(122, 120, 144, .1);
  border-radius: var(--radius-sm);
  transition: opacity .3s, transform .3s;
}

.completed-title {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-exp {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.completed-time {
  font-size: .68rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Inspire Page ───────────────────────────────────────────── */

.inspire-page {
  max-width: 960px;
  margin: 0 auto;
}

.inspire-header {
  margin-bottom: 1.25rem;
}

.inspire-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .25rem;
}

.inspire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (max-width: 700px) {
  .inspire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .inspire-grid {
    grid-template-columns: 1fr;
  }
}

.inspire-card {
  background: var(--dark2);
  border: 1px solid rgba(122, 120, 144, .15);
  border-top: 3px solid var(--ic, var(--gold));
  border-radius: 10px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.inspire-card:hover {
  border-color: rgba(122, 120, 144, .25);
  border-top-color: var(--ic, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.inspire-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inspire-card-icon {
  font-size: 1.25rem;
}

.inspire-card-diff {
  font-size: .6rem !important;
  padding: .15rem .35rem !important;
}

.inspire-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.inspire-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
}

.inspire-card-exp {
  color: var(--gold);
}

.inspire-add-btn {
  margin-top: auto;
  width: 100%;
  font-size: .78rem;
  padding: .35rem;
}

.inspire-add-btn.btn-added {
  background: rgba(139, 195, 74, .15);
  border-color: rgba(139, 195, 74, .4);
  color: #8bc34a;
  cursor: default;
}

/* ── v3 — Avatar Upload ──────────────────────────────── */

.avatar-upload-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.avatar-actions {
  display: flex;
  gap: .3rem;
}

.avatar-btn {
  padding: .2rem .5rem !important;
  font-size: .75rem !important;
  cursor: pointer;
}

.avatar-hint {
  font-size: .65rem;
  color: var(--muted);
  text-align: center;
}

/* ── v3 — Admin Panel ────────────────────────────────── */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--dark2);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1.25rem 1.5rem;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.admin-nav-link:hover {
  background: rgba(240,192,64,.06);
  color: var(--white);
}

.admin-nav-link.active {
  background: rgba(240,192,64,.1);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.admin-main {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem;
  text-align: center;
}

.admin-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.admin-stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
}

.admin-stat-card.green .admin-stat-num { color: #8bc34a; }
.admin-stat-card.red .admin-stat-num { color: #e53935; }
.admin-stat-card.blue .admin-stat-num { color: #29b6f6; }
.admin-stat-card.orange .admin-stat-num { color: #ef6c00; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.admin-table th {
  text-align: left;
  padding: .6rem .75rem;
  color: var(--muted);
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

.admin-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  color: var(--text);
}

.admin-table tr:hover td {
  background: rgba(255,255,255,.02);
}

.status-badge {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.status-badge.active { background: rgba(139,195,74,.15); color: #8bc34a; }
.status-badge.licensed { background: rgba(41,182,246,.15); color: #29b6f6; }
.status-badge.expired { background: rgba(229,57,53,.15); color: #e53935; }
.status-badge.inactive { background: rgba(120,120,144,.15); color: #7a7890; }

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.admin-filter-bar input[type="text"] {
  flex: 1;
  min-width: 200px;
}

.admin-filter-bar select {
  min-width: 140px;
}

.admin-pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.admin-pagination a {
  padding: .35rem .75rem;
  background: var(--dark4);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  text-decoration: none;
  font-size: .85rem;
}

.admin-pagination a.active {
  background: var(--gold);
  color: var(--dark);
}

.license-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.7);
  align-items: center;
  justify-content: center;
}

.license-modal.open {
  display: flex;
}

.license-modal-body {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.quick-btns .btn {
  font-size: .8rem;
  padding: .4rem .8rem;
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding: .75rem;
    gap: .25rem;
  }
  .admin-sidebar .nav-brand {
    width: 100%;
    padding: 0 0 .75rem;
    margin-bottom: .5rem;
  }
  .admin-nav-link {
    padding: .4rem .75rem;
    font-size: .8rem;
  }
  .admin-main {
    padding: 1rem;
  }
  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
