.admin-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 25000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 2rem 120px;
  overflow-y: auto;
}

.admin-screen.visible {
  display: flex;
}

.admin-content-box {
  width: 100%;
  max-width: 1200px;
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
}

.admin-token-input {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#adminAuth {
  text-align: center;
}

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

.stat-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.02);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
  font-weight: 500;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.admin-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-align: left;
  color: var(--text);
}

.stats-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  width: 100%;
  background: #fff;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

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

.clickable-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.clickable-row:hover {
  background: #f0f7ff !important;
}

.recent-shares-section {
  grid-column: span 2;
  margin-top: 1rem;
}

.msg-cell {
  max-width: 400px;
  white-space: normal;
  line-height: 1.4;
  font-size: 0.85rem;
}

@media (max-width: 1000px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .recent-shares-section {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .admin-screen {
    padding: 5rem 1rem 100px;
  }
  .admin-content-box {
    padding: 1.5rem;
  }
  .stats-summary {
    grid-template-columns: 1fr;
  }
}
