/* Admin Create Page */

.admin-check-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 165, 0, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* ================================================================
   Tab Bar
   ================================================================ */

.admin-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
}

.admin-tab-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  border-color: rgba(255, 165, 0, 0.4);
  color: rgba(255, 165, 0, 0.9);
}

.admin-tab-btn.active {
  border-color: rgba(255, 165, 0, 0.6);
  background: rgba(255, 165, 0, 0.15);
  color: rgba(255, 165, 0, 1);
}

.admin-save-section {
  margin-top: var(--spacing-xl);
  display: flex;
  justify-content: flex-end;
}

/* ================================================================
   Graph Explorer
   ================================================================ */

.graph-explorer {
  padding: 0;
}

.graph-explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.graph-explorer-search {
  flex: 1;
  min-width: 200px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
}

.graph-explorer-search:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-explorer-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.graph-explorer-select {
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.graph-explorer-select:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-explorer-btn {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(100, 200, 255, 0.25);
  background: rgba(100, 200, 255, 0.06);
  color: rgba(100, 200, 255, 0.8);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.graph-explorer-btn:hover {
  border-color: rgba(100, 200, 255, 0.5);
  color: rgba(100, 200, 255, 1);
  background: rgba(100, 200, 255, 0.1);
}

.graph-explorer-btn.accent {
  border: 1px dashed rgba(100, 200, 255, 0.3);
  background: transparent;
  color: rgba(100, 200, 255, 0.7);
}

.graph-explorer-btn.accent:hover {
  border-color: rgba(100, 200, 255, 0.6);
  color: rgba(100, 200, 255, 1);
  background: rgba(100, 200, 255, 0.06);
}

/* Filters */
.graph-explorer-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.graph-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.graph-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.graph-filter-select {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  cursor: pointer;
  min-width: 100px;
}

.graph-filter-select:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-filter-select option {
  background: #0c0c0e;
  color: #fff;
}

/* Legend */
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.graph-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.graph-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Canvas — fills available viewport height */
.graph-explorer-canvas {
  width: 100%;
  height: calc(100vh - 280px);
  min-height: 400px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: 8px;
}

/* Properties panel */
.graph-explorer-props {
  margin-top: 10px;
  background: rgba(100, 200, 255, 0.05);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
}

.graph-props-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(100, 200, 255, 0.12);
  flex-wrap: wrap;
}

.graph-props-header-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.graph-props-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.graph-props-badge {
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(100, 200, 255, 0.8);
}

.graph-props-badge.group-badge {
  border-color: rgba(100, 200, 255, 0.4);
  color: rgba(100, 200, 255, 0.9);
  background: rgba(100, 200, 255, 0.08);
}

.graph-props-section {
  margin-bottom: 12px;
}

.graph-props-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.graph-props-empty {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  margin-bottom: 4px;
}

.graph-props-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.graph-props-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.graph-props-row-label {
  font-size: 0.72rem;
  color: rgba(100, 200, 255, 0.6);
  font-weight: 500;
  min-width: 40px;
}

.graph-props-row-text {
  flex: 1;
}

.graph-props-clickable {
  cursor: pointer;
  color: rgba(100, 200, 255, 0.85);
}

.graph-props-clickable:hover {
  color: rgba(100, 200, 255, 1);
  text-decoration: underline;
}

.graph-props-arrow {
  color: rgba(100, 200, 255, 0.5);
  font-size: 0.72rem;
}

.graph-props-rel-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.graph-props-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
  line-height: 1;
}

.graph-props-remove:hover {
  color: #f66;
}

.graph-props-add-row {
  margin-top: 6px;
}

.graph-props-add-btn {
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px dashed rgba(100, 200, 255, 0.25);
  background: transparent;
  color: rgba(100, 200, 255, 0.55);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.graph-props-add-btn:hover {
  border-color: rgba(100, 200, 255, 0.5);
  color: rgba(100, 200, 255, 0.9);
}

.graph-props-add-form {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  position: relative;
}

.graph-props-select {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  min-width: 120px;
}

.graph-props-select:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-props-input {
  flex: 1;
  min-width: 150px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
}

.graph-props-input:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-props-confirm-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  background: rgba(100, 200, 255, 0.1);
  color: rgba(100, 200, 255, 0.9);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.graph-props-confirm-btn:hover {
  background: rgba(100, 200, 255, 0.2);
  border-color: rgba(100, 200, 255, 0.5);
}

.graph-props-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid rgba(100, 200, 255, 0.25);
  border-radius: 0 0 6px 6px;
  max-height: 160px;
  overflow-y: auto;
}

