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

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

:root {
  --bg-dark: #07030e;          /* Deep Obsidian Violet */
  --bg-card: rgba(15, 8, 25, 0.75); /* Glassmorphic Dark Purple */
  --bg-slot: #1c1c1c;          /* Minecraft Slot Grey */
  --bg-slot-hover: #323232;
  --border-color: rgba(168, 85, 247, 0.25); /* Amethyst borders */
  --border-glow: #a855f7;     /* Radiant purple */
  --border-glow-magenta: #ec4899; /* Radiant magenta */
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  
  /* Minecraft Chat Colors */
  --mc-green: #55ff55;
  --mc-green-dark: #00aa00;
  --mc-yellow: #ffff55;
  --mc-red: #ff5555;
  --mc-blue: #5555ff;
  --mc-white: #ffffff;
  --mc-dark-gray: #1e1e1e;
  --mc-light-gray: #8b8b8b;
  
  --text-main: #f3f4f6;
  --text-muted: #a3a3c2;
  
  --transition-speed: 0.25s;
}

body.spl-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Particle Canvas */
#portal-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.pixel-font {
  font-family: 'Silkscreen', 'VT323', monospace;
  letter-spacing: 0.05em;
}

.text-glow {
  text-shadow: 0 0 10px var(--border-glow), 0 0 20px rgba(168, 85, 247, 0.2);
}

.text-green { color: var(--mc-green); }
.text-red { color: var(--mc-red); }
.text-yellow { color: var(--mc-yellow); }
.text-purple { color: #d8b4fe; }
.text-white { color: var(--mc-white); }
.text-center { text-align: center; }
.header-margin { margin-bottom: 2rem; }

/* App Layout */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

/* Header & Primary Navigation */
.app-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo spacer controls"
    "nav nav nav";
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo-area {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spl-badge {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Silkscreen', monospace;
  box-shadow: 0 0 12px var(--border-glow);
  font-size: 0.9rem;
}

.logo-area h1 {
  font-size: 1.5rem;
  background: linear-gradient(to right, #fff, #ebd3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.main-nav {
  grid-area: nav;
  display: flex;
  gap: 0.55rem 1.05rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition-speed);
  position: relative;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--border-glow);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  text-shadow: 0 0 12px var(--border-glow-magenta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-pink), var(--accent-purple));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-pink);
}

.header-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

/* Server Sync Status */
.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.sync-status.synced {
  border-color: rgba(85, 255, 85, 0.25);
  color: var(--mc-green);
  box-shadow: 0 0 10px rgba(85, 255, 85, 0.1);
}

.sync-status.saving {
  border-color: rgba(255, 255, 85, 0.25);
  color: var(--mc-yellow);
  box-shadow: 0 0 10px rgba(255, 255, 85, 0.1);
  animation: syncPulse 1.2s infinite alternate;
}

.sync-status.error {
  border-color: rgba(255, 85, 85, 0.25);
  color: var(--mc-red);
  box-shadow: 0 0 10px rgba(255, 85, 85, 0.1);
}

@keyframes syncPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Sound Toggle */
.sound-toggle {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.sound-toggle input {
  display: none;
}

.sound-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.sound-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.sound-icon-wrapper:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.sound-toggle input:checked + .sound-icon-wrapper {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--border-glow);
  color: #fff;
  box-shadow: 0 0 15px var(--border-glow);
}

.sound-toggle input:checked + .sound-icon-wrapper .sound-on {
  display: none;
}

.sound-toggle input:not(:checked) + .sound-icon-wrapper .sound-off {
  display: none;
}

/* Page Panes visibility */
.page-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.page-pane.active {
  display: block;
}

/* Minecraft tools */
.tools-tabs {
  align-items: stretch;
}

