/* ========================================
   Admin Dashboard - Matches React layout
   ======================================== */

/* Ticket conversation modal styles */
.ve-ticket-message {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid;
}

.ve-ticket-message.ve-ticket-original {
  background-color: #1f2937;
  border-left-color: #3b82f6;
}

.ve-ticket-message.ve-ticket-user {
  background-color: #064e3b;
  border-left-color: #10b981;
}

.ve-ticket-message.ve-ticket-admin {
  background-color: #7c2d12;
  border-left-color: #f97316;
}

.ve-ticket-message.ve-ticket-admin.internal {
  background-color: #4c1d95;
  border-left-color: #8b5cf6;
}

.ve-ticket-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.ve-ticket-message-type {
  color: #94a3b8;
  font-weight: normal;
}

.ve-ticket-message-time {
  color: #64748b;
  font-size: 0.8rem;
  margin-left: auto;
}

.ve-ticket-message-content {
  line-height: 1.5;
  color: #e2e8f0;
}

.ve-admin-modal-lg {
  width: 90%;
  max-width: 800px;
}

.ve-admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.ve-admin-modal {
  background: #18181b;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.ve-admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #27272a;
}

.ve-admin-modal-header h3 {
  margin: 0;
  color: #fafafa;
  font-size: 1.125rem;
  font-weight: 600;
}

.ve-admin-modal-close {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.ve-admin-modal-close:hover {
  color: #fafafa;
}

.ve-admin-modal-body {
  padding: 1.5rem;
}

.ve-admin-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0 1.5rem 1.5rem;
}

/* Force no scrollbars on admin pages */
body.admin-layout {
  overflow-x: hidden !important;
}

body.admin-layout html {
  overflow-x: hidden !important;
}

/* Disable any animated backgrounds on admin pages */
body.admin-layout::before,
body.admin-layout::after,
.admin-layout::before,
.admin-layout::after {
  display: none !important;
  content: none !important;
}

.ve-admin-root {
  min-height: 100vh;
  padding: 1rem;
  background-color: #030712;
  color: #f4f4f5;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  z-index: 1;
}

.ve-admin-shell {
  display: flex;
  flex: 1;
  margin: 0 auto;
  max-width: 1600px;
  background-color: #050609;
  border-radius: 1.5rem;
  /* Contain scrolling inside the admin shell */
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  min-height: calc(100vh - 2rem);
}

.ve-admin-shell::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

/* ========== Sidebar ========== */
.ve-admin-sidebar {
  width: 256px;
  min-width: 256px;
  background-color: #050609;
  display: flex;
  flex-direction: column;
  transition: width 0.2s;
}

.ve-admin-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 0.75rem;
}

.ve-admin-brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.ve-admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}
.ve-admin-menu-toggle:hover {
  background-color: rgba(39, 39, 42, 0.8);
}

/* Nav container - scrollable */
.ve-admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Top-level nav item */
.ve-admin-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #d4d4d8;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.ve-admin-nav-item:hover:not([disabled]) {
  background-color: rgba(39, 39, 42, 0.8);
}
.ve-admin-nav-item[disabled] {
  cursor: default;
  opacity: 0.6;
}
.ve-admin-nav-item i:first-child {
  font-size: 1.125rem;
  color: #a1a1aa;
}
.ve-admin-nav-item-active {
  background-color: rgba(39, 39, 42, 0.8);
}

/* Chevron for group toggles */
.ve-admin-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  color: #71717a;
  transition: transform 0.2s;
}
.ve-admin-nav-group.open .ve-admin-chevron {
  transform: rotate(90deg);
}

/* Accordion group */
.ve-admin-nav-group {
  display: flex;
  flex-direction: column;
}

/* Permission gating — JS adds this class to sidebar items the current
   admin doesn't have access to. !important is required to override the
   default display: flex on nav groups and the .open display: flex on
   sub-item containers. */
.ve-admin-permission-hidden {
  display: none !important;
}

/* Sub-items container (hidden by default) */
.ve-admin-nav-subitems {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.25rem 0 0.25rem 0.75rem;
}
.ve-admin-nav-group.open .ve-admin-nav-subitems {
  display: flex;
}

