/**
 * Prince Vega - Dark dashboard theme
 * Standalone stylesheet (no external framework required).
 */

/* ==========================================
   Design tokens
   ========================================== */
:root {
  --primary: #14f195;
  --primary-soft: rgba(20, 241, 149, 0.12);
  --secondary: #9945ff;
  --secondary-soft: rgba(153, 69, 255, 0.12);
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;

  --bg-body: #0a0b0d;
  --bg-sidebar: #12131a;
  --bg-card: #12131a;
  --bg-input: #1a1b23;
  --bg-elevated: #171821;

  --border: #1e2028;
  --border-strong: #2a2d38;

  --text: #ffffff;
  --text-muted: #8b8f9e;
  --text-dim: #6b6e7b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --sidebar-width: 260px;
  --topbar-height: 64px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   Reset & base
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================
   Layout
   ========================================== */
.pv-wrapper {
  display: flex;
  min-height: 100vh;
}

.pv-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

.pv-content {
  flex: 1;
  padding: 24px;
  width: 100%;
}

/* Desktop collapsed state */
.pv-sidebar.collapsed {
  transform: translateX(-100%);
}

.pv-main.collapsed {
  margin-left: 0;
}

/* ==========================================
   Sidebar
   ========================================== */
.pv-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.pv-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.pv-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pv-logo svg {
  width: 22px;
  height: 22px;
}

.pv-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pv-sidebar-toggle {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.pv-sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Balance box */
.pv-balance-box {
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-input), var(--bg-card));
}

.pv-balance-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.pv-balance-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
}

.pv-balance-amount span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Navigation */
.pv-nav {
  flex: 1;
  padding: 4px 12px 16px;
  overflow-y: auto;
}

.pv-nav-section {
  margin-bottom: 18px;
}

.pv-nav-title {
  padding: 8px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.pv-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.pv-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.pv-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.pv-nav-item i {
  width: 20px;
  font-size: 17px;
  text-align: center;
}

.pv-nav-item span {
  flex: 1;
  font-size: 0.9rem;
}

/* Badges */
.pv-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pv-badge-hot { background: var(--danger); color: #fff; }
.pv-badge-pro { background: var(--secondary); color: #fff; }
.pv-badge-new { background: var(--primary); color: #0a0b0d; }

/* Sidebar footer */
.pv-sidebar-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.pv-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.pv-social:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ==========================================
   Topbar
   ========================================== */
.pv-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgba(18, 19, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.pv-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pv-page-title {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-topbar-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pv-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pv-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.pv-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pv-btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  color: #07130d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: opacity 0.2s, transform 0.2s;
}

.pv-btn-wallet:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pv-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
}

.pv-avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  color: #07130d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pv-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
}

/* ==========================================
   Footer
   ========================================== */
.pv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.pv-footer-left {
  color: var(--text-dim);
}

.pv-footer-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pv-footer-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.pv-footer-feed a {
  color: var(--primary);
  font-weight: 500;
}

.pv-feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pv-pulse 1.6s ease-in-out infinite;
}

.pv-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pv-footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.pv-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.pv-status-online {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.pv-status-offline {
  background: var(--danger);
}

@keyframes pv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================
   Cards
   ========================================== */
.pv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pv-card-glow {
  box-shadow: 0 0 0 1px var(--primary-soft), 0 20px 50px rgba(20, 241, 149, 0.05);
}

.pv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.pv-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.pv-card-title i {
  color: var(--primary);
}

.pv-card-body {
  padding: 20px;
}

/* ==========================================
   Page header
   ========================================== */
.pv-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.pv-page-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pv-page-header-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 24px;
  color: #07130d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pv-page-header-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pv-page-header-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pv-page-header-stats {
  display: flex;
  gap: 28px;
}

.pv-page-header-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.pv-page-header-stat .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.pv-page-header-stat .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* ==========================================
   Stats
   ========================================== */
.pv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pv-stat {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.pv-stat::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.65;
}

.pv-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  font-size: 20px;
}

.pv-stat-icon.green { background: var(--primary-soft); color: var(--primary); }
.pv-stat-icon.purple { background: var(--secondary-soft); color: var(--secondary); }
.pv-stat-icon.blue { background: rgba(56, 189, 248, 0.12); color: var(--info); }
.pv-stat-icon.orange { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.pv-stat-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.pv-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.pv-stat-label {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pv-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.pv-stat-trend.neutral { color: var(--text-dim); }

/* ==========================================
   Forms
   ========================================== */
.pv-form-group {
  margin-bottom: 4px;
}

.pv-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.pv-required {
  color: var(--danger);
}

.pv-input-wrapper {
  position: relative;
}

.pv-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.pv-form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.pv-form-control {
  min-height: 110px;
  padding: 13px 16px;
  resize: vertical;
}

select.pv-form-control {
  appearance: none;
  cursor: pointer;
}

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

.pv-form-control::placeholder {
  color: var(--text-dim);
}

.pv-form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pv-form-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* File upload */
.pv-file-upload {
  padding: 28px;
  text-align: center;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pv-file-upload:hover,
.pv-file-upload.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.pv-file-upload-icon {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 10px;
}

.pv-file-upload-text {
  color: var(--text);
  margin-bottom: 4px;
}

.pv-file-upload-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Toggle row + switch */
.pv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
}

.toggle-title {
  font-weight: 500;
  color: var(--text);
}

.toggle-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #0a0b0d;
}

/* Slippage */
.slippage-options {
  display: flex;
  gap: 8px;
}

.slippage-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.slippage-btn:hover,
.slippage-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ==========================================
   Buttons
   ========================================== */
.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.pv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  color: #07130d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.pv-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 241, 149, 0.25);
}

.pv-btn-ghost {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
}

.pv-btn-ghost:hover {
  border-color: var(--border-strong);
}

.pv-btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.pv-btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.pv-btn-block {
  width: 100%;
}

/* Spinner */
.pv-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pv-spin 0.7s linear infinite;
}