.mc-tool-panel {
  background: rgba(0, 0, 0, 0.32);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.mc-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mc-tool-header h3,
.mc-tool-card h3,
.mc-tool-card h4 {
  margin: 0 0 0.5rem;
}

.mc-tool-header p,
.mc-tool-muted {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

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

.mc-tool-grid.two-cols {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.mc-tool-card {
  background: rgba(20, 10, 38, 0.72);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.mc-tool-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.mc-tool-card input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem;
  font: inherit;
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.coords-output {
  display: grid;
  gap: 0.45rem;
  font-family: 'Silkscreen', monospace;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.coords-output span {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  overflow-wrap: anywhere;
}

.mc-tool-notes {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 1.25rem 0 0;
  padding-left: 1.35rem;
}

.tool-directory .mc-tool-card {
  min-height: 210px;
}

.coord-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.shape-preview {
  display: grid;
  gap: 1px;
  width: min(100%, 420px);
  aspect-ratio: 1;
  align-self: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
}

.shape-preview div {
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1px;
}

.shape-preview div.filled {
  background: linear-gradient(135deg, #55ff55, #22c55e);
  box-shadow: 0 0 5px rgba(85, 255, 85, 0.28);
}

.shape-preview div.center {
  outline: 1px solid rgba(255, 255, 85, 0.8);
}

.mc-tool-card input[type="checkbox"] {
  width: auto;
  align-self: flex-start;
}

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

.tool-directory-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 230px;
}

.tool-directory-card h4 {
  margin-bottom: 0;
}

.tool-directory-card .spl-btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  text-decoration: none;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.tool-category {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.profile-economy-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.profile-economy-strip span {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.25rem 0.35rem;
}

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

.farm-card {
  background: rgba(15, 8, 25, 0.75);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.farm-card-top,
.farm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.farm-card h3 {
  margin: 0;
  font-size: 1rem;
}

.farm-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.farm-rules {
  color: #d7d0e5;
  line-height: 1.45;
  font-size: 0.86rem;
  margin: 0;
  flex-grow: 1;
}

.farm-actions {
  justify-content: flex-start;
}

.farm-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.farm-history-panel {
  background: rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.farm-history-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.farm-history-list {
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow-y: auto;
}

.farm-history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem;
}

.farm-history-row strong,
.farm-history-row small,
.farm-history-amount {
  display: block;
}

.farm-history-row strong {
  color: #fff;
  font-size: 0.86rem;
}

.farm-history-row small,
.farm-history-empty {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.farm-history-amount {
  text-align: right;
  white-space: nowrap;
}

.farm-history-amount span {
  color: #34d399;
  font-weight: 700;
}

.farm-pay-modal {
  max-width: 520px;
}

.farm-pay-summary {
  display: grid;
  gap: 0.55rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1rem;
}

.farm-pay-summary div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.farm-pay-summary span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.farm-pay-summary strong {
  color: #fff;
  text-align: right;
}

.economy-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.economy-stat {
  background: rgba(0, 0, 0, 0.32);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.economy-stat span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.economy-stat strong {
  color: #fff;
  font-size: 1.25rem;
}

.economy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
}

.economy-panel {
  background: rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.balance-list {
  display: grid;
  gap: 0.5rem;
}

.balance-row {
  display: grid;
  grid-template-columns: 44px 24px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem;
}

.transfer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 1rem;
  align-items: center;
  background: rgba(12, 8, 22, 0.78);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.transfer-hero h2 {
  margin: 0.35rem 0;
  font-size: 1.45rem;
}

.transfer-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.transfer-balance-card,
.transfer-summary {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
}

.transfer-balance-card {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.transfer-balance-card span,
.transfer-summary span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.transfer-balance-card strong,
.transfer-summary strong,
.transfer-recipient-balance strong,
.transfer-message {
  color: #34d399;
}

.transfer-balance-card strong {
  font-size: 1.55rem;
}

.transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.transfer-recipient-panel,
.transfer-send-panel {
  background: rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.transfer-search {
  margin: 0.75rem 0 1rem;
}

.transfer-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.transfer-recipient-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.transfer-recipient-card:hover,
.transfer-recipient-card.active {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.09);
  transform: translateY(-1px);
}

.transfer-recipient-card img,
.transfer-selected img {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
}

.transfer-recipient-info {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.transfer-recipient-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-recipient-info span,
.transfer-recipient-info small,
.transfer-recipient-balance span,
.transfer-no-selected p {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.transfer-recipient-balance {
  display: grid;
  gap: 0.15rem;
  text-align: right;
  white-space: nowrap;
}

.transfer-empty {
  margin-top: 0.75rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.transfer-send-panel {
  position: sticky;
  top: 1rem;
}

.transfer-selected {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.transfer-selected h3 {
  margin: 0.25rem 0;
  color: #fff;
  font-size: 1rem;
}

.transfer-selected p {
  margin: 0;
  color: var(--text-muted);
}

.transfer-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.transfer-mini-stats span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
}

.transfer-no-selected {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.transfer-no-selected h3,
.transfer-no-selected p {
  margin: 0;
}

.transfer-form {
  display: grid;
  gap: 0.85rem;
}

.transfer-amount-input {
  font-size: 1.35rem;
  color: #34d399;
  font-weight: 700;
}

.transfer-quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.transfer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.transfer-submit {
  width: 100%;
  justify-content: center;
}

.transfer-message {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media(max-width: 900px) {
  .economy-layout {
    grid-template-columns: 1fr;
  }

  .farm-history-grid {
    grid-template-columns: 1fr;
  }

  .transfer-hero,
  .transfer-layout {
    grid-template-columns: 1fr;
  }

  .transfer-balance-card {
    justify-items: start;
  }

  .transfer-send-panel {
    position: static;
  }
}

@media(max-width: 800px) {
  .mc-tool-header {
    flex-direction: column;
  }

  .mc-tool-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .mc-tool-panel {
    padding: 1rem;
  }
}

/* ---------------------------------
   1. HOME PAGE STYLING
   --------------------------------- */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 10, 38, 0.8) 0%, rgba(40, 15, 60, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-purple);
  filter: blur(150px);
  top: -50px;
  right: -50px;
  opacity: 0.3;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.server-ip-box {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 4px 4px 4px 16px;
  border-radius: 8px;
  gap: 1rem;
}

.ip-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ip-address {
  font-family: 'Silkscreen', monospace;
  color: var(--mc-yellow);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(255, 255, 85, 0.2);
}

.hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nether-portal {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  grid-template-rows: repeat(5, 44px);
  gap: 0;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  overflow: visible;
  padding: 0;
  margin: 0;
  animation: portalPulse 3s infinite ease-in-out;
}

.portal-block.obsidian {
  width: 44px;
  height: 44px;
  background-image: url('https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.20.4/assets/minecraft/textures/block/obsidian.png');
  background-size: cover;
  image-rendering: pixelated;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.85);
}

.portal-gateway {
  position: relative;
  width: 88px;
  height: 132px;
  overflow: hidden;
  background: #120224;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.portal-inner-block {
  width: 44px;
  height: 44px;
  background-image: url('https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.20.4/assets/minecraft/textures/block/nether_portal.png');
  background-size: 44px 1408px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  opacity: 0.85;
  animation: playPortal 1.2s steps(32) infinite;
}

@keyframes playPortal {
  from { background-position-y: 0px; }
  to { background-position-y: -1408px; }
}

@keyframes portalPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); 
    filter: brightness(0.9);
  }
  50% { 
    transform: scale(1.02); 
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.7); 
    filter: brightness(1.1);
  }
}

/* Server Activity Panel */
.activity-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.activity-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.server-status-badge {
  font-family: 'Silkscreen', monospace;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-body-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

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

.status-metric .lbl {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.status-metric .val {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.hosting-link {
  color: var(--accent-pink);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: all var(--transition-speed);
}

.hosting-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 10px var(--border-glow-magenta);
}

/* Online Players Head Grid */
.online-players-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.online-players-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.online-heads-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.online-player-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition-speed);
}

.online-player-head img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}

.online-player-head:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}

/* ---------------------------------
   2. PLAYERS PAGE STYLING
   --------------------------------- */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.player-card {
  background: linear-gradient(135deg, rgba(22, 11, 36, 0.8) 0%, rgba(13, 7, 22, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
}

.player-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}

/* 3D Skin Container */
.player-skin-container {
  width: 120px;
  height: 190px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-skin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
  transition: transform 0.4s ease;
  z-index: 5;
}

.player-card:hover .player-skin {
  transform: scale(1.08) rotate(3deg);
}

/* Card Information */
.player-badges {
  margin-bottom: 0.5rem;
}

.player-role {
  font-family: 'Silkscreen', monospace;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
  text-transform: uppercase;
}

.player-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.player-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Online status dot */
.player-status {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--mc-green);
  box-shadow: 0 0 10px var(--mc-green);
}

.status-dot.offline {
  background-color: var(--mc-light-gray);
  box-shadow: none;
}

.status-dot.exiled-dot {
  background-color: #6b7280;
  box-shadow: none;
}

/* Exiled/Banished Player Card styling (greyed out) */
.player-card.exiled {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(15, 15, 15, 0.8) 100%);
  border: 1px solid rgba(100, 100, 100, 0.25);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  opacity: 0.65;
}

.player-card.exiled::before {
  background: linear-gradient(to right, #4b5563, #374151);
}

.player-card.exiled .player-skin {
  filter: grayscale(100%) drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.player-card.exiled .player-role {
  background: rgba(100, 100, 100, 0.2);
  border: 1px solid rgba(100, 100, 100, 0.4);
  color: #9ca3af;
  box-shadow: none;
}

.player-card.exiled .player-name {
  color: #9ca3af;
}

.player-card.exiled:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 163, 175, 0.4);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
}

/* Social links buttons inside card */
.player-socials {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all var(--transition-speed);
  font-family: 'Silkscreen', monospace;
}

.social-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
}

.social-btn.twitch:hover {
  border-color: #9146ff;
  background: rgba(145, 70, 255, 0.15);
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.2);
}

.social-btn.youtube:hover {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* ---------------------------------
   3. RULES PAGE STYLING
   --------------------------------- */
.rules-scroll {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #fff;
  user-select: none;
  transition: all var(--transition-speed);
}

.accordion-header:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--mc-yellow);
}

.accordion-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-speed);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.accordion-body p {
  padding: 1.25rem 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.accordion-item.active {
  border-color: var(--border-color);
}

.accordion-item.active .accordion-header {
  color: var(--mc-yellow);
  background: rgba(168, 85, 247, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--mc-yellow);
}

.accordion-item.active .accordion-body {
  max-height: 500px; /* Large enough threshold */
  transition: max-height 0.3s ease-in-out;
}

/* ---------------------------------
   4. MAP PAGE STYLING
   --------------------------------- */
.map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.map-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.map-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.map-viewport {
  background-color: #111;
  border: 3px solid #3c3c3c;
  border-top: 3px solid #1c1c1c;
  border-left: 3px solid #1c1c1c;
  border-bottom: 3px solid #8b8b8b;
  border-right: 3px solid #8b8b8b;
  height: 500px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  text-align: center;
  z-index: 10;
  padding: 2rem;
}

.map-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  animation: mapFloat 2.5s infinite ease-in-out;
}

@keyframes mapFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.map-placeholder h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.map-placeholder p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.font-size-medium {
  font-size: 0.95rem !important;
}

/* ---------------------------------
   5. RESOURCES / MATERIAL TRACKER CSS (PREVIOUSLY MAIN RULES)
   --------------------------------- */
.title-with-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Pixel Buttons (Gamer / Minecraft Style but Modern) */
.pixel-btn {
  position: relative;
  background: #2b1c40;
  border: 2px solid #5a3b8c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.1s ease;
  font-family: 'Silkscreen', monospace;
  font-size: 0.85rem;
  text-shadow: 1px 1px 0px #000;
  box-shadow: inset -2px -2px 0px #1c112b, inset 2px 2px 0px #704da8;
}

.pixel-btn:hover {
  background: #3e285c;
  border-color: var(--accent-purple);
  box-shadow: inset -2px -2px 0px #24143a, inset 2px 2px 0px #8b5cf6, 0 0 15px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.pixel-btn:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 0px #1c112b, inset -2px -2px 0px #704da8;
}

.file-upload-btn-wrapper {
  position: relative;
}

.file-upload-btn-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Drop Zone Overlay */
.drop-zone-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 3, 14, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.drop-zone-overlay.active {
  display: flex;
}

.drop-zone-content {
  border: 3px dashed var(--border-glow);
  background: rgba(20, 10, 35, 0.85);
  padding: 3rem;
  text-align: center;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 0 40px var(--border-glow);
  transform: scale(0.9);
  animation: popIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  to { transform: scale(1); }
}

.drop-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 2s infinite ease-in-out;
}

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

.drop-zone-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.drop-zone-content p {
  color: var(--text-muted);
}

/* Dashboard Panel */
.dashboard-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.schematic-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.schematic-info h2 {
  font-size: 1.6rem;
  outline: none;
  border-bottom: 2px dashed transparent;
  transition: border-color var(--transition-speed);
}

.schematic-info h2:hover, .schematic-info h2:focus {
  border-color: var(--accent-purple);
}

.file-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Minecraft-Style Experience Bar */
.xp-bar-container {
  height: 24px;
  background-color: #2b2b2b;
  border: 3px solid #000;
  border-radius: 0px;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.xp-bar {
  height: 100%;
  background: linear-gradient(to right, #3bde3b, #7eff7e);
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
  position: relative;
}

.xp-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50%;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.xp-level {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--mc-green);
  text-shadow: 2px 2px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000, -2px 2px 0px #000;
  pointer-events: none;
  letter-spacing: 0.1em;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.stat-card:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
}

/* Tab Navigation Styling */
.tab-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  max-width: 300px;
  opacity: 0.65;
  transition: all var(--transition-speed);
}

.tab-btn.active {
  opacity: 1;
  background: #462c6b;
  border-color: var(--border-glow);
  box-shadow: inset -2px -2px 0px #24143a, inset 2px 2px 0px #a78bfa, 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Tab Content Visibility */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* Toolbar Filters */
.toolbar {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-speed);
}

.search-box input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
}

