/* Admin Body */
.admin-body {
  background: var(--bg-main);
  min-height: 100vh;
  color: var(--text);
}

/* Admin Navigation Header */
.admin-nav-header {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 0;
}

.admin-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.admin-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-nav-link:hover {
  background: rgba(122, 162, 247, 0.2);
  color: var(--text-bright);
}

.admin-nav-link.active {
  background: var(--primary);
  color: var(--bg-main);
}

.admin-nav-link.back-link {
  color: var(--text-muted);
  margin-left: 1rem;
}

.admin-nav-link.back-link:hover {
  background: rgba(122, 162, 247, 0.1);
  color: var(--text);
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.admin-header .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.stock-price-checker {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.price-checker-form {
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--bg-surface);
  color: var(--text-bright);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

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

.results-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.result-card {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.success-card {
  background: rgba(158, 206, 106, 0.1);
  border: 2px solid var(--success);
}

.success-card h3 {
  color: var(--success);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.error-card {
  background: rgba(247, 118, 142, 0.1);
  border: 2px solid var(--danger);
}

.error-card h3 {
  color: var(--danger);
  margin-bottom: 0.5rem;
}

.error-card p {
  color: var(--danger);
}

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

.price-item {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-item.highlight {
  background: rgba(122, 162, 247, 0.1);
  border-color: var(--primary);
}

.price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
}

.price-item.highlight .price-value {
  color: var(--primary);
}

.logs-section {
  margin-top: 2rem;
}

.logs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.logs-container {
  background: var(--bg-darker);
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'Monaco', 'Courier New', monospace;
  border: 1px solid var(--border);
}

.log-entry {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  align-items: baseline;
}

.log-index {
  color: var(--text-muted);
  min-width: 30px;
}

.log-level {
  font-weight: 700;
  min-width: 70px;
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

.log-message {
  flex: 1;
  word-break: break-word;
}

.log-info {
  background: rgba(122, 162, 247, 0.1);
}

.log-info .log-level {
  background: var(--primary);
  color: var(--bg-main);
}

.log-info .log-message {
  color: var(--info);
}

.log-success {
  background: rgba(158, 206, 106, 0.1);
}

.log-success .log-level {
  background: var(--success);
  color: var(--bg-main);
}

.log-success .log-message {
  color: var(--success);
}

.log-warning {
  background: rgba(255, 158, 100, 0.1);
}

.log-warning .log-level {
  background: var(--warning);
  color: var(--bg-main);
}

.log-warning .log-message {
  color: var(--warning);
}

.log-error {
  background: rgba(247, 118, 142, 0.1);
}

.log-error .log-level {
  background: var(--danger);
  color: var(--bg-main);
}

.log-error .log-message {
  color: var(--danger);
}

.log-debug {
  background: rgba(86, 95, 137, 0.1);
}

.log-debug .log-level {
  background: var(--text-muted);
  color: var(--bg-main);
}

.log-debug .log-message {
  color: var(--text);
}

.logs-container::-webkit-scrollbar {
  width: 8px;
}

.logs-container::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.section-head {
  background: var(--bg-elevated);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.section-head-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-head-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.section-stats {
  display: flex;
  gap: 1rem;
}

.stat-badge {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 100px;
  transition: all 0.2s ease;
}

.stat-badge:hover {
  border-color: var(--primary);
}

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

.stat-value {
  color: var(--text-bright);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.table-container {
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.analysis-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.analysis-table thead {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border);
}

.analysis-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.analysis-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: var(--bg-elevated);
}

.analysis-table tbody tr:hover {
  background: var(--bg-highlight);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.analysis-table tbody tr:last-child {
  border-bottom: none;
}

.analysis-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

/* Ensure images in table cells are constrained */
.analysis-table td img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
}

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

.status-cell {
  width: 140px;
}

.status-cell .status-indicator {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.status-indicator {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.status-indicator.status-analyzed {
  background: var(--success);
}

.status-indicator.status-failed {
  background: var(--danger);
}

.status-indicator.status-processing {
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-indicator.status-pending {
  background: var(--warning);
}

.status-indicator.status-transcribed {
  background: var(--info);
}

.status-indicator.status-no_recommendations {
  background: var(--text-muted);
}

.status-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-bright);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.url-cell {
  width: 300px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  transition: all 0.2s;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
}

.video-link:hover {
  color: var(--info);
  text-decoration: underline;
  transform: translateX(2px);
}

.video-url {
  color: var(--text);
  word-break: break-all;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.8rem;
  background: var(--bg-surface);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-name {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.channel-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.no-channel {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 500;
}

.requester-email {
  color: var(--text-bright);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-surface);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: inline-block;
}

.recommendations-count {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-bright);
  background: var(--bg-surface);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  min-width: 60px;
}

.created-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.created-date {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.created-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.error-row {
  background: rgba(247, 118, 142, 0.1);
}

.error-row td {
  padding: 0;
}

.pagination-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.pagination .page,
.pagination .first,
.pagination .last,
.pagination .prev,
.pagination .next {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.pagination .page:hover,
.pagination .first:hover,
.pagination .last:hover,
.pagination .prev:hover,
.pagination .next:hover {
  background: var(--bg-highlight);
  border-color: var(--primary);
  color: var(--text-bright);
}

.pagination .page a,
.pagination .first a,
.pagination .last a,
.pagination .prev a,
.pagination .next a {
  color: inherit;
  text-decoration: none;
}

.pagination .current {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  font-weight: 600;
}

.pagination .gap {
  color: var(--text-muted);
  padding: 0 0.5rem;
  font-weight: 500;
}

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


.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-header {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Card status indicators inherit from table styles */

.card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.metric-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-content dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0;
}

.metric-content dd {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: -0.02em;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border-radius: 20px;
  border: 2px dashed var(--border);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 0.5rem 0;
}

.empty-message {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0;
  font-weight: 500;
}

.empty-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.empty-link:hover {
  color: var(--info);
  text-decoration: underline;
}

.avatar-large {
  font-size: 2rem;
}

.card-timestamp {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.status-analyzed {
  background: rgba(158, 206, 106, 0.2);
  color: var(--success);
}

.status-pill.status-failed {
  background: rgba(247, 118, 142, 0.2);
  color: var(--danger);
}

.status-pill.status-processing {
  background: rgba(122, 162, 247, 0.2);
  color: var(--primary);
}

.status-pill.status-pending {
  background: rgba(255, 158, 100, 0.2);
  color: var(--warning);
}

.card-requester {
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requester-icon {
  font-size: 1rem;
}

.card-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-banner {
  background: rgba(255, 158, 100, 0.15);
  border-left: 4px solid var(--warning);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-details .channel-name {
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 700;
}

.channel-details .channel-date {
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 500;
}

.video-url-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.url-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.video-url-container .video-url {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-all;
  font-family: 'Monaco', 'Courier New', monospace;
}

.status-badge {
  font-weight: 600;
}

.status-badge.status-analyzed {
  color: var(--success);
}

.status-badge.status-failed {
  color: var(--danger);
}

.status-badge.status-pending {
  color: var(--warning);
}

.status-badge.status-processing {
  color: var(--info);
}

.error-banner {
  background: rgba(247, 118, 142, 0.15);
  border: 2px solid var(--danger);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.error-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
}

.error-message {
  color: var(--danger);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

/* Admin Search Styles */
.admin-container .search-section {
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.admin-container .search-container {
  max-width: 500px;
  margin: 0 auto;
}

.admin-container .search-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.admin-container .search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.admin-container .search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.admin-container .search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.admin-container .search-input-wrapper:focus-within .search-icon {
  color: var(--primary);
}

.admin-container .search-input {
  flex: 1;
  padding: 0.75rem 0.75rem 0.75rem 2.75rem;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-bright);
  outline: none;
}

.admin-container .search-input::placeholder {
  color: var(--text-muted);
}

.admin-container .search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-highlight);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.admin-container .search-clear:hover {
  background: var(--border);
  color: var(--text);
}

.admin-container .search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--bg-main);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-container .search-btn:hover {
  background: var(--primary-dark);
}

.admin-container .search-btn-icon {
  font-size: 1rem;
}

/* Search results highlight */
.admin-container .search-highlight {
  background: rgba(255, 158, 100, 0.1);
  border-left: 3px solid var(--warning);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-container .search-results-info {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive search */
@media (max-width: 768px) {
  .admin-container .search-section {
    padding: 1rem;
  }

  .admin-container .search-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .admin-container .search-btn {
    justify-content: center;
  }
}

/* Auto-analyse cell is defined above with width */

/* User Table Styles */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.user-email {
  font-weight: 600;
  color: var(--text-bright);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-admin {
  background: rgba(187, 154, 247, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(187, 154, 247, 0.3);
}

.role-user {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sessions-count,
.analyses-count,
.videos-count {
  font-weight: 600;
  color: var(--text-bright);
  background: var(--bg-surface);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
  min-width: 40px;
  text-align: center;
}

.videos-cell,
.sessions-cell,
.analyses-cell {
  width: 100px;
  text-align: center;
}

.performance-cell {
  width: 140px;
}

.auto-analyse-cell {
  width: 140px;
}

.updated-cell,
.created-cell {
  width: 130px;
}

.actions-cell {
  width: 200px;
}

.member-duration {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.joined-info,
.updated-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.joined-date,
.updated-date {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.875rem;
}

.joined-time,
.updated-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Performance Styles */
.performance-value {
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

.performance-value.profit-positive {
  background: rgba(158, 206, 106, 0.15);
  color: var(--success);
}

.performance-value.profit-negative {
  background: rgba(247, 118, 142, 0.15);
  color: var(--danger);
}

.performance-none {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* Influencer Cell */
.influencer-cell {
  width: 220px;
  overflow: hidden;
}

.influencer-cell .influencer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.influencer-cell .influencer-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-surface);
}

.influencer-cell .influencer-avatar img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.influencer-cell .influencer-avatar > div {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

.influencer-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.influencer-name {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.9rem;
}

.influencer-name a {
  color: var(--primary);
  text-decoration: none;
}

.influencer-name a:hover {
  text-decoration: underline;
}

/* Admin Container Responsive */
@media (max-width: 1200px) {
  .admin-container {
    padding: 1.5rem;
  }

  .section-head-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .section-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .admin-nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .admin-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .admin-nav-link.back-link {
    margin-left: 0;
  }

  .admin-container {
    padding: 1rem;
  }

  .section-head {
    padding: 1.5rem;
  }

  .section-head-title h2 {
    font-size: 1.5rem;
  }

  .stat-badge {
    padding: 0.75rem 1rem;
    min-width: 80px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .table-container {
    overflow-x: auto;
  }

  .analysis-table {
    min-width: 800px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-table {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}