.graph-props-search-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.graph-props-search-item:last-child {
  border-bottom: none;
}

.graph-props-search-item:hover {
  background: rgba(100, 200, 255, 0.12);
  color: rgba(100, 200, 255, 1);
}

.graph-props-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.graph-props-action-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid rgba(100, 200, 255, 0.25);
  background: rgba(100, 200, 255, 0.06);
  color: rgba(100, 200, 255, 0.8);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.graph-props-action-btn:hover {
  border-color: rgba(100, 200, 255, 0.5);
  color: rgba(100, 200, 255, 1);
  background: rgba(100, 200, 255, 0.12);
}

.graph-props-action-btn.danger {
  border-color: rgba(255, 100, 100, 0.25);
  color: rgba(255, 100, 100, 0.7);
  background: rgba(255, 100, 100, 0.04);
}

.graph-props-action-btn.danger:hover {
  border-color: rgba(255, 100, 100, 0.5);
  color: rgba(255, 100, 100, 0.95);
  background: rgba(255, 100, 100, 0.1);
}

.graph-props-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.graph-props-inline-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.graph-props-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.graph-props-table th {
  text-align: left;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.graph-props-table td {
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.graph-props-table tr:hover td {
  background: rgba(100, 200, 255, 0.04);
}

.graph-props-table th:last-child,
.graph-props-table td:last-child {
  width: 28px;
  text-align: center;
}

.graph-props-type-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ================================================================
   Groups Table (below graph canvas)
   ================================================================ */

.graph-groups-table-section {
  margin-top: 16px;
}

.graph-groups-table-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.graph-groups-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.graph-groups-table thead th {
  text-align: left;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(100, 200, 255, 0.55);
  border-bottom: 1px solid rgba(100, 200, 255, 0.15);
}

.graph-groups-table .col-expand {
  width: 32px;
  text-align: center;
}

.graph-groups-table tbody td {
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.graph-groups-table-row:hover td {
  background: rgba(100, 200, 255, 0.04);
}

.graph-groups-table-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.group-expand-btn {
  background: none;
  border: none;
  color: rgba(100, 200, 255, 0.5);
  cursor: pointer;
  font-size: 0.65rem;
  padding: 2px 4px;
  transition: color 0.12s ease;
}

.group-expand-btn:hover {
  color: rgba(100, 200, 255, 0.9);
}

.group-expand-btn.expanded {
  color: rgba(100, 200, 255, 0.8);
}

.group-detail-row td {
  padding: 0 8px 8px 8px !important;
  border-bottom: 1px solid rgba(100, 200, 255, 0.08) !important;
}

.group-detail-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 0 2px 0;
}

.group-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(100, 200, 255, 0.06);
  border: 1px solid rgba(100, 200, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
}

.group-detail-type {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 2px;
}

.group-detail-empty {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.group-sport-select {
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  cursor: pointer;
}

.group-sport-select:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.group-sport-select option {
  background: #0c0c0e;
  color: #fff;
}

/* Search dropdown (shared, still used by Topics Manager) */
.admin-search-wrap {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.admin-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid rgba(100, 200, 255, 0.25);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 240px;
  overflow-y: auto;
}

.admin-search-dropdown.visible {
  display: block;
}

.admin-search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.admin-search-dropdown-item:last-child {
  border-bottom: none;
}

.admin-search-dropdown-item:hover {
  background: rgba(100, 200, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.admin-search-dropdown-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-dropdown-item-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.admin-search-dropdown-empty {
  padding: 10px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  text-align: center;
}

/* ================================================================
   Topics Manager
   ================================================================ */

.admin-topics-manager {
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.15);
  border-radius: 10px;
  padding: 0;
  margin-bottom: var(--spacing-md);
}

.admin-topics-manager[open] {
  padding-bottom: 14px;
}

.admin-topics-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-topics-summary::-webkit-details-marker {
  display: none;
}

.admin-topics-summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: rgba(0, 200, 150, 0.6);
  transition: transform 0.15s ease;
}

.admin-topics-manager[open] > .admin-topics-summary::before {
  transform: rotate(90deg);
}

.admin-topics-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0, 200, 150, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-topics-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-topics-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
}

.admin-topics-search {
  width: 100%;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
}

.admin-topics-search:focus {
  outline: none;
  border-color: rgba(0, 200, 150, 0.5);
}

.admin-topics-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.admin-topics-filters {
  display: flex;
  gap: 4px;
}

.admin-topics-filter {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.admin-topics-filter:hover {
  border-color: rgba(0, 200, 150, 0.3);
  color: rgba(0, 200, 150, 0.8);
}

.admin-topics-filter.active {
  border-color: rgba(0, 200, 150, 0.5);
  background: rgba(0, 200, 150, 0.12);
  color: rgba(0, 200, 150, 0.95);
}

.admin-topics-table-wrap {
  padding: 0 16px;
  max-height: 500px;
  overflow-y: auto;
}

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

.admin-topics-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15, 15, 20, 0.95);
  padding: 6px 8px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 200, 150, 0.7);
  border-bottom: 1px solid rgba(0, 200, 150, 0.2);
}