/* Sub-item */
.ve-admin-nav-subitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.ve-admin-nav-subitem:hover:not([disabled]) {
  background-color: rgba(39, 39, 42, 0.8);
}
.ve-admin-nav-subitem[disabled] {
  cursor: default;
  opacity: 0.5;
}
.ve-admin-nav-subitem i {
  font-size: 0.625rem;
  color: #71717a;
}

/* ========== Sidebar Footer ========== */
.ve-admin-sidebar-footer {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #27272a;
}

.ve-admin-settings-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.75rem;
  cursor: pointer;
}
.ve-admin-settings-btn:hover:not([disabled]) {
  background-color: rgba(39, 39, 42, 0.8);
}
.ve-admin-settings-btn[disabled] {
  cursor: default;
  opacity: 0.6;
}

.ve-admin-user-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ve-admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4d4d8;
  font-size: 1rem;
}

.ve-admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ve-admin-user-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fafafa;
}

.ve-admin-user-email {
  font-size: 0.6875rem;
  color: #71717a;
}

/* ========== Main Content ========== */
.ve-admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #050609;
  /* Scroll long admin pages (e.g. Land Rezzer) inside the main area */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Add Users page styling */
.ve-admin-user-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #27272a;
  background-color: #18181b;
}

.ve-admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ve-admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
}

.ve-admin-user-name {
  font-weight: 500;
  color: #fafafa;
  font-size: 0.9rem;
}

.ve-admin-user-uuid {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-family: monospace;
}

.ve-admin-role-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #1e40af;
  color: #dbeafe;
}

.ve-admin-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.ve-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.ve-admin-table th,
.ve-admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #27272a;
}

.ve-admin-table th {
  font-weight: 600;
  color: #d4d4d8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ve-admin-table td {
  color: #fafafa;
  font-size: 0.875rem;
  white-space: nowrap;
}

.ve-admin-btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: 70px;
  text-align: center;
}

/* Modal styling */
.ve-admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-admin-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.ve-admin-modal-content {
  position: relative;
  background: #18181b;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.ve-admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.ve-admin-modal-header h3 {
  margin: 0;
  color: #fafafa;
  font-size: 1.1rem;
  font-weight: 600;
}

.ve-admin-modal-close {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-admin-modal-close:hover {
  color: #fafafa;
}

.ve-admin-modal-body {
  padding: 1.5rem;
}

.ve-admin-modal-body p {
  margin: 0 0 1rem;
  color: #e5e7eb;
}

.ve-admin-modal-body .ve-admin-form-group {
  margin-bottom: 1rem;
}

.ve-admin-modal-body label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fafafa;
  font-weight: 500;
  cursor: pointer;
}

.ve-admin-modal-body small {
  display: block;
  margin-top: 0.25rem;
  margin-left: 1.5rem;
  color: #a1a1aa;
  font-size: 0.75rem;
}

.ve-admin-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0 1.5rem 1.5rem;
}

/* Permissions grid styling */
.permissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.permissions-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fafafa;
  font-size: 0.875rem;
  cursor: pointer;
}

.permissions-grid input[type="checkbox"] {
  margin: 0;
}

/* Top bar */
.ve-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.ve-admin-topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-admin-search-input {
  width: 100%;
  max-width: 28rem;
  height: 2rem;
  border-radius: 9999px;
  padding: 0 0.75rem;
  border: 1px solid #27272a;
  background-color: rgba(24, 24, 27, 0.9);
  color: #fafafa;
  font-size: 0.75rem;
}
.ve-admin-search-input::placeholder {
  color: #71717a;
}
.ve-admin-search-input:focus {
  outline: none;
  border-color: #3f3f46;
}

.ve-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ve-admin-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: none;
  background-color: #f4f4f5;
  color: #18181b;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
}
.ve-admin-quick-btn:hover:not([disabled]) {
  background-color: #fff;
}
.ve-admin-quick-btn[disabled] {
  cursor: default;
  opacity: 0.7;
}
.ve-admin-quick-btn i {
  font-size: 0.875rem;
}

