@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+TC:wght@400;700&display=swap');

:root {
  /* Deep, solid colors for cards */
  --bg: #09090b;
  --bg-card: #18181b;
  /* Solid color, no transparency/glass */
  --bg-card-hover: #222225;
  --text: #e5e5e5;
  --text-dim: #a3a3a3;
  --text-muted: #525252;
  --border: #27272a;
  --border-hover: #3f3f46;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.15);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Heavy Floating Shadows to separate from the image background */
  --shadow-base: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 25px 50px -10px rgba(0, 0, 0, 0.95);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;

  /* Theme Background Gradient overlay */
  --bg-gradient: linear-gradient(rgba(9, 9, 11, 0.85), rgba(9, 9, 11, 0.92));
}

html[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f1f4;
  --text: #18181b;
  --text-dim: #71717a;
  --text-muted: #a1a1aa;
  --border: #e4e4e7;
  --border-hover: #d4d4d8;
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.1);
  --green: #16a34a;
  --green-dim: rgba(22, 163, 74, 0.1);
  --orange: #ea580c;
  --orange-dim: rgba(234, 88, 12, 0.1);
  --purple: #9333ea;
  --purple-dim: rgba(147, 51, 234, 0.1);

  --shadow-base: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.08);

  --bg-gradient: linear-gradient(rgba(244, 244, 245, 0.9), rgba(244, 244, 245, 0.95));
}

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

body {
  background-color: var(--bg);
  /* 👇 HERE IS THE CODING BACKGROUND IMAGE WITH A DARK OVERLAY 👇 */
  background-image:
    var(--bg-gradient),
    url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Keeps the background still while scrolling */
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* (If you have your own background image, just replace the URL above!) */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #60a5fa;
}

/* ═══ Layout ═══ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══ Nav (Floating Pill Style) ═══ */
.site-nav {
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  max-width: 720px;
  width: calc(100% - 3rem);
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-base);
  animation: slideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: transform 0.3s;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-pill:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-pill svg {
  width: 14px;
  height: 14px;
}

/* Language Selector */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-full);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 0 32px 0 16px;
  height: 35px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  outline: none;
}

.lang-select:hover {
  color: var(--text);
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.lang-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.lang-select option {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 500;
}

/* ═══ Hero ═══ */
.hero {
  padding: 6rem 0 4rem;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-base);
  animation: levitate 6s ease-in-out infinite;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(270deg, #fff, var(--accent), var(--purple), #fff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

.hero-aka {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: var(--bg-card);
}

.tag-blue {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.tag-green {
  color: var(--green);
  border: 1px solid var(--green-dim);
}

.tag-orange {
  color: var(--orange);
  border: 1px solid var(--orange-dim);
}

.tag-purple {
  color: var(--purple);
  border: 1px solid var(--purple-dim);
}

.hero-bio {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 600px;
}

/* ═══ Section ═══ */
.section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ═══ About List ═══ */
.about-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.about-item:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-base);
  transform: translateX(8px);
}

.about-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.about-icon.blue {
  background: var(--accent-dim);
  color: var(--accent);
}

.about-icon.green {
  background: var(--green-dim);
  color: var(--green);
}

.about-icon.orange {
  background: var(--orange-dim);
  color: var(--orange);
}

.about-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.about-text strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* ═══ Tech Stack ═══ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-base);
}

.tech-badge:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ═══ Project Cards ═══ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  z-index: 10;
  pointer-events: none;
}

.project-card:hover::before {
  left: 200%;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  width: max-content;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}

.project-card:hover .project-link {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-dim);
}

.project-link svg {
  width: 14px;
  height: 14px;
}

/* ═══ GitHub Stats ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-base);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--mono);
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.github-chart {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-base);
  transition: transform 0.3s;
}

.github-chart:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.github-chart img {
  width: 100%;
  display: block;
}

/* ═══ Contact ═══ */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-base);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ═══ Minecraft Server ═══ */
.mc-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-base);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-banner:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -10px rgba(34, 197, 94, 0.15);
}

.mc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  color: var(--green);
}

.mc-info {
  flex: 1;
}

.mc-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.mc-addr {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-top: 6px;
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

/* ═══ Footer ═══ */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
}

.footer-inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

/* ═══ Fancy Animations ═══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

@keyframes levitate {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

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

/* Fancy Radar Pulse for Online Dot */
@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.status-pulse {
  animation: radarPulse 2s infinite;
}

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
  .site-nav {
    width: calc(100% - 1.5rem);
    top: 0.75rem;
  }

  .site-nav .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .hero-header {
    flex-direction: column;
    text-align: center;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-bio {
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .about-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-item:hover {
    transform: translateY(-4px);
  }
}

/* ═══ Compact Theme Toggle Switch ═══ */
.theme-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border);
  transition: .3s;
  border-radius: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-dim);
  transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

input:checked + .theme-slider {
  background-color: var(--accent);
}

input:checked + .theme-slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

.theme-icon {
  width: 12px;
  height: 12px;
  stroke: var(--bg);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.3s;
}

.theme-icon-sun {
  left: 6px;
  stroke: #fff;
  opacity: 0;
}

.theme-icon-moon {
  right: 6px;
  stroke: var(--text-dim);
}

input:checked + .theme-slider .theme-icon-sun {
  opacity: 1;
}

input:checked + .theme-slider .theme-icon-moon {
  opacity: 0;
}

/* ═══ Flat Button with Bottom Accent (Anchor / Cool Accent) ═══ */
.flat-btn {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent); /* Color accent at the bottom */
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flat-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  border-bottom-color: var(--accent);
}

.flat-btn:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.flat-btn.btn-green {
  border-bottom-color: var(--green);
}
.flat-btn.btn-green:hover {
  border-bottom-color: var(--green);
}

.flat-btn.btn-orange {
  border-bottom-color: var(--orange);
}
.flat-btn.btn-orange:hover {
  border-bottom-color: var(--orange);
}

/* ═══ Bottom Accent Bar (Page Bottom Accent Style) ═══ */
.bottom-accent-bar {
  position: relative;
}

.bottom-accent-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--orange), var(--green));
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

/* ═══ Minecraft Page Layouts ═══ */
.mc-header {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.mc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-base);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.mc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.mc-card.accented {
  border-bottom: 3px solid var(--accent);
}

.mc-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.mc-card-title svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.mc-card-section {
  margin-bottom: 1.25rem;
}

.mc-card-section:last-child {
  margin-bottom: 0;
}

.mc-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 600;
}

.mc-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* Commands List */
.mc-cmd-list {
  display: grid;
  gap: 0.75rem;
}

.mc-cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.mc-cmd-code {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.mc-cmd-desc {
  font-size: 13px;
  color: var(--text-dim);
}

/* Rules List */
.mc-rule-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.mc-rule-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mc-rule-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.mc-rule-num {
  background: var(--accent-dim);
  color: var(--accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mc-rule-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Form Controls */
.mc-form-group {
  margin-bottom: 1.25rem;
}

.mc-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.mc-input, .mc-textarea, .mc-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}

.mc-input:focus, .mc-textarea:focus, .mc-select:focus {
  border-color: var(--accent);
}

.mc-radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 4px;
}

.mc-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.mc-radio {
  accent-color: var(--accent);
}

/* Whitelist Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-approved {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Admin whitelist CSS variables and tweaks */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.admin-table th {
  color: var(--text-dim);
  font-weight: 600;
}

.admin-table tr:hover {
  background: var(--bg-card-hover);
}

.admin-action-row {
  display: flex;
  gap: 6px;
}