.admin-topics-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.admin-topics-table thead th.sortable:hover {
  color: rgba(0, 200, 150, 1);
}

.admin-topics-table thead th .sort-indicator {
  font-size: 0.6rem;
  margin-left: 3px;
  opacity: 0.6;
}

.admin-topics-table .col-topic-name { width: 30%; }
.admin-topics-table .col-topic-type { width: 20%; }
.admin-topics-table .col-topic-sport { width: 18%; }
.admin-topics-table .col-topic-level { width: 18%; }
.admin-topics-table .col-topic-actions { width: 14%; text-align: center; }

.admin-topics-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
}

.admin-topics-table tbody tr:hover {
  background: rgba(0, 200, 150, 0.04);
}

.admin-topics-table tbody td {
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.8);
  vertical-align: middle;
}

.admin-topics-table tbody td.col-topic-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.admin-topics-select {
  width: 100%;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  cursor: pointer;
}

.admin-topics-select:focus {
  outline: none;
  border-color: rgba(0, 200, 150, 0.5);
}

.admin-topics-table tbody tr.flash-success {
  background: rgba(0, 200, 150, 0.15) !important;
}

.admin-topics-table tbody tr.flash-error {
  background: rgba(255, 80, 80, 0.15) !important;
}

/* Hidden topic row styling */
.admin-topics-table tbody tr.admin-topic-hidden {
  opacity: 0.45;
}