@keyframes pv-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   Token preview / cost breakdown
   ========================================== */
.token-preview {
  padding: 28px 16px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-input);
}

.token-preview-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed var(--border-strong);
  border-radius: 50%;
  font-size: 30px;
  color: var(--text-dim);
  background: var(--bg-card);
}

.token-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-preview-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.token-preview-symbol {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
}

.cost-breakdown {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-row.total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.cost-label {
  color: var(--text-muted);
}

.cost-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

.cost-row.total .cost-label,
.cost-row.total .cost-value {
  font-weight: 700;
  color: var(--primary);
}

.pv-balance-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.balance-label {
  color: var(--text-muted);
}

.balance-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================
   Tables
   ========================================== */
.pv-table-wrap {
  overflow-x: auto;
}

.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pv-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pv-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

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

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

.pv-table .pv-cell-strong {
  color: var(--text);
  font-weight: 500;
}

.pv-token-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pv-token-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.pv-token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-token-name {
  color: var(--text);
  font-weight: 500;
}

.pv-token-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.pv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.pv-pill-green { background: var(--primary-soft); color: var(--primary); }
.pv-pill-purple { background: var(--secondary-soft); color: var(--secondary); }
.pv-pill-red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.pv-pill-muted { background: var(--bg-input); color: var(--text-muted); }

/* ==========================================
   Empty state
   ========================================== */
.pv-empty {
  padding: 48px 24px;
  text-align: center;
}

.pv-empty i {
  font-size: 42px;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: block;
}

.pv-empty h3 {
  margin-bottom: 6px;
}

.pv-empty p {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ==========================================
   Toasts
   ========================================== */
.pv-toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: calc(100vw - 48px);
}

.pv-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  animation: pv-slideIn 0.3s ease;
}

@keyframes pv-slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.pv-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pv-toast-content {
  flex: 1;
  min-width: 0;
}

.pv-toast-message {
  color: var(--text);
  font-size: 0.875rem;
  word-break: break-word;
}

.pv-toast-close {
  flex-shrink: 0;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}

.pv-toast-close:hover {
  color: var(--text);
}

.pv-toast-success .pv-toast-icon { color: var(--primary); }
.pv-toast-error .pv-toast-icon,
.pv-toast-danger .pv-toast-icon { color: var(--danger); }
.pv-toast-warning .pv-toast-icon { color: var(--warning); }
.pv-toast-info .pv-toast-icon { color: var(--info); }

/* ==========================================
   Overlay
   ========================================== */
.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.pv-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   Grid & utilities
   ========================================== */
.row {
  display: flex;
  flex-wrap: wrap;
}

.row > [class*="col-"] {
  padding: 12px;
}

.row.g-3 > [class*="col-"] { padding: 8px; }
.row.g-4 > [class*="col-"] { padding: 12px; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }

.d-none { display: none !important; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

.pv-mt-16 { margin-top: 16px; }
.pv-mt-24 { margin-top: 24px; }

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }

.pv-text-center { text-align: center; }
.pv-text-muted { color: var(--text-muted); }
.pv-text-warning { color: var(--warning); }
.pv-fs-xs { font-size: 0.75rem; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1199px) {
  .pv-sidebar {
    transform: translateX(-100%);
  }

  .pv-sidebar.open {
    transform: translateX(0);
  }

  .pv-main,
  .pv-main.collapsed {
    margin-left: 0;
  }

  .pv-mobile-toggle {
    display: inline-flex;
  }

  .pv-sidebar-toggle {
    display: none;
  }
}

@media (max-width: 991px) {
  .col-lg-4,
  .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pv-content {
    padding: 16px;
  }

  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pv-topbar-center {
    display: none;
  }

  .pv-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pv-page-header-stats {
    width: 100%;
    justify-content: space-between;
  }

  .pv-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .pv-toasts {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .pv-toast {
    min-width: 0;
    max-width: 100%;
  }

  .pv-user-btn span {
    display: none;
  }
}
