/* CSS Variables */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --accent: #8ef059;
  --text-primary: #e1e8f0;
  --text-muted: #7f8c8d;
  --danger: #ff715b;
  --border: rgba(142, 240, 89, 0.16);
  --grid-line: rgba(39, 174, 96, 0.08);
  --grid-size: 80px;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
    :root {
      --background: #0d1014;
      --foreground: #ededed;
      --bg-void: #0d1014;           /* Main background */
      --bg-layer: #151b22;          /* Secondary background */
      --accent: #8ef059;            /* Bright green accent */
      --accent-dark: #4ea329;       /* Darker green */
      --grid-line: rgba(142, 240, 89, 0.08);  /* Grid lines */
      --card-glow: rgba(142, 240, 89, 0.15);  /* Card glow effect */
    }
  }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
}

/* Background Elements */
.void-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), 
      linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  z-index: -2;
}

/* Bans Page Styles */
.bans-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.bans-title {
  font-size: clamp(28px, 4.5vw, 40px);
  text-align: center;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.bans-title span {
  color: var(--accent);
}

.bans-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* Search and Toggle Section */
.bans-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin: 24px 0 16px;
  width: 100%;
}

.bans-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  min-width: 220px;
  flex: 1 1 320px;
}

.toggle-button {
  border: 1px solid var(--border);
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.toggle-button:hover,
.toggle-button:focus {
  background: rgba(21, 27, 34, 0.8);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.toggle-button.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.bans-search-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 300px;
  min-width: 280px;
}

.bans-search-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}

.bans-search-group input::placeholder {
  color: var(--text-muted);
}

.pixel-button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pixel-button:hover {
  background: #7dd84a;
  transform: translateY(-1px);
}

.pixel-button.alt {
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.pixel-button.alt:hover {
  background: rgba(21, 27, 34, 0.8);
  border-color: var(--accent);
}

.pixel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Table Styles */
.bans-table-wrapper {
  background: rgba(21, 27, 34, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.bans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bans-table th {
  background: rgba(21, 27, 34, 0.8);
  color: var(--text-primary);
  font-weight: 600;
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bans-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(142, 240, 89, 0.08);
  color: var(--text-primary);
}

.bans-table tr:hover {
  background: rgba(142, 240, 89, 0.05);
}

/* Pagination */
.bans-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.bans-page-info {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 8px;
}

.bans-page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bans-page-jump input {
  width: 60px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  text-align: center;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bans-search {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bans-toggle {
    justify-content: center;
    min-width: auto;
  }
  
  .bans-table {
    font-size: 12px;
  }
  
  .bans-table th,
  .bans-table td {
    padding: 8px 6px;
  }
}

/* Screen reader only */
.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;
}

/* Custom utilities */
.bg-gradient-radial {
  background-image: radial-gradient(var(--tw-gradient-stops));
}

/* Enderman Animations */
@keyframes floatUp {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -20px) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -40px) scale(0.8);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  25% { transform: translate(-50%, -50%) translateX(-2px); }
  75% { transform: translate(-50%, -50%) translateX(2px); }
}

@keyframes particle0 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-20px, -30px) scale(0); opacity: 0; }
}

@keyframes particle1 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(25px, -25px) scale(0); opacity: 0; }
}

@keyframes particle2 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-15px, 20px) scale(0); opacity: 0; }
}

@keyframes particle3 {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(30px, 15px) scale(0); opacity: 0; }
}

/* Vote Page Styles */
.vote-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vote-header {
  text-align: center;
  margin-bottom: 8px;
}

