.pv-status-header.pv-connected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.pv-status-header.pv-connected .pv-status-avatar {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: pv-bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pv-status-header.pv-connected .pv-indicator {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.pv-tab-btn.pv-active {
  background: var(--pv-surface);
  color: var(--pv-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.pv-preset-card.pv-vibrating {
  animation: pv-card-shake 0.1s infinite;
  background: var(--pv-accent);
  color: white;
  border-color: var(--pv-accent);
}

.pv-preset-card.pv-vibrating .pv-preset-icon {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.pv-preset-card.pv-vibrating .pv-preset-desc {
  color: rgba(255, 255, 255, 0.8);
}

.pv-warning.pv-visible {
  display: block;
}

.pv-wrapper {
  --pv-accent: #8b5cf6;
  --pv-accent-glow: rgba(139, 92, 246, 0.4);
  --pv-accent-secondary: #ec4899;
  --pv-surface: #fff;
  --pv-surface-alt: #f1f5f9;
  --pv-surface-hover: #e2e8f0;
  --pv-border: rgba(0, 0, 0, 0.08);
  --pv-text: #1e293b;
  --pv-text-muted: #64748b;
  --pv-danger: #ef4444;

  max-width: 650px;
  margin: 0 auto;
  color: var(--pv-text);
}

    .pv-card {
      background: var(--pv-surface);
      border: 1px solid var(--pv-border);
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .pv-status-header {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      padding: 1.25rem;
      background: var(--pv-surface-alt);
      border-radius: 1rem;
      border: 1px solid var(--pv-border);
      transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pv-status-avatar {
      width: 3rem;
      height: 3rem;
      border-radius: 0.75rem;
      background: var(--pv-surface-hover);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--pv-text-muted);
      flex-shrink: 0;
      transition: all 300ms;
    }

    .pv-status-icon {
      width: 1.75rem;
      height: 1.75rem;
    }

    .pv-status-info {
      flex: 1;
      min-width: 0;
    }

    .pv-dev-name {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pv-dev-sub {
      margin: 0.25rem 0 0;
      font-size: 0.85rem;
      color: var(--pv-text-muted);
    }

    .pv-indicator {
      flex-shrink: 0;
      width: 0.75rem;
      height: 0.75rem;
      border-radius: 9999px;
      background: var(--pv-danger);
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
      transition: all 300ms;
    }

    .pv-warning {
      font-size: 0.85rem;
      color: #b45309;
      background: #fef3c7;
      padding: 0.75rem;
      border-radius: 0.5rem;
      border-left: 4px solid #f59e0b;
      display: none;
    }

    .pv-tabs-nav {
      display: flex;
      background: var(--pv-surface-alt);
      padding: 0.5rem;
      border-radius: 1rem;
      gap: 0.5rem;
    }

    .pv-tab-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border: none;
      background: transparent;
      color: var(--pv-text-muted);
      font-weight: 700;
      font-size: 0.9rem;
      border-radius: 0.75rem;
      cursor: pointer;
      transition: all 200ms;
    }

    .pv-tab-btn:hover {
      color: var(--pv-text);
      background: var(--pv-surface-hover);
    }

    .pv-tab-icon {
      width: 1.125rem;
      height: 1.125rem;
    }

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

    @media (max-width: 480px) {
      .pv-presets-grid {
        grid-template-columns: 1fr;
      }
    }

    .pv-preset-card {
      background: var(--pv-surface-alt);
      border: 1px solid var(--pv-border);
      border-radius: 1rem;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
      cursor: pointer;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .pv-preset-card:hover {
      transform: translateY(-2px);
      border-color: var(--pv-accent);
      box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
    }

    .pv-preset-icon {
      width: 2.5rem;
      height: 2.5rem;
      background: var(--pv-surface);
      border-radius: 0.625rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--pv-accent);
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      transition: all 200ms;
    }

    .pv-preset-icon-svg {
      width: 1.5rem;
      height: 1.5rem;
    }

    .pv-preset-title {
      font-weight: 800;
      font-size: 1rem;
      margin: 0;
    }

    .pv-preset-desc {
      font-size: 0.8rem;
      color: var(--pv-text-muted);
      margin: 0;
      line-height: 1.4;
      transition: color 200ms;
    }

    .pv-custom-sliders {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      background: var(--pv-surface-alt);
      padding: 1.5rem;
      border-radius: 1rem;
      border: 1px solid var(--pv-border);
    }

    .pv-slider-group {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .pv-slider-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .pv-slider-val {
      background: var(--pv-surface);
      padding: 0.25rem 0.5rem;
      border-radius: 0.375rem;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--pv-accent);
      min-width: 3rem;
      text-align: center;
    }

    .pv-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 8px;
      background: var(--pv-surface-hover);
      border-radius: 4px;
      outline: none;
    }

    .pv-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 9999px;
      background: var(--pv-accent);
      cursor: pointer;
      border: 3px solid var(--pv-surface);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      transition: transform 100ms;
    }

    .pv-slider::-webkit-slider-thumb:hover {
      transform: scale(1.15);
    }

    .pv-btn-send {
      width: 100%;
      padding: 1.25rem;
      border-radius: 1rem;
      border: none;
      background: linear-gradient(135deg, var(--pv-accent), var(--pv-accent-secondary));
      color: white;
      font-size: 1.1rem;
      font-weight: 900;
      letter-spacing: 0.5px;
      cursor: pointer;
      box-shadow: 0 10px 25px var(--pv-accent-glow);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pv-btn-send:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 30px var(--pv-accent-glow);
    }

.theme-dark .pv-wrapper {
  --pv-surface: #0f172a;
  --pv-surface-alt: rgba(30, 41, 59, 0.8);
  --pv-surface-hover: rgba(51, 65, 85, 0.8);
  --pv-border: rgba(255, 255, 255, 0.1);
  --pv-text: #f8fafc;
  --pv-text-muted: #94a3b8;
}

.theme-dark .pv-card {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.theme-dark .pv-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

.pv-tab-pane {
  display: none;
  animation: pv-fade-up 300ms ease;
}

.pv-tab-pane.pv-active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes pv-bounce-in {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pv-card-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-1deg); }
  50% { transform: translateX(2px) rotate(1deg); }
  75% { transform: translateX(-1px) rotate(-1deg); }
  100% { transform: translateX(1px) rotate(1deg); }
}

@keyframes pv-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    .pv-btn-send:active {
      transform: translateY(1px);
    }

    .pv-btn-send-icon {
      width: 1.5rem;
      height: 1.5rem;
    }