/* ============================================================
   Walk & Point Challenge — Global Sport Industry
   한국외국어대학교 글로벌스포츠산업학부
   ============================================================ */

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

/* === CSS Variables === */
:root {
  --bg-primary: #06060e;
  --bg-secondary: #0d0d1a;
  --bg-card: #111120;
  --bg-card-hover: #161628;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(57, 211, 83, 0.4);

  --green: #39d353;
  --green-dark: #22a83c;
  --green-glow: rgba(57, 211, 83, 0.12);
  --purple: #9b59ff;
  --purple-glow: rgba(155, 89, 255, 0.12);
  --cyan: #22d3ee;
  --blue: #1d4ed8;

  --text-primary: #f0f0f2;
  --text-secondary: #8888aa;

  --common: #9ca3af;
  --rare: #22c55e;
  --uncommon: #60a5fa;
  --epic: #c084fc;
  --legendary: #fbbf24;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
  --transition-slow: all 0.4s ease;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-green: 0 0 24px rgba(57, 211, 83, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  word-break: keep-all;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: rgba(6, 6, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-score-badge {
  background: var(--green-glow);
  border: 1px solid var(--border-active);
  color: var(--green);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
    align-items: stretch;
    z-index: 99;
  }

  .nav-links.mobile-open a {
    padding: 0.75rem 1rem;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #22c55e);
  color: #06060e;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(57, 211, 83, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn-outline:hover {
  background: var(--green-glow);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* === Layout === */
.page-wrapper {
  min-height: 100vh;
  padding-top: 90px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

/* === Forms === */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* === Rarity Badges === */
.rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.rarity-common {
  background: rgba(156, 163, 175, 0.15);
  color: var(--common);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.rarity-rare {
  background: rgba(34, 197, 94, 0.15);
  color: var(--rare);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rarity-uncommon {
  background: rgba(96, 165, 250, 0.15);
  color: var(--uncommon);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.rarity-epic {
  background: rgba(192, 132, 252, 0.15);
  color: var(--epic);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.rarity-legendary {
  background: rgba(251, 191, 36, 0.15);
  color: var(--legendary);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* === Scan Card (flip animation) === */
.scan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem 1.25rem;
  text-align: center;
}

.card-flip-wrapper {
  perspective: 1200px;
  width: 220px;
  height: 320px;
  margin: 2rem auto;
}

.card-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip-inner.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.5rem;
}

.card-back {
  background: linear-gradient(135deg, #0d0d20, #161630);
  border: 2px solid rgba(155, 89, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.card-back:hover {
  border-color: rgba(155, 89, 255, 0.6);
  box-shadow: 0 0 30px rgba(155, 89, 255, 0.2);
}

.card-back-pattern {
  font-size: 3rem;
  opacity: 0.35;
}

.card-front {
  transform: rotateY(180deg);
  border: 2px solid transparent;
}

.card-front.common {
  background: linear-gradient(135deg, #141420, #1e1e30);
  border-color: var(--common);
}

.card-front.rare {
  background: linear-gradient(135deg, #061a10, #0d2e1a);
  border-color: var(--rare);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.card-front.uncommon {
  background: linear-gradient(135deg, #061428, #0d2040);
  border-color: var(--uncommon);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.card-front.epic {
  background: linear-gradient(135deg, #150a2b, #200d40);
  border-color: var(--epic);
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
}

.card-front.legendary {
  background: linear-gradient(135deg, #2b1a02, #3b2405);
  border-color: var(--legendary);
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
  animation: legendary-pulse 2s ease-in-out infinite;
}

@keyframes legendary-pulse {

  0%,
  100% {
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
  }

  50% {
    box-shadow: 0 0 80px rgba(251, 191, 36, 0.8);
  }
}

.card-rarity-icon {
  font-size: 3.5rem;
}

.card-rarity-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.card-rarity-score {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.card-point-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === Progress Bar === */
.progress-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Collection === */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.collection-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-secondary);
}

.collection-item .ci-icon {
  font-size: 1.5rem;
}

.collection-item .ci-count {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.collection-item.has-items {
  border-color: rgba(57, 211, 83, 0.3);
  background: rgba(57, 211, 83, 0.04);
}

/* === Table === */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* === Toast === */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  pointer-events: all;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

.toast.warning {
  border-color: rgba(251, 191, 36, 0.4);
}

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

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

@keyframes toast-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* === Loading === */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1rem;
  color: var(--text-secondary);
}

/* === Auth Pages === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 65% 0%, rgba(57, 211, 83, 0.05), transparent 55%),
    radial-gradient(ellipse at 35% 100%, rgba(155, 89, 255, 0.05), transparent 55%),
    var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  display: block;
}

.auth-logo h1 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--green);
  font-weight: 600;
}

/* === Hero === */
.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 90px 0 4rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 180px;
  }
  .hero-content {
    margin-top: 2.5rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 211, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 89, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-glow);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Countdown === */
.countdown-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.countdown-units {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.countdown-unit {
  text-align: center;
}

.cu-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.cu-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-sep {
  color: var(--text-secondary);
  font-size: 1.5rem;
  font-weight: 300;
  padding-bottom: 0.5rem;
}

/* === How it Works === */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-slow);
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.how-step {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06060e;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
}

.how-icon {
  font-size: 2rem;
  margin-bottom: 0.875rem;
}

.how-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.how-card p {
  font-size: 0.85rem;
}

/* === Rarity Showcase === */
.rarity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.rarity-showcase-card {
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: var(--transition);
}

.rarity-showcase-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.rc-common {
  background: rgba(156, 163, 175, 0.08);
  border: 1px solid rgba(156, 163, 175, 0.25);
}

.rc-rare {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.rc-uncommon {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.rc-epic {
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.rc-legendary {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  animation: legendary-pulse 3s ease-in-out infinite;
}

.rc-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rc-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.rc-prob {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.rc-pts {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.rc-common .rc-name,
.rc-common .rc-pts {
  color: var(--common);
}

.rc-rare .rc-name,
.rc-rare .rc-pts {
  color: var(--rare);
}

.rc-uncommon .rc-name,
.rc-uncommon .rc-pts {
  color: var(--uncommon);
}

.rc-epic .rc-name,
.rc-epic .rc-pts {
  color: var(--epic);
}

.rc-legendary .rc-name,
.rc-legendary .rc-pts {
  color: var(--legendary);
}

/* === Faculty Banner === */
.faculty-banner {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(57, 211, 83, 0.04));
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.faculty-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #003366, #1d4ed8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.faculty-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.faculty-info p {
  font-size: 0.875rem;
}

.faculty-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem !important;
}

/* === Section Headers === */
.section-header {
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--purple-glow);
  border: 1px solid rgba(155, 89, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.875rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  margin-bottom: 0.6rem;
}

.section-header p {
  max-width: 540px;
}

/* === Inside Page Header === */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 1.875rem;
  margin-bottom: 0.375rem;
}

.page-header p {
  font-size: 0.9rem;
}

/* === Alert === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.alert-info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

/* === Scan Status Dots === */
.scan-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1rem;
}

.scan-dots {
  display: flex;
  gap: 0.5rem;
}

.scan-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.scan-dot.used {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(57, 211, 83, 0.5);
}

.scan-status-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* === Proof Status === */
.proof-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proof-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.proof-item-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.proof-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: var(--rare);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.status-none {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* === File Upload === */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--green);
  background: var(--green-glow);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.875rem;
}

.file-upload-area p {
  font-size: 0.9rem;
}

.file-upload-area small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.file-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}

.file-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: var(--bg-primary);
  display: block;
}

.file-preview-actions {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
}

/* === Achievement Tiers === */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.achievement-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.ah-bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.04));
  border: 1px solid rgba(205, 127, 50, 0.3);
  border-bottom: none;
}

.ah-silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.04));
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-bottom: none;
}

.ah-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: none;
}

.achievement-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 1rem 1.5rem;
  min-height: 100px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.achievement-header h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.achievement-header p {
  font-size: 0.8rem;
  margin: 0;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.8rem;
  margin: 0.25rem;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* === Admin === */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.admin-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.admin-tab.active,
.admin-tab:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.admin-content {
  display: none;
}

.admin-content.active {
  display: block;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.qr-card canvas {
  border-radius: var(--radius-sm);
  background: white;
  padding: 8px;
  max-width: 100%;
}

.qr-loc-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}

.qr-loc-url {
  font-size: 0.7rem;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 0.5rem;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.text-green {
  color: var(--green);
}

.text-purple {
  color: var(--purple);
}

.text-muted {
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-full {
  width: 100%;
}

.score-big {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .faculty-banner {
    flex-direction: column;
    text-align: center;
  }

  .rarity-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .card {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

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

/* === Leaderboard === */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  transition: var(--transition);
}

.leaderboard-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.leaderboard-row.rank-1 {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-row.rank-2 {
  background: rgba(192, 192, 192, 0.06);
  border-color: rgba(192, 192, 192, 0.25);
}

.leaderboard-row.rank-3 {
  background: rgba(205, 127, 50, 0.06);
  border-color: rgba(205, 127, 50, 0.25);
}

.lb-rank {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  min-width: 36px;
  text-align: center;
  color: var(--text-secondary);
}

.lb-rank.top1 {
  color: #ffd700;
}

.lb-rank.top2 {
  color: #c0c0c0;
}

.lb-rank.top3 {
  color: #cd7f32;
}

.lb-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.lb-tier {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lb-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
}