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

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

:root {
  --blue-900: #101b3f;
  --blue-800: #16225a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --yellow-500: #eab308;
  --yellow-400: #f2b705;
  --yellow-300: #fde047;
  --white: #ffffff;

  --bg: var(--white);
  --bg-alt: #f4f7ff;
  --surface: #ffffff;
  --text: #142449;
  --text-muted: #5b6b8c;
  --border: #dbe4f7;
  --accent: var(--blue-600);
  --accent-strong: var(--blue-900);
  --highlight: var(--yellow-400);
  --highlight-strong: var(--yellow-500);
  --shadow: 0 10px 30px rgba(16, 27, 63, 0.08);
  --header-h: 74px;
  --tabs-h: 54px;
}

[data-theme="dark"] {
  --bg: #0a1128;
  --bg-alt: #0f1a3a;
  --surface: #141f47;
  --text: #eef2ff;
  --text-muted: #9fb0d8;
  --border: #24356b;
  --accent: var(--blue-500);
  --accent-strong: var(--yellow-400);
  --highlight: var(--yellow-400);
  --highlight-strong: var(--yellow-300);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.icon-sun,
.icon-moon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.app-shell {
  display: none;
}

.app-shell.active {
  display: block;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}

.app-header {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-size: 17px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 11.5px;
  color: var(--yellow-300);
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 24px;
  background: var(--bg-alt);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tab-btn:hover {
  background: var(--surface);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
}

.tab-btn[data-role="student"] {
  display: none;
}

.role-student .tab-btn[data-role="admin"] {
  display: none;
}

.role-student .tab-btn[data-role="student"] {
  display: inline-flex;
}

.role-admin .tab-btn[data-role="admin"] {
  display: inline-flex;
}

main {
  padding: 22px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.view {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-header {
  margin-bottom: 20px;
}

.view-header h2 {
  font-size: 22px;
  color: var(--accent-strong);
}

.view-header p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 13.5px;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-strong);
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.section-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.form-row input,
.form-row select {
  min-width: 140px;
  width: auto;
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
  }
  .form-row input,
  .form-row select,
  .form-row button {
    width: 100%;
  }
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn {
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(120deg, var(--yellow-400), var(--yellow-500));
  color: var(--blue-900);
}

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

.btn-danger {
  background: transparent;
  border: 1.5px solid #dc2626;
  color: #dc2626;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.student-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

[data-theme="dark"] .avatar {
  background: var(--blue-800);
  color: var(--white);
}

.student-name {
  font-weight: 700;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.student-meta {
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.badge-pill img {
  width: 15px;
  height: 15px;
}

.fastpass-tag {
  background: linear-gradient(120deg, var(--yellow-400), var(--yellow-500));
  color: var(--blue-900);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow-400));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.empty-state {
  text-align: center;
  padding: 36px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.icon-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.icon-showcase img {
  width: 60px;
  height: 60px;
}

.icon-showcase .title {
  font-weight: 700;
  font-size: 13.5px;
}

.icon-showcase .desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.booth-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-alt);
  transition: all 0.15s ease;
}

.booth-tag input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.booth-tag.stamped {
  border-color: var(--highlight-strong);
  background: rgba(242, 183, 5, 0.14);
}

.booth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

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

.result-banner {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  margin-top: 14px;
}

.result-banner.win {
  background: linear-gradient(120deg, var(--yellow-300), var(--yellow-500));
  color: var(--blue-900);
}

.result-banner.lose {
  background: var(--blue-100);
  color: var(--blue-900);
}

[data-theme="dark"] .result-banner.lose {
  background: var(--blue-800);
  color: var(--white);
}

.history-log {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 12px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.settings-row:last-child {
  border-bottom: none;
}

footer {
  text-align: center;
  padding: 26px 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  margin: 0 auto;
  max-width: 340px;
  background: var(--accent-strong);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 13px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
  text-align: center;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 560px) {
  .toast {
    left: auto;
    right: 24px;
  }
}

.select-student-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.select-student-bar select {
  flex: 1;
  min-width: 180px;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700));
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

.glow-1 {
  width: 380px;
  height: 380px;
  background: var(--yellow-400);
  top: -120px;
  left: -100px;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: var(--blue-500);
  bottom: -140px;
  right: -120px;
  animation-delay: 2.5s;
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.08);
  }
}

.login-wrap {
  background: var(--surface);
  border-radius: 22px;
  width: 100%;
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  animation: loginRise 0.5s ease;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .login-wrap {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.login-brand-panel {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .login-brand-panel {
    padding: 28px 22px;
  }
}

.circuit-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--yellow-400) 1px, transparent 1px),
    linear-gradient(90deg, var(--yellow-400) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.06;
  pointer-events: none;
}

.login-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.3), 0 0 30px rgba(242, 183, 5, 0.25);
  cursor: pointer;
  animation: logoPulse 3.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.3), 0 0 20px rgba(242, 183, 5, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242, 183, 5, 0.4), 0 0 34px rgba(242, 183, 5, 0.35);
  }
}