.admin-topic-hidden-badge {
  font-size: 0.65rem;
  color: rgba(255, 80, 80, 0.8);
  background: rgba(255, 80, 80, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Hide / Unhide buttons */
.admin-topic-hide-btn,
.admin-topic-unhide-btn {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.admin-topic-hide-btn {
  color: rgba(255, 80, 80, 0.8);
}

.admin-topic-hide-btn:hover {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.3);
}

.admin-topic-unhide-btn {
  color: rgba(0, 200, 150, 0.8);
}

.admin-topic-unhide-btn:hover {
  background: rgba(0, 200, 150, 0.12);
  border-color: rgba(0, 200, 150, 0.3);
}

/* New Topic button in summary */
.admin-new-topic-btn {
  margin-left: auto;
  padding: 4px 14px;
  background: rgba(0, 200, 150, 0.15);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 4px;
  color: rgba(0, 200, 150, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-new-topic-btn:hover {
  background: rgba(0, 200, 150, 0.25);
}

.admin-topics-loading {
  padding: 20px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

/* ================================================================
   Seed Account Creation
   ================================================================ */

/* ================================================================
   Seed Tag Groups (Seed Content tab)
   ================================================================ */

.seed-tag-groups {
  background: rgba(255, 165, 0, 0.06);
  border: 1px solid rgba(255, 165, 0, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: var(--spacing-md);
}

.seed-tag-groups-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.seed-tag-groups-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 165, 0, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seed-tag-groups-summary {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.seed-tag-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seed-tag-group-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seed-tag-group-pill:hover {
  border-color: rgba(255, 165, 0, 0.4);
  color: rgba(255, 165, 0, 0.9);
  background: rgba(255, 165, 0, 0.08);
}

.seed-tag-group-pill.active {
  border-color: rgba(255, 165, 0, 0.6);
  background: rgba(255, 165, 0, 0.15);
  color: rgba(255, 165, 0, 1);
  font-weight: 500;
}

.seed-tag-pool {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.12);
  border-radius: 8px;
}

.seed-tag-pool-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.seed-tag-pool-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 165, 0, 0.85);
}

.seed-tag-pool-count {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.4);
}

.seed-tag-pool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 200px;
  overflow-y: auto;
}

.seed-tag-pool-pill {
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.1);
  color: rgba(255, 165, 0, 0.9);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seed-tag-pool-pill:hover {
  border-color: rgba(255, 100, 100, 0.5);
  background: rgba(255, 100, 100, 0.1);
  color: rgba(255, 100, 100, 0.9);
}

.seed-tag-pool-pill-x {
  font-size: 0.85rem;
  opacity: 0.5;
  line-height: 1;
}

.seed-tag-pool-pill:hover .seed-tag-pool-pill-x {
  opacity: 1;
}

.seed-tag-groups-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.seed-apply-tags-btn {
  padding: 6px 18px;
  background: rgba(255, 165, 0, 0.15);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-radius: 6px;
  color: rgba(255, 165, 0, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seed-apply-tags-btn:hover:not(:disabled) {
  background: rgba(255, 165, 0, 0.25);
  border-color: rgba(255, 165, 0, 0.6);
}

.seed-apply-tags-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.seed-apply-tags-status {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.seed-apply-tags-status.success {
  color: rgba(100, 200, 100, 0.9);
}

/* ================================================================
   Seed Account Creation
   ================================================================ */

.admin-seed-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-add-seed-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(255, 165, 0, 0.15);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-radius: 6px;
  color: rgba(255, 165, 0, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-add-seed-btn:hover {
  background: rgba(255, 165, 0, 0.25);
  border-color: rgba(255, 165, 0, 0.6);
}

.admin-add-seed-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 12px 14px;
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 8px;
}

.admin-add-seed-form label {
  font-size: 0.82rem;
  color: rgba(255, 165, 0, 0.8);
  white-space: nowrap;
}

.admin-seed-input {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
}

.admin-seed-input:focus {
  outline: none;
  border-color: rgba(255, 165, 0, 0.6);
}

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

.admin-seed-create-btn {
  padding: 6px 14px;
  background: rgba(255, 165, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.5);
  border-radius: 6px;
  color: rgba(255, 165, 0, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-seed-create-btn:hover {
  background: rgba(255, 165, 0, 0.3);
}

.admin-seed-create-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-seed-cancel-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-seed-cancel-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.admin-seed-status {
  font-size: 0.8rem;
  margin-left: 8px;
}

.admin-seed-status.success {
  color: rgba(100, 200, 100, 0.9);
}

.admin-seed-status.error {
  color: rgba(255, 100, 100, 0.9);
}

/* ============================================================================
   Settings Tab — Featured Explore Page
   ============================================================================ */

.admin-settings-section {
  max-width: 500px;
  padding: 1rem 0;
}

.admin-settings-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.25rem;
}

.admin-settings-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}

.featured-page-current {
  margin-bottom: 1rem;
}

.featured-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.featured-page-card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.featured-page-card-type {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.featured-page-card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-page-card-author {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.featured-page-remove-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
  transition: color 0.2s;
}

.featured-page-remove-btn:hover {
  color: rgba(255, 100, 100, 0.9);
}

/* Featured Page Table */

.featured-page-table-wrapper {
  margin-top: 0.5rem;
}

.featured-page-table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.featured-page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.featured-page-table thead th {
  position: sticky;
  top: 0;
  background: rgba(20, 20, 40, 0.95);
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-page-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.1s;
}

.featured-page-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.featured-page-table tbody td {
  padding: 0.45rem 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.featured-page-table-title {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
}

.featured-page-table-type-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.featured-page-table-author {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.75rem;
}

.featured-page-select-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}

.featured-page-select-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.featured-page-select-btn.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
}

.featured-page-row-selected {
  background: rgba(255, 255, 255, 0.04);
}

.featured-page-table-loading,
.featured-page-table-empty {
  text-align: center;
  padding: 1.5rem !important;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