.vote-title {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.vote-title span {
  color: var(--accent);
}

.vote-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.vote-link-btn {
  border: 1px solid var(--border);
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vote-link-btn:hover,
.vote-link-btn:focus {
  background: rgba(21, 27, 34, 0.8);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.vote-btn-icon {
  font-size: 16px;
}

.vote-btn-text {
  font-size: 15px;
}

.vote-rewards, .server-info {
  background: rgba(21, 27, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.vote-rewards h3, .server-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.rewards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rewards-list span {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.server-info p {
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-size: 15px;
  line-height: 1.5;
}

.server-info p:last-child {
  margin-bottom: 0;
}

.server-info strong {
  color: var(--accent);
}

/* Staff Page Styles */
.staff-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.staff-title {
  font-size: clamp(28px, 4.5vw, 40px);
  text-align: center;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.staff-title span {
  color: var(--accent);
}

.staff-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 clamp(32px, 5vw, 48px) 0;
}

.staff-tree {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 32px);
}

.staff-tier {
  position: relative;
}

/* Rules Page Styles */
.rules-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #ffffff;
}

.rules-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #ffffff;
}

.rules-title span:not(.text-white) {
  color: var(--accent);
}

.rules-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #b0b0b0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.rules-intro {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.rules-intro h3 {
  color: #00d4ff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.rules-intro ul {
  list-style: none;
  padding: 0;
}

.rules-intro li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.rules-intro li::before {
  content: "•";
  color: #00d4ff;
  position: absolute;
  left: 0;
}

.rules-intro code {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.rules-general {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.rules-general h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.rules-general p {
  line-height: 1.6;
}

.rules-general strong {
  color: #ffd700;
}

.rules-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.rule-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.rule-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.rule-number {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #000000;
  font-weight: 700;
  font-size: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-title {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
}

.rules-footer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.rules-footer h3 {
  color: #00d4ff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.rules-footer p {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.rules-footer p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: #b0b0b0;
}

/* Light mode adjustments for rules */
@media (prefers-color-scheme: light) {
  .rules-content {
    color: #333333;
  }

  .rules-title {
    color: #333333;
  }

  .rules-subtitle {
    color: #666666;
  }

  .rules-intro,
  .rules-general,
  .rule-card,
  .rules-footer {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .rule-card:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
  }

  .rule-title {
    color: #333333;
  }

  .rules-footer p:last-child {
    color: #666666;
  }
}

/* Responsive design for rules */
@media (max-width: 768px) {
  .rules-content {
    padding: 1rem;
  }

  .rules-title {
    font-size: 2rem;
  }

  .rules-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .rules-intro,
  .rules-general,
  .rules-footer {
    padding: 1.5rem;
  }

  .rule-card {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rule-number {
    margin-bottom: 0.5rem;
  }
}

.staff-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
  align-items: center;
  width: 100%;
}

.staff-row {
  --cols: 1;
  --row-gap: 12px;
  display: flex;
  gap: var(--row-gap);
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.staff-row .staff-card {
  flex: 0 1 clamp(120px, calc((min(100%, var(--cols) * 160px) - (var(--cols) - 1) * var(--row-gap)) / var(--cols)), 160px);
}

.staff-row.cols-9 { --cols: 9; }
.staff-row.cols-7 { --cols: 7; }
.staff-row.cols-5 { --cols: 5; }
.staff-row.cols-3 { --cols: 3; }

.staff-card {
  background: rgba(21, 27, 34, 0.9);
  border: 1px solid rgba(142, 240, 89, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.staff-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(142, 240, 89, 0.3);
}

.staff-card:hover::before {
  opacity: 1;
}

.staff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
  image-rendering: pixelated;
  position: relative;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.staff-card.inactive {
  border-color: rgba(255, 113, 91, 0.35);
}

.staff-card.inactive .staff-avatar::after {
  content: "Inactive";
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 113, 91, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.staff-card.inactive .staff-avatar img {
  filter: grayscale(100%);
  opacity: 0.6;
}

.staff-card.inactive .staff-name,
.staff-card.inactive .staff-role {
  opacity: 0.75;
}

.staff-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.staff-role {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Staff role color styling */
.staff-card.owner {
  border-color: rgba(255, 68, 68, 0.3);
}

.staff-card.co-owner {
  border-color: rgba(255, 85, 85, 0.3);
}

.staff-card.admin {
  border-color: rgba(255, 85, 85, 0.3);
}

.staff-card.srmod {
  border-color: rgba(85, 255, 255, 0.3);
}

.staff-card.mod {
  border-color: rgba(85, 255, 85, 0.3);
}

.staff-card.helper {
  border-color: rgba(85, 85, 255, 0.3);
}

.staff-card.builder {
  border-color: rgba(142, 240, 89, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .staff-grid {
    gap: clamp(16px, 2vw, 20px);
  }
  
  .staff-row {
    --row-gap: 8px;
    flex-wrap: wrap;
  }
  
  .staff-row .staff-card {
    flex: 0 1 clamp(100px, calc((min(100%, var(--cols) * 140px) - (var(--cols) - 1) * var(--row-gap)) / var(--cols)), 140px);
  }
  
  .staff-card {
    padding: 10px;
  }
  
  .staff-avatar {
    width: 40px;
    height: 40px;
  }
  
  .staff-name {
    font-size: 12px;
  }
  
  .staff-role {
    font-size: 9px;
  }

  .vote-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .vote-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .vote-card {
    padding: 16px;
  }
  
  .vote-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .vote-card-name {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .rewards-list {
    gap: 8px;
  }
  
  .rewards-list span {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* Tools Page Styles */
.tools-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tools-header {
  text-align: center;
  margin-bottom: 1rem;
}

.tools-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.title-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.tools-subtitle {
  color: #888;
  font-size: 1rem;
  font-weight: 300;
  margin: 0 auto;
  line-height: 1.4;
}

.tools-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Input Section */
.input-section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-section label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #ddd;
  font-size: 1rem;
}

.text-input-container {
  position: relative;
}

.live-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.preview-char {
  transition: all 0.2s ease;
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
}

/* Colors Panel */
.colors-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.colors-panel h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Output Panel */
.output-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.output-panel h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  caret-color: #fff;
}

.text-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.live-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.colors-section {
  margin-bottom: 2rem;
}

.colors-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  flex: 1;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  position: relative;
  aspect-ratio: 1;
}

.color-item:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.2);
}

.color-preview {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.color-picker {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  border-radius: 6px;
}

.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.color-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-height: 0;
  overflow: hidden;
}

.color-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.color-position {
  font-size: 0.6rem;
  color: #aaa;
  font-weight: 500;
  text-align: center;
}

.remove-color-btn {
  background: rgba(255, 59, 48, 0.9);
  border: none;
  color: white;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
  line-height: 1;
}

.remove-color-btn:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.add-color-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.1), rgba(52, 199, 89, 0.05));
  border: 2px dashed rgba(52, 199, 89, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.add-color-section:hover {
  border-color: rgba(52, 199, 89, 0.5);
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.15), rgba(52, 199, 89, 0.08));
}

.add-color-btn {
  background: linear-gradient(135deg, #34c759, #30d158);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
}

.add-color-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 199, 89, 0.4);
}

.add-color {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(102, 126, 234, 0.25);
  color: #667eea;
  padding: 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.5rem;
  aspect-ratio: 1;
  grid-column: span 1;
}

.add-color:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
  border-color: rgba(102, 126, 234, 0.4);
}

.preview-section {
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: rgba(102, 126, 234, 0.2);
}

.gradient-preview {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  font-family: 'Minecraft', monospace;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-text {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preview-char {
  transition: all 0.3s ease;
  display: inline-block;
}

.preview-char:hover {
  transform: scale(1.1) translateY(-5px);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gradient-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.gradient-fill {
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.output-section {
  background: linear-gradient(145deg, rgba(240, 147, 251, 0.1), rgba(118, 75, 162, 0.1));
  border-color: rgba(240, 147, 251, 0.2);
}

.output-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.generated-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #fff;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 60px;
  backdrop-filter: blur(10px);
}

.copy-button {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.copy-button:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(34, 197, 94, 0.4);
}

.copy-button.copied {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
  border-color: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}

.copy-button.copied:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
  border-color: rgba(59, 130, 246, 0.4);
}

.output-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.output-text {
  width: 100%;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  resize: vertical;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 80px;
}

.output-text:focus {
  outline: none;
  border-color: #f093fb;
  box-shadow: 0 0 0 4px rgba(240, 147, 251, 0.15);
}

.copy-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.copy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.copy-btn:hover::before {
  left: 100%;
}

.copy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #34c759, #30d158);
  box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
}

.output-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #aaa;
  font-weight: 500;
}

.output-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructions {
  color: #b0b0b0;
  line-height: 1.6;
}

.instructions ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

.instructions p {
  margin: 0;
  font-style: italic;
}

.instructions strong {
  color: #00d4ff;
}

/* Light mode adjustments for tools */
@media (prefers-color-scheme: light) {
  .tools-content {
    color: #333333;
  }

  .tools-title {
    color: #333333;
  }

  .tools-subtitle {
    color: #666666;
  }

  .tool-section {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .text-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333333;
  }

  .text-input:focus {
    background: rgba(0, 0, 0, 0.1);
  }

  .color-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
  }

  .color-value {
    color: #333333;
  }

  .gradient-preview {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
  }

  .output-text {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333333;
  }

  .instructions {
    color: #666666;
  }
}

/* Stats Panel Styles */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
}

/* Responsive design for tools */
@media (max-width: 768px) {
  .tools-content {
    padding: 1rem;
  }

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

  .colors-panel,
  .output-panel {
    order: 2;
  }

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

  .tools-title {
    font-size: 1.8rem;
  }

  .tools-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .input-section,
  .colors-panel,
  .output-panel {
    padding: 1.5rem;
  }

  .colors-container {
    flex-direction: column;
  }

  .add-color-section {
    flex-direction: column;
    align-items: stretch;
  }

  .gradient-preview {
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  .copy-btn {
    align-self: stretch;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

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

/* Home Page Styles */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0 6rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(142, 240, 89, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* Server IP Section */
.server-ip-section {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.server-ip-card {
  background: var(--bg-layer);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.server-ip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(142, 240, 89, 0.15);
}

.ip-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.ip-text {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

.copy-ip-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.copy-ip-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Titles */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* Join Section */
.join-section {
  padding: 2rem 0;
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-layer);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(142, 240, 89, 0.15);
  border-color: var(--accent);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: var(--accent);
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content {
  margin: 1rem 0;
  flex: 1;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-muted);
  line-height: 1.5;
}

.step-icon {
  font-size: 2rem;
  margin-top: 1rem;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(142, 240, 89, 0.05) 0%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-layer);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(142, 240, 89, 0.15);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Call to Action Section */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(142, 240, 89, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(142, 240, 89, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
  }

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

  .hero-stats {
    gap: 2rem;
  }

  .join-steps,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .server-ip-card {
    padding: 1.5rem;
  }

  .ip-text {
    font-size: 1.2rem;
  }

  .step-card,
  .feature-card {
    padding: 1.5rem;
  }

  .join-section,
  .features-section,
  .cta-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ip-display {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ip-text {
    font-size: 1rem;
  }

  .copy-ip-btn {
    align-self: stretch;
  }
}

/* Statistics Page Styles */
.statistics-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.statistics-title {
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.statistics-title span {
  color: var(--accent);
}

.statistics-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin: -1rem 0 0 0;
}

/* Search Section */
.statistics-search {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.statistics-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(21, 27, 34, 0.6);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.statistics-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(21, 27, 34, 0.8);
}

.statistics-input::placeholder {
  color: var(--text-muted);
}

/* Error Message */
.error-message {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 20px;
  background: rgba(255, 113, 91, 0.1);
  border: 1px solid rgba(255, 113, 91, 0.3);
  border-radius: 8px;
  color: var(--danger);
  text-align: center;
  font-size: 14px;
}

/* RPG Stats Container - No outer box */
.rpg-stats-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Left Character Section */
.rpg-character-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Center Character */
.rpg-character {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.minecraft-skin {
  image-rendering: pixelated;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

/* Character Name */
.character-name {
  text-align: center;
  padding: 1rem;
  background: transparent;
  border-radius: 0;
  border: none;
}

.character-name h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Right Side - 4x4 Stats Grid (16 boxes) */
.rpg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Individual Stat Box - Smaller for 16 boxes */
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(142, 240, 89, 0.15);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 85px;
}

.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    transparent,
    rgba(142, 240, 89, 0.03),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-box:hover {
  border-color: rgba(142, 240, 89, 0.3);
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(142, 240, 89, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-box:hover::before {
  opacity: 1;
}

.stat-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(142, 240, 89, 0.7);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.stat-value {
  font-size: 26px;
  color: rgba(142, 240, 89, 1);
  font-weight: 700;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Responsive for RPG Stats */
@media (max-width: 768px) {
  .rpg-stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .rpg-character-section {
    max-width: 250px;
    margin: 0 auto;
  }

  .rpg-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-name {
    font-size: 9px;
  }
}
.stats-display {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Player Character Card */
.player-character-card {
  background: rgba(21, 27, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.player-character-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(142, 240, 89, 0.15);
}

.character-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.character-header {
  text-align: center;
}

.character-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.player-status.online {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.character-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px solid rgba(142, 240, 89, 0.2);
}

.minecraft-skin {
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.info-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.info-value.uuid {
  font-family: monospace;
  color: var(--accent);
}

/* Scoreboard Card */
.scoreboard-card {
  background: rgba(21, 27, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scoreboard-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.scoreboard-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

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

.stat-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(142, 240, 89, 0.15);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

.stat-item.featured {
  background: linear-gradient(135deg, rgba(142, 240, 89, 0.15), rgba(142, 240, 89, 0.05));
  border-color: var(--accent);
}

.stat-icon {
  font-size: 24px;
  line-height: 1;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

/* Level Progress */
.level-progress {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(142, 240, 89, 0.15);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--accent);
}

.progress-info {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

/* Additional Stats */
.additional-stats {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px dashed rgba(142, 240, 89, 0.3);
}

.additional-stats h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.coming-soon-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid rgba(142, 240, 89, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-display {
    grid-template-columns: 1fr;
  }

  .player-character-card {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .statistics-content {
    padding: 1rem;
  }

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

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .search-input-group {
    flex-direction: column;
  }

  .pixel-button {
    width: 100%;
  }
}