.login-brand-panel h1 {
  font-size: 19px;
  position: relative;
  line-height: 1.3;
}

.login-brand-panel .login-sub {
  font-size: 12px;
  color: var(--yellow-300);
  margin-top: 6px;
  font-weight: 600;
  position: relative;
}

.login-brand-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
  position: relative;
}

.login-brand-tags span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.login-form-panel {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 720px) {
  .login-form-panel {
    padding: 28px 26px 32px;
  }
}

.role-switch {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.role-switch:not(.unlocked) {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.role-switch:not(.unlocked) .role-btn[data-role="admin"] {
  display: none;
}

.role-switch:not(.unlocked) .role-btn[data-role="student"] {
  padding-left: 22px;
  padding-right: 22px;
  cursor: default;
}

.role-switch.unlocked {
  animation: unlockPop 0.35s ease;
}

@keyframes unlockPop {
  from {
    transform: scale(0.94);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.role-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.role-btn.active {
  background: var(--accent);
  color: var(--white);
}

.login-submit {
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-submit:hover {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .login-submit {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-group input {
  padding-left: 42px;
}

.input-icon-group .input-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

.input-icon-group .input-icon svg {
  width: 100%;
  height: 100%;
}

.toggle-visibility {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-visibility svg {
  width: 18px;
  height: 18px;
}

.toggle-visibility.visible {
  color: var(--accent);
}

.toggle-visibility:hover {
  background: var(--border);
}

.login-error {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 12px;
  min-height: 16px;
  text-align: center;
}

.login-theme-toggle {
  margin: 20px auto 0;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.login-theme-toggle:hover {
  background: var(--border);
}

.student-finder {
  position: relative;
}

.suggestion-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 15;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.suggestion-list.open {
  display: block;
}

.suggestion-item {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}

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

.suggestion-item:hover {
  background: var(--bg-alt);
}

.suggestion-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.suggestion-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.suggestion-empty {
  padding: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.truth-table {
  border-collapse: collapse;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 380px) {
  .truth-table th,
  .truth-table td {
    padding: 9px 6px;
    font-size: 13px;
  }
}

.truth-table th,
.truth-table td {
  border: 1px solid var(--border);
  padding: 12px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.truth-table th {
  background: var(--bg-alt);
  color: var(--accent-strong);
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.truth-table td {
  color: var(--text);
}

.tt-target-row {
  background: rgba(242, 183, 5, 0.1);
}

.tt-target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px dashed var(--highlight-strong);
  color: var(--highlight-strong);
  font-weight: 800;
}

.tt-target.revealed-cell {
  border-style: solid;
}

.tt-answer-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.account-credential {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
  flex-shrink: 0;
}

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

.profile-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-strong);
}

.profile-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.id-card {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: 18px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.id-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--yellow-300);
  position: relative;
  z-index: 1;
}

.id-card-top img {
  width: 26px;
  height: 26px;
}

.id-card-name {
  font-size: 21px;
  font-weight: 800;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.id-card-number {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.id-card-stats {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.id-card-stats div {
  display: flex;
  flex-direction: column;
}

.id-card-stats strong {
  font-size: 19px;
  font-weight: 800;
}

.id-card-stats span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.id-card-pattern {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.25), transparent 70%);
  pointer-events: none;
}

.leaderboard-you {
  border-color: var(--highlight-strong);
  background: rgba(242, 183, 5, 0.08);
}

@media (max-width: 480px) {
  .id-card {
    padding: 18px 18px;
  }
  .id-card-stats {
    gap: 18px;
  }
  .profile-card {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 12px 16px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand-text h1 {
    font-size: 15px;
    max-width: 150px;
  }
  .brand-text span {
    font-size: 10px;
  }
  .header-actions {
    gap: 8px;
  }
  .theme-toggle span:not(.theme-icon) {
    display: none;
  }
  .theme-toggle {
    padding: 9px;
  }
  .user-chip {
    display: none;
  }
  .tabs {
    padding: 8px 16px;
  }
  main {
    padding: 18px 14px 32px;
  }
  .card {
    padding: 14px;
  }
  .login-brand-panel {
    padding: 22px 20px;
  }
  .login-form-panel {
    padding: 24px 20px 28px;
  }
  .login-logo {
    width: 68px;
    height: 68px;
  }
  .glow-1,
  .glow-2 {
    width: 220px;
    height: 220px;
  }
  .login-brand-tags span {
    font-size: 10px;
    padding: 5px 10px;
  }
}