.clear-btn:hover {
  color: #fff;
}

.filters-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.filter-options {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-options button, .filter-options .group-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.filter-options button:hover, .filter-options .group-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-options button.active, .filter-options .group-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.spl-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.spl-select:focus {
  border-color: var(--accent-purple);
}

.reset-btn {
  margin-left: auto;
  background: #4a1525;
  border-color: #8c2e42;
  box-shadow: inset -2px -2px 0px #2b0b14, inset 2px 2px 0px #bd3d5a;
}

.reset-btn:hover {
  background: #611e31;
  border-color: #ef4444;
  box-shadow: inset -2px -2px 0px #380d19, inset 2px 2px 0px #f87171, 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Material Cards */
.materials-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Category Headers */
.category-header {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-header h3 {
  font-size: 1.25rem;
  color: #ebd3ff;
  text-transform: uppercase;
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Item Card Design */
.material-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.material-card.completed {
  border-color: rgba(85, 255, 85, 0.25);
  background: rgba(10, 30, 15, 0.4);
}

.material-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-purple);
  opacity: 0.5;
}

.material-card.completed::before {
  background: var(--mc-green);
}

.material-card:hover {
  transform: translateX(4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

.material-card.completed:hover {
  border-color: var(--mc-green);
  box-shadow: 0 4px 20px rgba(85, 255, 85, 0.15);
}

/* Minecraft-Style Slot for Icon */
.item-slot {
  width: 56px;
  height: 56px;
  background-color: #8b8b8b;
  border-top: 3px solid #373737;
  border-left: 3px solid #373737;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  image-rendering: pixelated;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.item-slot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #8b8b8b;
  z-index: 1;
}

.item-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 5;
  transition: transform 0.2s;
}

.material-card:hover .item-icon {
  transform: scale(1.1) rotate(5deg);
}

.item-slot.loading::after {
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { background: #555; }
  100% { background: #888; }
}

/* Info Section inside Card */
.item-details {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
}

.item-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.item-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.item-stacks-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.item-numbers {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.progress-inline-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.progress-mini-bar {
  flex: 1;
  height: 8px;
  background: #2b2b2b;
  border: 1px solid #000;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-purple);
  width: 0%;
  transition: width 0.3s ease;
}

.material-card.completed .progress-fill {
  background: var(--mc-green);
}

.progress-percent {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 35px;
  text-align: right;
}

/* Card Controls Block */
.item-controls-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Interactive Slider & Manual Input */
.manual-adjuster {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
}

.manual-adjuster button {
  background: none;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background var(--transition-speed);
}

.manual-adjuster button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.manual-adjuster button:active {
  background: rgba(168, 85, 247, 0.2);
}

.manual-input {
  width: 60px;
  background: none;
  border: none;
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

/* Quick Incrementor Shortcuts */
.quick-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.quick-btn:hover {
  color: #fff;
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
}

/* Card Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.checkmark {
  position: absolute;
  top: -14px;
  left: 0;
  height: 28px;
  width: 28px;
  background-color: #2a1b40;
  border: 2px solid #5a3c8c;
  border-radius: 4px;
  box-shadow: inset -1px -1px 0px #1a0e2a, inset 1px 1px 0px #7b58b8;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #382454;
  border-color: var(--accent-purple);
  box-shadow: inset -1px -1px 0px #24143a, inset 1px 1px 0px #8b5cf6, 0 0 8px rgba(168, 85, 247, 0.4);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #1e3f20;
  border-color: var(--mc-green);
  box-shadow: inset -1px -1px 0px #0f2411, inset 1px 1px 0px #52b857, 0 0 10px rgba(85, 255, 85, 0.4);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

/* STORAGE PLANNER CSS */
.storage-info {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.chest-stats p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.storage-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #000;
}

.block-status-done { background-color: rgba(85, 255, 85, 0.8); }
.block-status-partial { background-color: rgba(168, 85, 247, 0.8); }
.block-status-none { background-color: rgba(255, 85, 85, 0.8); }

.chests-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

/* Minecraft Double Chest Container */
.mc-chest {
  background: #2b2b2b;
  border: 4px solid #3c3c3c;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 2px;
  padding: 1rem;
  image-rendering: pixelated;
  position: relative;
}

.mc-chest::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-top: 4px solid #8b8b8b;
  border-left: 4px solid #8b8b8b;
  border-bottom: 4px solid #141414;
  border-right: 4px solid #141414;
  pointer-events: none;
}

.chest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #3c3c3c;
  padding-bottom: 0.5rem;
}

.chest-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
}

.chest-capacity {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Double Chest Grid: 9 columns, 6 rows (54 slots) */
.chest-slots-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  background: #8b8b8b;
  padding: 4px;
  border-top: 3px solid #373737;
  border-left: 3px solid #373737;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
}

/* Single Slot inside Chest */
.chest-slot {
  aspect-ratio: 1;
  background-color: #8b8b8b;
  border-top: 2px solid #373737;
  border-left: 2px solid #373737;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.1s;
}

.chest-slot:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.chest-slot.highlighted {
  outline: 2px solid var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
  animation: borderBlink 1.5s infinite;
  z-index: 10;
}

@keyframes borderBlink {
  50% { outline-color: transparent; box-shadow: none; }
}

/* Custom overlay indicating collection status inside slot */
.chest-slot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 8;
  pointer-events: none;
}

.chest-slot.status-done::after { background: var(--mc-green); }
.chest-slot.status-partial::after { background: var(--accent-purple); }
.chest-slot.status-none::after { background: var(--mc-red); }

/* Stack Count Text inside slot */
.slot-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: #fff;
  font-family: 'Silkscreen', 'VT323', monospace;
  font-size: 0.95rem;
  font-weight: bold;
  text-shadow: 1.5px 1.5px 0px #000;
  z-index: 6;
  pointer-events: none;
}

.slot-item-icon {
  width: 80%;
  height: 80%;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 5;
  transition: transform 0.15s;
}

.chest-slot:hover .slot-item-icon {
  transform: scale(1.15);
}

/* Custom Floating Minecraft Tooltip */
.minecraft-tooltip {
  position: fixed;
  z-index: 10000;
  background-color: rgba(16, 1, 16, 0.95);
  border: 2px solid #2d0a5e;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  pointer-events: none;
  min-width: 200px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  border-image: linear-gradient(135deg, #2d0a5e 0%, #16042b 100%) 1;
}

.tooltip-title {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tooltip-row.divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.35rem 0;
}

.tooltip-row .lbl {
  color: var(--text-muted);
}

.tooltip-row .val {
  font-weight: 600;
}

/* Footer Styling */
.app-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Animations and Media Queries */
@media(max-width: 1300px) {
  .app-header {
    padding: 0.8rem 1.25rem;
    gap: 0.75rem;
  }
  .logo-area h1 {
    font-size: 1.3rem;
  }
  .spl-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
  .main-nav {
    gap: 0.5rem;
  }
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  .header-controls {
    gap: 0.75rem;
  }
  .user-profile-header {
    padding: 0.25rem 0.45rem !important;
  }
}

@media(max-width: 1200px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .main-nav {
    justify-content: center;
  }
}

@media(max-width: 1000px) {
  .app-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "controls"
      "nav";
    gap: 1rem;
  }
  .logo-area {
    justify-content: center;
  }
  .main-nav {
    justify-content: center;
  }
  .header-controls {
    justify-content: center;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 800px) {
  .hero-section {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
  .server-ip-box {
    flex-direction: column;
    padding: 1rem;
    width: 100%;
  }
  .copy-ip-btn {
    width: 100%;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .reset-btn {
    margin-left: 0;
  }
}

@media(max-width: 600px) {
  .app-container {
    padding: 1rem 0.75rem;
  }
  .material-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .item-controls-block {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chest-slots-grid {
    grid-template-columns: repeat(6, 1fr); /* Wrap nicely on mobile */
  }
}

/* Hide uncompiled Vue templates */
[v-cloak] {
  display: none;
}

/* Projects Tab styles */
.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

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

.project-card-image {
  width: 100%;
  height: 180px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(20, 10, 40, 0.6) 0%, rgba(40, 20, 80, 0.4) 100%);
}

.project-placeholder-img span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.project-card .project-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Silkscreen', monospace;
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  border: 1px solid currentColor;
  z-index: 10;
}

.status-planned {
  color: var(--text-muted);
  background: rgba(100, 100, 100, 0.2);
}
.status-gathering {
  color: var(--mc-yellow);
  background: rgba(255, 255, 85, 0.15);
}
.status-building {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
}
.status-completed {
  color: var(--mc-green);
  background: rgba(85, 255, 85, 0.15);
}

.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
  height: 3.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.project-card-meta {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.project-meta-row .val {
  color: #fff;
}

.project-progress-container {
  margin-top: 0.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #0f081d;
  border: 1px solid var(--accent-purple);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

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

.form-group label {
  font-family: 'Silkscreen', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-control {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  border-color: var(--accent-purple);
  outline: none;
}

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

.checkbox-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}

.checkbox-item input {
  cursor: pointer;
}

.checkbox-item.checked {
  color: #fff;
}

/* File Upload Controls inside Modal */
.modal-file-upload {
  border: 1px dashed rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.03);
  padding: 1.25rem;
  border-radius: 6px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.modal-file-upload:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--accent-purple);
}

.modal-file-upload input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-upload-info strong {
  color: var(--accent-purple);
}

.file-name-display {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--mc-green);
  word-break: break-all;
}

/* Selected project view header */
.project-details-header {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.project-details-img {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-details-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-details-info h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-details-info p {
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.project-details-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-size: 0.88rem;
}

.project-details-meta-grid .meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
}

.project-details-meta-grid .meta-col .val {
  color: #fff;
  font-weight: 500;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.contributors-avatars-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.contrib-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.project-details-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media(max-width: 800px) {
  .project-details-header {
    flex-direction: column;
    padding: 1.5rem;
  }
  .project-details-img {
    width: 100%;
    height: 200px;
  }
}

.clickable-coords {
  cursor: pointer;
  text-decoration: underline dashed rgba(255,255,255,0.4);
  transition: color var(--transition-speed) || 0.2s ease;
}
.clickable-coords:hover {
  color: var(--mc-yellow) !important;
  text-decoration-color: var(--mc-yellow) !important;
}

/* Mod proposal statuses */
.status-pending {
  color: var(--mc-yellow);
  background: rgba(255, 255, 85, 0.15);
}
.status-accepted {
  color: var(--mc-green);
  background: rgba(85, 255, 85, 0.15);
}
.status-rejected {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* User verification styling */
.verification-badge {
  font-size: 0.8rem;
  user-select: none;
  cursor: help;
}

.verification-banner {
  border-radius: 8px;
  animation: bannerSlideDown 0.3s ease-out forwards;
}

@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Admin Panel Styles */
.admin-table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  background: var(--bg-card);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: inherit;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
  font-family: 'Silkscreen', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.admin-table td {
  font-size: 0.95rem;
  vertical-align: middle;
}

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.admin-badge-verified {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

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

.admin-code-cell {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--mc-yellow);
}

.editable-input {
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0.25rem 0.4rem;
  width: 100%;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.editable-input:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.editable-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-purple);
  outline: none;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* Plinko Page animations & style fixes */
@keyframes winPopupScale {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  15% { opacity: 1; transform: scale(1.1) translateY(0); }
  30% { opacity: 1; transform: scale(1.0) translateY(0); }
  80% { opacity: 1; transform: scale(1.0) translateY(0); }
  100% { opacity: 0; transform: scale(0.8) translateY(-40px); }
}

.plinko-win-overlay {
  text-shadow: 0 0 15px var(--accent-pink), 0 0 30px var(--accent-pink);
  font-weight: bold;
}

/* Plinko Page Styles */
.plinko-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.plinko-header {
  margin-bottom: 2rem;
}

.plinko-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.plinko-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plinko-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .plinko-layout {
    grid-template-columns: 1fr;
  }
}

.plinko-controls-col {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.plinko-bet-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plinko-bet-quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.plinko-bet-quick-btns button {
  padding: 0.4rem;
  font-size: 0.75rem;
  font-family: 'Silkscreen', monospace;
}

.plinko-rows-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.row-select-btn {
  padding: 0.4rem;
  font-size: 0.8rem;
  font-family: 'Silkscreen', monospace;
  opacity: 0.6;
}

.row-select-btn.active {
  opacity: 1;
  background: var(--accent-purple);
  border-color: var(--border-glow);
  box-shadow: inset -2px -2px 0px #24143a, inset 2px 2px 0px #a78bfa;
}

.play-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-family: 'Silkscreen', monospace;
  margin-top: 0.5rem;
  background: #2b401c;
  border-color: #3b8c5a;
  box-shadow: inset -2px -2px 0px #112b1c, inset 2px 2px 0px #4da870;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.play-btn:hover:not(:disabled) {
  background: #3c5a27;
  border-color: var(--mc-green);
  box-shadow: inset -2px -2px 0px #1c421d, inset 2px 2px 0px #6be290, 0 0 15px rgba(85, 255, 85, 0.4);
}

.play-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.plinko-game-col {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.plinko-canvas-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  background: radial-gradient(circle, rgba(20, 10, 35, 0.8) 0%, rgba(5, 2, 10, 0.95) 100%);
  border-radius: 10px;
  border: 2px solid rgba(168, 85, 247, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#plinko-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.plinko-bins-container {
  display: grid;
  width: 100%;
  max-width: 600px;
  gap: 3px;
  padding: 0 4px;
}

.plinko-bin {
  text-align: center;
  font-family: 'Silkscreen', monospace;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 0.4rem 0.1rem;
  border-radius: 4px;
  color: #fff;
  text-shadow: 1px 1px 0px #000;
  transition: all 0.1s ease;
  user-select: none;
}

.plinko-bin.active {
  transform: scaleY(1.2);
  box-shadow: 0 0 12px currentColor;
  z-index: 5;
}

/* Bin Colors based on risk and multiplier values */
.bin-risk-low {
  background: #374151; /* grey */
  border-bottom: 3px solid #111827;
  color: #d1d5db;
}
.bin-risk-med {
  background: #6d28d9; /* purple */
  border-bottom: 3px solid #3b0764;
  color: #ddd6fe;
}
.bin-risk-high {
  background: #db2777; /* pink */
  border-bottom: 3px solid #701a75;
  color: #fce7f3;
}
.bin-risk-max {
  background: #b91c1c; /* red */
  border-bottom: 3px solid #450a0a;
  color: #fee2e2;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 4px rgba(220, 38, 38, 0.4); }
  100% { box-shadow: 0 0 12px rgba(220, 38, 38, 0.8); }
}

/* Risk text helpers */
.risk-text-low { color: var(--mc-green); }
.risk-text-medium { color: var(--mc-yellow); }
.risk-text-high { color: #f43f5e; }

/* Multiplier text styles in history */
.mult-low { color: var(--text-muted); }
.mult-med { color: #fff; }
.mult-high { color: var(--mc-yellow); text-shadow: 0 0 5px rgba(255, 255, 85, 0.3); }
.mult-huge { color: #f43f5e; font-weight: bold; text-shadow: 0 0 8px rgba(244, 63, 94, 0.5); }

/* ===================== SHOP ===================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.25);
}

.shop-card-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.shop-card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.shop-card h4 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.shop-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}

.shop-price {
  font-size: 1.1rem;
}

.shop-card-footer .spl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===================== LEGAL / OFFER ===================== */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--text-secondary, #cfc3e0);
  font-size: 0.92rem;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color, rgba(168, 85, 247, 0.25));
}

.legal-doc h4 {
  font-size: 0.82rem;
  margin: 1.2rem 0 0.4rem;
  color: #fff;
}

.legal-doc p { margin: 0.6rem 0; }

.legal-doc ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
  padding-left: 0.8rem;
}

.legal-doc li { margin: 0.35rem 0; }

.legal-doc a { color: var(--mc-yellow, #ffd866); text-decoration: underline; }

.legal-doc code {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--mc-yellow, #ffd866);
}

/* Footer requisites */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  text-align: left;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color, rgba(168, 85, 247, 0.2));
}

.footer-col h4 {
  font-size: 0.72rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.footer-col p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.2rem 0;
}

.footer-col a { color: var(--mc-yellow, #ffd866); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

/* Временно скрытые реквизиты: визуальный блюр (реальных данных в коде нет) */
.req-blur {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.85;
}

/* Goals Section */
.goal-card {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-speed) ease;
}

.goal-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.1);
}

.goal-completed {
  border-color: rgba(85, 255, 85, 0.3) !important;
  background: rgba(10, 30, 15, 0.3) !important;
}

/* Audit Log Entry */
.audit-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(0,0,0,0.2);
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
}

.audit-entry:hover {
  background: rgba(168, 85, 247, 0.05);
}

.audit-action-badge {
  font-family: 'Silkscreen', monospace;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* Quantity Control Buttons */
.qty-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  min-width: 38px;
  text-align: center;
}

.qty-btn.minus {
  background: #4a1525;
  border-color: #8c2e42;
  box-shadow: inset -2px -2px 0px #2b0b14, inset 2px 2px 0px #bd3d5a;
}

.qty-btn.minus:hover {
  background: #611e31;
  border-color: #ef4444;
  box-shadow: inset -2px -2px 0px #380d19, inset 2px 2px 0px #f87171, 0 0 15px rgba(239, 68, 68, 0.4);
}

.qty-btn.plus {
  background: #1a3a1a;
  border-color: #2d6b2d;
  box-shadow: inset -2px -2px 0px #0f220f, inset 2px 2px 0px #45a845;
}

.qty-btn.plus:hover {
  background: #234d23;
  border-color: #55ff55;
  box-shadow: inset -2px -2px 0px #163216, inset 2px 2px 0px #6fff6f, 0 0 15px rgba(85, 255, 85, 0.4);
}

/* Market card premium hover effect */
.market-item-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.market-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* Category filter buttons */
.pixel-btn-small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pixel-btn-small:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.05);
  color: #fff;
}
.pixel-btn-small.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* IP row custom styling and highlights */
.ip-row {
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ip-row.ip-active {
  border-color: rgba(34, 197, 94, 0.6) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.04) !important;
}
.ip-row.ip-active .ip-address {
  color: var(--mc-yellow) !important;
  text-shadow: 0 0 8px rgba(255, 255, 85, 0.3) !important;
}
.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-indicator-dot.online {
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.status-indicator-dot.offline {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Mods Column Layout */
.mods-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

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

.mods-column {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mods-column.collapsed {
  border-color: rgba(255, 255, 255, 0.02);
}

.mods-column-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.mods-column-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mods-column-title {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.mods-column-content {
  padding: 1rem;
  max-height: 800px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Custom scrollbar for column content */
.mods-column-content::-webkit-scrollbar {
  width: 6px;
}
.mods-column-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.mods-column-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.mods-column-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mods-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

/* Modify card layout when inside a column */
.mods-column .project-card {
  margin-bottom: 0;
  width: 100%;
  flex-shrink: 0;
}

.mods-column .project-card-content {
  padding: 1rem;
}

