body {
  background: radial-gradient(circle at center, #0e1424 0%, #060b17 100%) !important;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}

.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header Styling */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-logo-img {
  height: 24px;
}

.header-branding h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.admin-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-badge.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.admin-badge.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Sidebar and Main Layout Grid */
.admin-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  padding: 20px 15px;
  border-radius: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}

.nav-tab.active {
  background: rgba(103, 11, 194, 0.18);
  border: 1px solid rgba(103, 11, 194, 0.3);
  color: #c7d2fe;
}

.tab-icon {
  font-size: 16px;
}

/* Panes Content */
.admin-panes {
  min-height: 500px;
}

.admin-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pane-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.pane-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Tables and Data Displays */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: rgba(10, 17, 37, 0.6);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-card);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  vertical-align: middle;
}

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

/* Custom Controls Inside Tables */
.role-select-inline {
  background: rgba(10, 17, 37, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.role-select-inline:focus {
  border-color: var(--color-develop);
}

.credits-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credits-input-group input {
  width: 60px;
  background: rgba(10, 17, 37, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  text-align: center;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--color-design);
  border-color: var(--color-design);
}

.btn-icon.deduct:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Sites Generator Grid Layout */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
}

.form-card, .list-card {
  padding: 24px;
  border-radius: 12px;
}

.form-card h3, .list-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.sites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.site-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.site-info-col h5 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.site-info-col p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.btn-visit-site {
  background: rgba(103, 11, 194, 0.2);
  border: 1px solid rgba(103, 11, 194, 0.4);
  color: #a5b4fc;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-visit-site:hover {
  background: var(--color-develop);
  border-color: var(--color-develop);
  color: #fff;
}

/* Stats Cards styling */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  padding: 24px;
  border-radius: 12px;
}

.stat-card h4 {
  margin: 0 0 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Access Blocked Screen */
.admin-blocked-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #111728 0%, #060b17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.blocked-card {
  max-width: 400px;
  width: 100%;
  padding: 40px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.blocked-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.blocked-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  margin: 0 0 10px 0;
  color: #fff;
}

.blocked-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}

.btn-signout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signout:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* Utility layout hints */
.field-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: 6px;
}

/* Form fields (signup / login / setup cards) */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
}
.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #670bc2;
  box-shadow: 0 0 0 3px rgba(103, 11, 194, 0.15);
}