.ve-admin-logout-btn {
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46;
  background: transparent;
  color: #d4d4d8;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
}
.ve-admin-logout-btn:hover {
  background-color: rgba(39, 39, 42, 0.8);
}

/* Page header */
.ve-admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
}

.ve-admin-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fafafa;
}

.ve-admin-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.ve-admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ve-admin-live-pill {
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #020617;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

/* Stats grid */
.ve-admin-stats {
  flex: 1;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-content: start;
}

.ve-admin-stat-card {
  background-color: #0a0a0f;
  border-radius: 1rem;
  border: 1px solid #27272a;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ve-admin-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ve-admin-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}

.ve-admin-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.ve-admin-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fafafa;
}

.ve-admin-stat-error {
  font-size: 0.75rem;
  color: #fca5a5;
}

.ve-admin-stats-loading {
  font-size: 0.875rem;
  color: #a1a1aa;
}

/* ========== Loading & Empty States ========== */
.ve-admin-loading,
.ve-admin-empty,
.ve-admin-error {
  padding: 2rem;
  text-align: center;
  color: #a1a1aa;
  font-size: 0.875rem;
}

.ve-admin-error {
  color: #fca5a5;
}

/* ========== Filters ========== */
.ve-admin-filters {
  display: flex;
  gap: 0.75rem;
  padding: 0 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ve-admin-summary {
  padding: 0.75rem 2rem 0.25rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ve-admin-summary span {
  white-space: nowrap;
}

.ve-admin-search,
.ve-admin-select,
.ve-admin-input,
.ve-admin-textarea {
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  background-color: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  color: #fafafa;
  outline: none;
  transition: border-color 0.15s;
}

.ve-admin-search:focus,
.ve-admin-select:focus,
.ve-admin-input:focus,
.ve-admin-textarea:focus {
  border-color: #fbbf24;
}

.ve-admin-search {
  min-width: 240px;
}

.ve-admin-select {
  min-width: 140px;
  cursor: pointer;
}

.ve-admin-textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

/* ========== Tables ========== */
.ve-admin-table-wrap {
  padding: 0 2rem;
  overflow-x: auto;
}

.ve-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.ve-admin-table th,
.ve-admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #27272a;
}

.ve-admin-table th {
  font-weight: 600;
  color: #a1a1aa;
  background-color: #0a0a0c;
  white-space: nowrap;
}

.ve-admin-table td {
  color: #e4e4e7;
}

.ve-admin-table tbody tr:hover {
  background-color: rgba(39, 39, 42, 0.4);
}

/* Drag-and-drop helpers for admin tables (navigation, contact blocks, FAQs) */
.ve-admin-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #71717a;
}

.ve-admin-drag-handle i {
  font-size: 0.9rem;
}

.ve-admin-table tbody tr.ve-admin-row-dragging {
  opacity: 0.6;
}

.ve-admin-table tbody tr.ve-admin-row-drag-over {
  outline: 2px dashed #fbbf24;
  outline-offset: -2px;
  background-color: rgba(251, 191, 36, 0.12);
}

/* Featured property toggle */
.ve-admin-featured-cell {
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.ve-admin-featured-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ve-admin-featured-btn:hover {
  transform: scale(1.2);
}

.ve-admin-featured-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ve-admin-featured-active {
  color: #f59e0b;
}

.ve-admin-featured-inactive {
  color: #71717a;
}

.ve-admin-featured-inactive:hover {
  color: #a1a1aa;
}

.ve-admin-uuid {
  font-family: monospace;
  font-size: 0.75rem;
  color: #71717a;
}

.ve-admin-id-link {
  margin-left: 0.35rem;
  color: #71717a;
  font-size: 0.75rem;
}

.ve-admin-id-link:hover {
  color: #fbbf24;
}

.ve-admin-maturity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #1f2937;
  color: #e5e7eb;
}

.ve-admin-maturity-general,
.ve-admin-maturity- {
  background-color: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.ve-admin-maturity-moderate {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.ve-admin-maturity-adult {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ========== Status Badges ========== */
.ve-admin-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.ve-status-active {
  background-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.ve-status-draft {
  background-color: rgba(161, 161, 170, 0.2);
  color: #a1a1aa;
}

.ve-status-paused {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.ve-status-inactive,
.ve-status-suspended {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.ve-status-hold,
.ve-status-on-hold {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.ve-status-expired {
  background-color: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.ve-status-open {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.ve-status-in-progress {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.ve-status-resolved,
.ve-status-closed {
  background-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* ========== Action Controls ========== */
.ve-admin-actions {
  white-space: nowrap;
}

.ve-admin-action-select {
  height: 28px;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  background-color: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.25rem;
  color: #d4d4d8;
  cursor: pointer;
}

.ve-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  background-color: #18181b;
  color: #e4e4e7;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.ve-admin-btn:hover {
  background-color: #27272a;
}

.ve-admin-btn-primary {
  background-color: #fbbf24;
  border-color: #fbbf24;
  color: #18181b;
}

.ve-admin-btn-primary:hover {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

.ve-admin-btn-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.ve-admin-btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

.ve-admin-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 0.75rem;
  border: 1px solid #3f3f46;
  border-radius: 0.25rem;
  background-color: #18181b;
  color: #a1a1aa;
  cursor: pointer;
  margin-right: 0.25rem;
}

.ve-admin-btn-sm:hover {
  background-color: #27272a;
  color: #fafafa;
}

.ve-admin-btn-sm.ve-admin-btn-danger {
  color: #fca5a5;
}

.ve-admin-btn-sm.ve-admin-btn-danger:hover {
  background-color: #dc2626;
  color: #fff;
}

/* ========== Modals ========== */
.ve-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.ve-admin-modal-content {
  width: 100%;
  max-width: 480px;
  background-color: #0a0a0c;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.ve-admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #27272a;
}

.ve-admin-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
}

.ve-admin-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
}

.ve-admin-modal-close:hover {
  background-color: #27272a;
  color: #fafafa;
}

.ve-admin-modal-body {
  padding: 1.25rem;
}

.ve-admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #27272a;
}

.ve-admin-form-group {
  margin-bottom: 1rem;
}

.ve-admin-form-group:last-child {
  margin-bottom: 0;
}

.ve-admin-form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
}

.ve-admin-form-group .ve-admin-input,
.ve-admin-form-group .ve-admin-textarea {
  width: 100%;
}

/* ========== Cards ========== */
.ve-admin-card {
  margin: 0 2rem;
  padding: 1.5rem;
  background-color: #0a0a0c;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  color: #e5e7eb;
}

.ve-admin-card h4 {
  color: #fafafa;
}

.ve-admin-card strong {
  color: #fafafa;
  font-weight: 600;
}

.ve-admin-card table td {
  color: #e5e7eb;
  padding: 3px 0;
}

/* ========== Tabs (e.g. Land Rezzer) ========== */
.ve-admin-tabs {
  margin: 0 2rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid #27272a;
}

.ve-admin-tab-btn,
.ve-admin-tab {
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ve-admin-tab-btn:hover,
.ve-admin-tab:hover {
  background-color: rgba(39, 39, 42, 0.8);
  color: #e5e7eb;
}

.ve-admin-tab-btn-active,
.ve-admin-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #f9fafb;
}

.ve-admin-tab-panel {
  display: none;
  margin-top: 0.5rem;
}

.ve-admin-tab-panel.ve-admin-tab-panel-active {
  display: block;
}

.ve-admin-maintenance-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ve-admin-maintenance-label {
  font-size: 1rem;
  font-weight: 500;
  color: #d4d4d8;
}

.ve-admin-maintenance-value {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

.ve-admin-maintenance-actions {
  display: flex;
  gap: 0.5rem;
}

/* ========== Types List (inline edit) ========== */
.ve-admin-types-form {
  margin-bottom: 1rem;
}

.ve-admin-form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ve-admin-form-group-flex {
  flex: 1;
  min-width: 200px;
}

.ve-admin-form-actions {
  display: flex;
  gap: 0.5rem;
}

.ve-admin-hero-actions {
  justify-content: flex-end;
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.ve-admin-error-msg {
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 0.25rem;
}

.ve-admin-types-list {
  margin-top: 1rem;
  border: 1px solid #27272a;
  background-color: rgba(0, 0, 0, 0.4);
  max-height: 320px;
  overflow-y: auto;
}

.ve-admin-types-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ve-admin-types-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #27272a;
}

.ve-admin-types-li:last-child {
  border-bottom: none;
}

.ve-admin-types-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ve-admin-types-label {
  color: #fafafa;
  font-size: 0.8125rem;
}

.ve-admin-types-slug {
  color: #71717a;
  font-size: 0.75rem;
}

.ve-admin-types-inactive {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: #71717a;
  margin-left: 0.5rem;
}

.ve-admin-types-edit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.ve-admin-input-sm {
  height: 28px;
  font-size: 0.75rem;
}

/* ========== Announcements Form ========== */
.ve-admin-announce-form {
  margin-bottom: 1rem;
}

.ve-admin-announce-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ve-admin-announce-grid {
    grid-template-columns: 1fr;
  }
}

.ve-admin-announce-left,
.ve-admin-announce-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ve-admin-label {
  display: block;
  font-size: 0.6875rem;
  color: #a1a1aa;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ve-admin-char-count {
  font-size: 0.6875rem;
  color: #71717a;
  text-align: right;
  margin-top: 0.25rem;
}

.ve-admin-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ve-admin-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #d4d4d8;
  cursor: pointer;
}

.ve-admin-radio-group input[type="radio"] {
  accent-color: #fbbf24;
}

.ve-admin-message-preview {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Action Buttons ========== */
.ve-admin-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.ve-admin-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  border: 1px solid #3f3f46;
  background-color: #18181b;
  color: #d4d4d8;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.ve-admin-btn-sm:hover {
  background-color: #27272a;
  border-color: #52525b;
}

.ve-admin-btn-sm.ve-admin-btn-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.ve-admin-btn-sm.ve-admin-btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.ve-admin-btn-sm i {
  font-size: 0.75rem;
}

/* ========== Plan Cards ========== */
.ve-admin-plan-card {
  border: 1px solid #27272a;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ve-admin-plan-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ve-admin-plan-row:last-child {
  margin-bottom: 0;
}

.ve-admin-plan-field {
  display: flex;
  flex-direction: column;
}

.ve-admin-plan-field label {
  font-size: 0.625rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.ve-admin-plan-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .ve-admin-plan-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ve-admin-plan-row {
    grid-template-columns: 1fr;
  }
}

.ve-admin-plan-field-full {
  grid-column: 1 / -1;
}

.ve-admin-plan-field-wide {
  grid-column: span 3;
}

.ve-admin-btn-group {
  display: flex;
  gap: 0.5rem;
}

/* ========== Pricing Tiers Grid ========== */
.ve-admin-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ve-admin-tier-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(39, 39, 42, 0.5);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.ve-admin-tier-label {
  font-size: 0.7rem;
  color: #a1a1aa;
  font-weight: 500;
  min-width: 45px;
}

.ve-admin-tier-days,
.ve-admin-tier-price {
  width: 70px !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.75rem !important;
}

.ve-admin-tier-sep {
  font-size: 0.7rem;
  color: #71717a;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ve-admin-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Form Elements ========== */
.ve-admin-form-group {
  margin-bottom: 1rem;
}

.ve-admin-form-group label {
  display: block;
  font-size: 0.625rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.ve-admin-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  font-size: 0.75rem;
  background-color: #18181b;
  border: 1px solid #3f3f46;
  color: #fafafa;
  resize: vertical;
}

.ve-admin-textarea:focus {
  outline: none;
  border-color: #fbbf24;
}

.ve-admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #27272a;
}

.ve-admin-form-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0;
}

.ve-admin-divider {
  border: none;
  border-top: 1px solid #27272a;
  margin: 1.25rem 0 1rem;
}

.seo-snippet-card {
  margin-bottom: 0.75rem;
}

.ve-admin-token-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ve-admin-token-group-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  margin-bottom: 0.25rem;
}

.ve-admin-token-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ve-admin-token-group-items .ve-admin-btn.ve-admin-btn-sm {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: none;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ve-admin-token-code {
  font-weight: 500;
}

.ve-admin-token-label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #a1a1aa;
}

.ve-admin-snippet-header {
  align-items: flex-end;
}

.ve-admin-snippet-header .ve-admin-form-group {
  margin-bottom: 0;
}

.ve-admin-snippet-body {
  margin-top: 0.75rem;
}

.ve-admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ========== Success/Error Messages ========== */
.ve-admin-success-msg {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  margin-bottom: 1rem;
}

/* ========== Media Library ========== */
.ve-admin-media-summary {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.ve-admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  justify-content: flex-start;
  justify-items: start;
}

.ve-admin-media-item {
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 220px;
}

.ve-admin-media-thumb {
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: #020617;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  max-height: 160px;
  margin: 0 auto;
}

.ve-admin-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ve-admin-media-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ve-admin-media-name {
  font-size: 0.75rem;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ve-admin-media-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.ve-admin-media-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ve-admin-media-url {
  flex: 1;
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Ad Slot Styles ========== */
.ve-admin-slot-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 0.25rem 0;
}

.ve-admin-slot-desc {
  font-size: 0.6875rem;
  color: #71717a;
  margin: 0;
}

.ve-admin-code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
  min-height: 160px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.pp-dash {
  padding: 0;
}

.pp-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pp-dash-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.pp-dash-subtitle {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.pp-dash-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pp-dash-updated {
  color: #6b7280;
  font-size: 0.75rem;
}

.pp-dash-refresh-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.pp-dash-refresh-btn:hover {
  background: #374151;
  color: #fff;
}

.pp-dash-section {
  margin-bottom: 2rem;
}

.pp-dash-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* KPI Hero Cards */
.pp-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pp-dash-kpi-card {
  background: #0a0c10;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #1a1f2e;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pp-dash-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: #2a3142;
}

.pp-dash-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pp-dash-kpi-revenue .pp-dash-kpi-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.pp-dash-kpi-users .pp-dash-kpi-icon { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.pp-dash-kpi-listings .pp-dash-kpi-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.pp-dash-kpi-subs .pp-dash-kpi-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.pp-dash-kpi-content {
  flex: 1;
  min-width: 0;
}

.pp-dash-kpi-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pp-dash-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pp-dash-kpi-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Analytics Grid */
.pp-dash-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pp-dash-analytics-card {
  background: #0a0c10;
  border: 1px solid #1a1f2e;
  border-radius: 0.75rem;
  padding: 1rem;
}

.pp-dash-analytics-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.pp-dash-analytics-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
}

/* Bar Chart */
.pp-dash-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pp-dash-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pp-dash-bar-label {
  font-size: 0.75rem;
  color: #9ca3af;
  width: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-dash-bar-track {
  flex: 1;
  height: 8px;
  background: #151921;
  border-radius: 4px;
  overflow: hidden;
}

.pp-dash-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.pp-dash-bar-value {
  font-size: 0.75rem;
  color: #d1d5db;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Engagement Grid */
.pp-dash-engagement-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.pp-dash-metric-card {
  background: #0a0c10;
  border: 1px solid #1a1f2e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.pp-dash-metric-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.pp-dash-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.pp-dash-metric-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Two Column Layout */
.pp-dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pp-dash-col {
  background: #0a0c10;
  border: 1px solid #1a1f2e;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Subscriptions */
.pp-dash-sub-card {
  margin-bottom: 1.5rem;
}

.pp-dash-sub-card:last-child {
  margin-bottom: 0;
}

.pp-dash-sub-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.pp-dash-slots {
  text-align: center;
}

.pp-dash-slots-bar {
  height: 12px;
  background: #151921;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pp-dash-slots-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.pp-dash-slots-text {
  font-size: 0.875rem;
  color: #d1d5db;
}

.pp-dash-slots-avail {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Top Regions Table */
.pp-dash-regions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.pp-dash-regions-table th,
.pp-dash-regions-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #1a1f2e;
}

.pp-dash-regions-table th {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pp-dash-regions-table td {
  color: #d1d5db;
}

.pp-dash-regions-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.75rem;
  text-align: center;
}

/* Health Grid */
.pp-dash-health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pp-dash-health-card {
  background: #0a0c10;
  border: 1px solid #1a1f2e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pp-dash-health-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pp-dash-health-good::before { background: #10b981; }
.pp-dash-health-warn::before { background: #f59e0b; }
.pp-dash-health-bad::before { background: #ef4444; }

.pp-dash-health-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pp-dash-health-good .pp-dash-health-icon { color: #10b981; }
.pp-dash-health-warn .pp-dash-health-icon { color: #f59e0b; }
.pp-dash-health-bad .pp-dash-health-icon { color: #ef4444; }

.pp-dash-health-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.pp-dash-health-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.pp-dash-health-sub {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Activity Table */
.pp-dash-activity {
  background: #0a0c10;
  border: 1px solid #1a1f2e;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
}

.pp-dash-activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.pp-dash-activity-table th,
.pp-dash-activity-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #1a1f2e;
}

.pp-dash-activity-table th {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pp-dash-activity-table td {
  color: #d1d5db;
}

.pp-dash-activity-table tr:last-child td {
  border-bottom: none;
}

/* Quick Actions */
.pp-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pp-dash-action-btn {
  background: #0d1117;
  border: 1px solid #1a1f2e;
  color: #d1d5db;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.pp-dash-action-btn:hover {
  background: #1a1f2e;
  color: #fff;
  border-color: #2a3142;
}

/* Empty State */
.pp-dash-empty {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* Error State */
.pp-dash-error {
  background: #7f1d1d;
  color: #fecaca;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .pp-dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pp-dash-analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pp-dash-engagement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pp-dash-health-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pp-dash-kpi-grid,
  .pp-dash-analytics-grid,
  .pp-dash-engagement-grid,
  .pp-dash-health-grid {
    grid-template-columns: 1fr;
  }
  .pp-dash-two-col {
    grid-template-columns: 1fr;
  }
}

/* Popup Banner Admin Styles */
.ve-admin-form-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ve-border-color, #374151);
}

.ve-admin-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ve-text-primary, #f9fafb);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ve-admin-section-title::before {
  content: '';
  width: 4px;
  height: 1.1rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 2px;
}

.ve-admin-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--ve-surface-a20, #374151);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ve-admin-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.ve-admin-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.ve-admin-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.ve-admin-range-value {
  display: inline-block;
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.ve-admin-help-text {
  font-size: 0.75rem;
  color: var(--ve-text-muted, #9ca3af);
  margin-top: 0.25rem;
  display: block;
}

.ve-admin-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ve-border-color, #374151);
}

/* Premium code editor styling */
.ve-admin-code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  background: var(--ve-surface-a10, #1f2937) !important;
  border: 1px solid var(--ve-border-color, #374151) !important;
  color: #e5e7eb !important;
  resize: vertical;
}

.ve-admin-code:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Light mode overrides for popup banner */
.ve-admin-root:not(.dark) .ve-admin-section-title {
  color: #111827;
}

.ve-admin-root:not(.dark) .ve-admin-form-section {
  border-top-color: #e5e7eb;
}

.ve-admin-root:not(.dark) .ve-admin-form-actions {
  border-top-color: #e5e7eb;
}

.ve-admin-root:not(.dark) .ve-admin-range {
  background: #e5e7eb;
}

.ve-admin-root:not(.dark) .ve-admin-help-text {
  color: #6b7280;
}

.ve-admin-root:not(.dark) .ve-admin-code {
  background: #f8fafc !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .ve-admin-shell {
    flex-direction: column;
  }

  .ve-admin-sidebar {
    width: 100%;
    min-width: 0;
  }

  .ve-admin-nav {
    max-height: 50vh;
  }

  .ve-admin-main {
    padding: 1rem;
  }

  .ve-admin-page-header,
  .ve-admin-stats,
  .ve-admin-filters,
  .ve-admin-table-wrap,
  .ve-admin-card {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .ve-admin-filters {
    flex-direction: column;
  }

  .ve-admin-search,
  .ve-admin-select {
    width: 100%;
    min-width: 0;
  }
}
