/* ============================================================
   VPS Comparison & Calculator — Frontend Styles v2.0
   Dark Theme + Glassmorphism | Toolbar + Fullscreen Modals
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --vpc-bg-dark: #0d1117;
  --vpc-bg-card: rgba(22, 27, 34, 0.85);
  --vpc-bg-glass: rgba(30, 37, 48, 0.7);
  --vpc-bg-input: rgba(13, 17, 23, 0.6);
  --vpc-border: rgba(48, 54, 61, 0.6);
  --vpc-border-light: rgba(56, 68, 82, 0.4);
  --vpc-text: #e6edf3;
  --vpc-text-dim: #8b949e;
  --vpc-text-muted: #6e7681;
  --vpc-accent-cyan: #58a6ff;
  --vpc-accent-purple: #bc8cff;
  --vpc-accent-green: #3fb950;
  --vpc-accent-orange: #d29922;
  --vpc-gradient-cta: linear-gradient(135deg, #58a6ff 0%, #bc8cff 100%);
  --vpc-gradient-danger: linear-gradient(135deg, #f85149 0%, #da3633 100%);
  --vpc-gradient-success: linear-gradient(135deg, #3fb950 0%, #2ea043 100%);
  --vpc-radius: 12px;
  --vpc-radius-sm: 8px;
  --vpc-radius-lg: 16px;
  --vpc-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --vpc-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --vpc-blur: blur(16px);
  --vpc-toolbar-top: 80px;
  --vpc-z-toolbar: 9990;
  --vpc-z-modal: 100000;
  --vpc-z-sub-modal: 100010;
  --vpc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Aliases used by archive & Phase 6 styles ── */
  --vpc-neon-blue: #58a6ff; /* = --vpc-accent-cyan  */
  --vpc-neon-purple: #bc8cff; /* = --vpc-accent-purple */
  --vpc-text-primary: #e6edf3; /* = --vpc-text          */
  --vpc-text-secondary: #8b949e; /* = --vpc-text-dim      */
}

/* ============================================================
   TOOLBAR — Sticky desktop, Bottom nav mobile
   ============================================================ */
.vpc-toolbar {
  position: sticky;
  top: var(--vpc-toolbar-top);
  z-index: var(--vpc-z-toolbar);
  padding: 12px 0;
  margin-bottom: 24px;
}

.vpc-toolbar-inner {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 14px;
  background: rgba(22, 27, 34, 0.55);
  backdrop-filter: blur(32px) saturate(2.2);
  -webkit-backdrop-filter: blur(32px) saturate(2.2);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vpc-toolbar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: var(--vpc-radius);
  cursor: pointer;
  transition: all var(--vpc-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.vpc-toolbar-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--vpc-transition);
  z-index: 0;
  pointer-events: none;
}

.vpc-toolbar-btn:hover::before {
  opacity: 1;
}

.vpc-toolbar-calc {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #58a6ff 100%);
}

.vpc-toolbar-calc::before {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #3b82f6 100%);
}

.vpc-toolbar-compare {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #3fb950 100%);
}

.vpc-toolbar-compare::before {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #2ea043 100%);
}

.vpc-toolbar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
  color: #fff !important;
}

.vpc-toolbar-btn:active {
  transform: translateY(0);
}

.vpc-toolbar-btn i,
.vpc-toolbar-btn span {
  position: relative;
  z-index: 10;
  color: #fff !important;
}

.vpc-toolbar-btn i {
  font-size: 18px;
}

/* ============================================================
   FULLSCREEN MODAL — Overlay + Slide-in Panel
   ============================================================ */
.vpc-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: var(--vpc-z-modal);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.vpc-fullscreen-modal.vpc-modal-active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.vpc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.vpc-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 960px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--vpc-bg-dark);
  border-left: 1px solid var(--vpc-border);
  box-shadow: var(--vpc-shadow-lg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.vpc-fullscreen-modal.vpc-modal-active .vpc-modal-panel {
  transform: translateX(0);
}

.vpc-modal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--vpc-bg-glass);
  backdrop-filter: var(--vpc-blur);
  -webkit-backdrop-filter: var(--vpc-blur);
  border-bottom: 1px solid var(--vpc-border);
  flex-shrink: 0;
}

.vpc-modal-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--vpc-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vpc-modal-panel-title i {
  color: var(--vpc-accent-cyan);
}

.vpc-modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--vpc-border-light);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-modal-close-btn:hover {
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.4);
  color: #f85149;
}

.vpc-modal-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling */
.vpc-modal-panel-body::-webkit-scrollbar {
  width: 6px;
}

.vpc-modal-panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.vpc-modal-panel-body::-webkit-scrollbar-thumb {
  background: var(--vpc-border);
  border-radius: 3px;
}

/* ============================================================
   COMPARISON — Filters, Grid, Cards
   ============================================================ */
.vpc-comparison-inner {
  position: relative;
}

/* Filters Section */
.vpc-filters {
  background: var(--vpc-bg-glass);
  backdrop-filter: var(--vpc-blur);
  -webkit-backdrop-filter: var(--vpc-blur);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.vpc-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.vpc-filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vpc-text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vpc-filter-group label i {
  color: var(--vpc-accent-cyan);
  margin-right: 4px;
}

.vpc-filter-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--vpc-bg-input);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-text);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--vpc-transition);
}

.vpc-filter-select:focus {
  outline: none;
  border-color: var(--vpc-accent-cyan);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.vpc-filter-select option {
  background: #161b22;
  color: var(--vpc-text);
}

/* Range inputs */
.vpc-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpc-range-input {
  flex: 1;
  padding: 10px 12px;
  background: var(--vpc-bg-input);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-text);
  font-size: 14px;
  transition: border-color var(--vpc-transition);
}

.vpc-range-input:focus {
  outline: none;
  border-color: var(--vpc-accent-cyan);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.vpc-range-sep {
  color: var(--vpc-text-muted);
  font-weight: 600;
}

/* Filter actions */
.vpc-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--vpc-border-light);
}

.vpc-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpc-sort-group label {
  margin: 0;
  display: flex;
}

.vpc-sort-group label i {
  color: var(--vpc-accent-cyan);
}

.vpc-reset-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-reset-btn:hover {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.3);
  color: #f85149;
}

.vpc-result-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--vpc-text-dim);
  font-weight: 500;
}

/* Plans Grid */
.vpc-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  min-height: 100px;
}

/* Plan Card */
.vpc-plan-card {
  position: relative;
  background: var(--vpc-bg-card);
  backdrop-filter: var(--vpc-blur);
  -webkit-backdrop-filter: var(--vpc-blur);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  padding: 25px;
  transition: all var(--vpc-transition);
}

.vpc-plan-card:hover {
  border-color: var(--vpc-accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(88, 166, 255, 0.12);
}

/* Best Value */
.vpc-plan-card.vpc-best-value {
  border-color: var(--vpc-accent-green);
  box-shadow: 0 0 20px rgba(63, 185, 80, 0.15);
}

/* Badges */
.vpc-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 0 var(--vpc-radius-sm) var(--vpc-radius-sm);
  background: var(--vpc-gradient-cta);
  color: #fff;
}

.vpc-badge-best {
  background: var(--vpc-gradient-success);
  animation: vpc-badge-pulse 2s infinite;
}

@keyframes vpc-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(63, 185, 80, 0);
  }
}

/* Plan select checkbox */
.vpc-plan-select {
  position: absolute;
  top: 12px;
  left: 12px;
  cursor: pointer;
}

.vpc-plan-select input {
  display: none;
}

.vpc-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--vpc-border);
  border-radius: 6px;
  background: var(--vpc-bg-input);
  transition: all var(--vpc-transition);
}

.vpc-plan-select input:checked + .vpc-checkmark {
  background: var(--vpc-accent-cyan);
  border-color: var(--vpc-accent-cyan);
}

.vpc-plan-select input:checked + .vpc-checkmark::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Plan header */
.vpc-plan-header {
  text-align: center;
  margin-bottom: 14px;
  padding-top: 8px;
}

/* Inline variant — plan name left, tiny logo right (used in archive cards) */
.vpc-plan-header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  margin-bottom: 14px;
  padding-top: 4px;
}

.vpc-plan-name-wrap {
  flex: 1;
  min-width: 0;
}

.vpc-plan-header--inline .vpc-plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--vpc-text);
  margin-top: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Small provider logo pinned to corner of card */
.vpc-card-provider-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: 0.85;
}

.vpc-card-provider-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vpc-bg-input);
  border-radius: 6px;
  color: var(--vpc-accent-cyan);
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}

.vpc-provider-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--vpc-radius-sm);
  margin-bottom: 8px;
}

.vpc-provider-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: var(--vpc-bg-input);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-accent-cyan);
  font-size: 20px;
}

.vpc-plan-provider {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vpc-text-dim);
  font-weight: 600;
}

.vpc-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--vpc-text);
  margin-top: 2px;
}

/* Price */
.vpc-plan-price {
  text-align: center;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--vpc-border-light);
  border-bottom: 1px solid var(--vpc-border-light);
}

.vpc-price-amount {
  font-size: 34px;
  font-weight: 800;
  color: #00e5ff;
  -webkit-text-fill-color: #00e5ff;
  text-shadow:
    0 0 20px rgba(0, 229, 255, 0.3),
    0 0 40px rgba(0, 229, 255, 0.1);
}

.vpc-price-period {
  font-size: 14px;
  color: var(--vpc-text-muted);
}

/* Specs grid */
.vpc-plan-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.vpc-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--vpc-text-dim);
  padding: 6px 8px;
  background: var(--vpc-bg-input);
  border-radius: 6px;
}

.vpc-spec i {
  color: var(--vpc-accent-cyan);
  opacity: 0.8;
  width: 16px;
  text-align: center;
  font-size: 13px;
}

/* Locations */
.vpc-plan-locations {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--vpc-text-muted);
  margin-bottom: 14px;
}

.vpc-plan-locations i {
  color: var(--vpc-accent-purple);
}

/* Coupon Box — Premium Ticket Style */
.vpc-plan-coupon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    rgba(210, 153, 34, 0.15) 0%,
    rgba(255, 107, 53, 0.12) 100%
  );
  border: 1.5px dashed rgba(255, 180, 50, 0.6);
  border-radius: var(--vpc-radius-sm);
  overflow: hidden;
}

/* Shimmer effect */
.vpc-plan-coupon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 200, 80, 0.08),
    transparent
  );
  animation: vpc-coupon-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vpc-coupon-shimmer {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}

/* Top row: label + code */
.vpc-coupon-top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.vpc-coupon-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 200, 100, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
}

.vpc-coupon-label i {
  color: #ffb832;
  font-size: 14px;
}

.vpc-coupon-code {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 16px;
  font-weight: 800;
  color: #ffcc44;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 200, 50, 0.3);
  flex: 1;
  text-align: center;
}

/* Copy button — full width */
.vpc-copy-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 14px;
  background: rgba(255, 180, 50, 0.2);
  border: 1px solid rgba(255, 180, 50, 0.45);
  border-radius: 6px;
  color: #ffcc44;
  cursor: pointer;
  transition: all var(--vpc-transition);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vpc-copy-coupon:hover {
  background: rgba(255, 180, 50, 0.35);
  border-color: rgba(255, 200, 80, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 180, 50, 0.2);
}

.vpc-copy-coupon.copied {
  background: rgba(63, 185, 80, 0.25);
  border-color: rgba(63, 185, 80, 0.6);
  color: #4ade80;
  box-shadow: 0 4px 16px rgba(63, 185, 80, 0.2);
}

@keyframes vpc-copied-pop {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.vpc-copy-coupon.copied {
  animation: vpc-copied-pop 0.3s ease-out;
}

/* CTA Button */
.vpc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--vpc-gradient-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--vpc-radius-sm);
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.35);
  color: #fff;
  text-decoration: none;
}

/* Compare Bar (inside modal) */
.vpc-compare-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 12px 0;
  margin-top: 20px;
}

.vpc-compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--vpc-bg-glass);
  backdrop-filter: var(--vpc-blur);
  -webkit-backdrop-filter: var(--vpc-blur);
  border: 1px solid var(--vpc-accent-cyan);
  border-radius: var(--vpc-radius);
  box-shadow: 0 -4px 20px rgba(88, 166, 255, 0.15);
}

.vpc-compare-selected {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
}

.vpc-compare-selected .vpc-cs-item {
  padding: 4px 10px;
  background: var(--vpc-bg-input);
  border: 1px solid var(--vpc-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--vpc-text);
  white-space: nowrap;
}

.vpc-compare-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vpc-compare-btn {
  padding: 10px 20px;
  background: var(--vpc-gradient-cta);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: var(--vpc-radius-sm);
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-compare-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vpc-compare-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.vpc-clear-btn {
  padding: 10px 14px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--vpc-radius-sm);
  color: #f85149;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-clear-btn:hover {
  background: rgba(248, 81, 73, 0.2);
}

/* Sub-modal (comparison table inside comparison modal) */
.vpc-sub-modal {
  position: absolute;
  inset: 0;
  z-index: var(--vpc-z-sub-modal);
  background: var(--vpc-bg-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vpc-sub-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--vpc-bg-glass);
  border-bottom: 1px solid var(--vpc-border);
  flex-shrink: 0;
}

.vpc-sub-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--vpc-text);
}

.vpc-sub-modal-header h3 i {
  color: var(--vpc-accent-cyan);
  margin-right: 8px;
}

.vpc-sub-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--vpc-border-light);
  border-radius: var(--vpc-radius-sm);
  color: var(--vpc-text-dim);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--vpc-transition);
}

.vpc-sub-modal-close:hover {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

.vpc-sub-modal-body {
  flex: 1;
  overflow: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

/* Comparison Table */
.vpc-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vpc-compare-table th,
.vpc-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--vpc-border-light);
  text-align: center;
  vertical-align: middle;
}

.vpc-compare-table th {
  color: var(--vpc-text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: var(--vpc-bg-glass);
  position: sticky;
  top: 0;
  z-index: 2;
}

.vpc-compare-table th:first-child,
.vpc-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--vpc-text-dim);
  background: var(--vpc-bg-card);
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 120px;
}

.vpc-compare-table td {
  color: var(--vpc-text);
}

.vpc-compare-table .vpc-winner {
  color: var(--vpc-accent-green);
  font-weight: 700;
  background: rgba(63, 185, 80, 0.08);
}

/* ============================================================
   CALCULATOR — Wizard Steps
   ============================================================ */
.vpc-calculator-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* Progress Bar */
.vpc-progress {
  position: relative;
  margin-bottom: 32px;
  padding: 0 20px;
}

.vpc-progress-bar {
  height: 3px;
  background: var(--vpc-gradient-cta);
  border-radius: 2px;
  transition: width 0.4s ease;
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 0;
}

.vpc-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.vpc-step-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--vpc-bg-card);
  border: 2px solid var(--vpc-border);
  color: var(--vpc-text-muted);
  transition: all var(--vpc-transition);
}

.vpc-step-dot.active {
  background: var(--vpc-accent-cyan);
  border-color: var(--vpc-accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
}

.vpc-step-dot.completed {
  background: var(--vpc-accent-green);
  border-color: var(--vpc-accent-green);
  color: #fff;
}

/* Steps */
.vpc-calc-step {
  display: none;
  animation: vpc-fadeIn 0.4s ease;
}

.vpc-calc-step.active {
  display: block;
}

@keyframes vpc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vpc-step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vpc-text);
  text-align: center;
  margin-bottom: 24px;
}

.vpc-step-hint {
  text-align: center;
  color: var(--vpc-text-muted);
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 20px;
}

/* Purpose & Traffic cards grid */
.vpc-purpose-grid,
.vpc-traffic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.vpc-purpose-card,
.vpc-traffic-card {
  cursor: pointer;
}

.vpc-purpose-card input,
.vpc-traffic-card input {
  display: none;
}

.vpc-purpose-inner,
.vpc-traffic-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--vpc-bg-card);
  border: 2px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  text-align: center;
  transition: all var(--vpc-transition);
  color: var(--vpc-text);
}

.vpc-purpose-inner i,
.vpc-traffic-inner i {
  font-size: 28px;
  color: var(--vpc-accent-cyan);
  margin-bottom: 4px;
}

.vpc-purpose-inner span {
  font-size: 13px;
  font-weight: 600;
}

.vpc-traffic-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--vpc-text);
}

.vpc-traffic-label {
  font-size: 12px;
  color: var(--vpc-text-muted);
}

.vpc-purpose-card input:checked ~ .vpc-purpose-inner,
.vpc-traffic-card input:checked ~ .vpc-traffic-inner {
  border-color: var(--vpc-accent-cyan);
  background: rgba(88, 166, 255, 0.08);
  box-shadow: 0 0 16px rgba(88, 166, 255, 0.15);
}

.vpc-purpose-inner:hover,
.vpc-traffic-inner:hover {
  border-color: rgba(88, 166, 255, 0.5);
  transform: translateY(-2px);
}

/* Addon grid */
.vpc-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vpc-addon-card {
  cursor: pointer;
}

.vpc-addon-card input {
  display: none;
}

.vpc-addon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  background: var(--vpc-bg-card);
  border: 2px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  text-align: center;
  transition: all var(--vpc-transition);
  color: var(--vpc-text);
}

.vpc-addon-inner i {
  font-size: 24px;
  color: var(--vpc-accent-purple);
}

.vpc-addon-inner span {
  font-size: 14px;
  font-weight: 600;
}

.vpc-addon-inner small {
  font-size: 11px;
  color: var(--vpc-text-muted);
}

.vpc-addon-card input:checked ~ .vpc-addon-inner {
  border-color: var(--vpc-accent-purple);
  background: rgba(188, 140, 255, 0.08);
}

.vpc-addon-inner:hover {
  border-color: rgba(188, 140, 255, 0.5);
  transform: translateY(-2px);
}

/* OS & Location */
.vpc-os-location-grid {
  display: grid;
  gap: 24px;
}

.vpc-form-group > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--vpc-text);
  margin-bottom: 12px;
}

.vpc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vpc-radio-card {
  cursor: pointer;
  flex: 1;
  min-width: 100px;
}

.vpc-radio-card input {
  display: none;
}

.vpc-radio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--vpc-bg-card);
  border: 2px solid var(--vpc-border);
  border-radius: var(--vpc-radius-sm);
  text-align: center;
  transition: all var(--vpc-transition);
  color: var(--vpc-text);
  font-size: 13px;
  font-weight: 600;
}

.vpc-radio-inner i {
  font-size: 22px;
  color: var(--vpc-accent-cyan);
}

.vpc-radio-card input:checked ~ .vpc-radio-inner {
  border-color: var(--vpc-accent-cyan);
  background: rgba(88, 166, 255, 0.08);
}

.vpc-radio-inner:hover {
  border-color: rgba(88, 166, 255, 0.5);
}

/* Navigation buttons */
.vpc-calc-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--vpc-border-light);
}

.vpc-nav-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--vpc-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--vpc-transition);
}

.vpc-prev-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--vpc-border);
  color: var(--vpc-text-dim);
}

.vpc-prev-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--vpc-text);
}

.vpc-next-btn {
  background: var(--vpc-gradient-cta);
  color: #fff;
  margin-left: auto;
}

.vpc-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vpc-next-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.vpc-submit-btn {
  background: var(--vpc-gradient-success);
  color: #fff;
  margin-left: auto;
}

.vpc-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

/* Calculator Results */
.vpc-calc-results {
  margin-top: 24px;
}

.vpc-calc-result {
  animation: vpc-fadeIn 0.5s ease;
}

.vpc-result-recommendation {
  text-align: center;
  padding: 24px;
  background: var(--vpc-bg-glass);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  margin-bottom: 24px;
}

.vpc-result-icon {
  font-size: 40px;
  color: var(--vpc-accent-green);
  margin-bottom: 12px;
}

.vpc-result-recommendation h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--vpc-text);
  margin-bottom: 16px;
}

.vpc-result-specs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.vpc-result-spec {
  text-align: center;
}

.vpc-result-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  background: var(--vpc-gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vpc-result-label {
  font-size: 12px;
  color: var(--vpc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vpc-result-explanation {
  font-size: 14px;
  color: var(--vpc-text-dim);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Matching plans in results */
.vpc-result-plans-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vpc-text);
  margin-bottom: 16px;
}

.vpc-result-plans-title i {
  color: var(--vpc-accent-orange);
  margin-right: 6px;
}

.vpc-result-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.vpc-result-plan-card {
  padding: 18px;
  background: var(--vpc-bg-card);
  border: 1px solid var(--vpc-border);
  border-radius: var(--vpc-radius);
  transition: all var(--vpc-transition);
}

.vpc-result-plan-card.vpc-top-pick {
  border-color: var(--vpc-accent-orange);
  box-shadow: 0 0 16px rgba(210, 153, 34, 0.15);
}

.vpc-top-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #d29922, #e3b341);
  color: #0d1117;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
}

.vpc-rp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.vpc-rp-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.vpc-rp-provider {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--vpc-text-dim);
  letter-spacing: 0.5px;
}

.vpc-rp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--vpc-text);
}

.vpc-rp-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vpc-rp-specs span {
  font-size: 12px;
  color: var(--vpc-text-dim);
  padding: 3px 8px;
  background: var(--vpc-bg-input);
  border-radius: 4px;
}

.vpc-rp-specs span i {
  color: var(--vpc-accent-cyan);
  margin-right: 3px;
}

.vpc-rp-price {
  font-size: 22px;
  font-weight: 800;
  background: var(--vpc-gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.vpc-rp-price span {
  font-size: 13px;
  -webkit-text-fill-color: var(--vpc-text-muted);
}

/* ============================================================
   LOADING & NO RESULTS
   ============================================================ */
.vpc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--vpc-text-dim);
  font-size: 14px;
}

.vpc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--vpc-border);
  border-top-color: var(--vpc-accent-cyan);
  border-radius: 50%;
  animation: vpc-spin 0.8s linear infinite;
}

@keyframes vpc-spin {
  to {
    transform: rotate(360deg);
  }
}

.vpc-no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--vpc-text-dim);
}

.vpc-no-results i {
  font-size: 36px;
  color: var(--vpc-text-muted);
  margin-bottom: 12px;
  display: block;
}

.vpc-no-results h3 {
  font-size: 16px;
  color: var(--vpc-text);
  margin-bottom: 4px;
}

.vpc-no-results p {
  font-size: 14px;
}

/* ============================================================
   BODY SCROLL LOCK (when modal is open)
   ============================================================ */
body.vpc-modal-open {
  overflow: hidden;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  /* Toolbar becomes bottom nav bar */
  .vpc-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: var(--vpc-z-toolbar);
    padding: 0;
    margin: 0;
  }

  .vpc-toolbar-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 8px 12px;
    gap: 8px;
    max-width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  .vpc-toolbar-btn {
    padding: 12px 10px;
    font-size: 13px;
    gap: 6px;
    border-radius: var(--vpc-radius-sm);
  }

  .vpc-toolbar-btn i {
    font-size: 16px;
  }

  /* Modal becomes full width */
  .vpc-modal-panel {
    max-width: 100%;
    border-left: none;
  }

  .vpc-modal-panel-header {
    padding: 12px 16px;
  }

  .vpc-modal-panel-title {
    font-size: 15px;
  }

  .vpc-modal-panel-body {
    padding: 16px;
  }

  /* Filters */
  .vpc-filters-grid {
    grid-template-columns: 1fr;
  }

  .vpc-filter-actions {
    flex-wrap: wrap;
  }

  .vpc-result-count {
    width: 100%;
    text-align: center;
  }

  /* Plans grid */
  .vpc-plans-grid {
    grid-template-columns: 1fr;
  }

  /* Calculator cards */
  .vpc-purpose-grid,
  .vpc-traffic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vpc-addon-grid {
    grid-template-columns: 1fr;
  }

  .vpc-radio-group {
    gap: 8px;
  }

  .vpc-radio-card {
    min-width: 80px;
  }

  /* Results */
  .vpc-result-specs {
    gap: 16px;
  }

  .vpc-result-value {
    font-size: 24px;
  }

  .vpc-result-plans {
    grid-template-columns: 1fr;
  }

  /* Compare bar */
  .vpc-compare-bar-inner {
    flex-direction: column;
  }

  .vpc-compare-selected {
    flex-wrap: wrap;
  }

  .vpc-compare-actions {
    width: 100%;
  }

  .vpc-compare-btn {
    flex: 1;
  }

  /* Sub-modal table scroll */
  .vpc-compare-table {
    font-size: 12px;
  }

  .vpc-compare-table th,
  .vpc-compare-table td {
    padding: 8px 10px;
  }

  /* Ensure content not hidden behind toolbar */
  body {
    padding-bottom: 72px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .vpc-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vpc-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   ARCHIVE PAGE — Dark wrapper + card grid
   ============================================================ */

/* Dark container wrapping the archive content — provides
   the same dark background context as the comparison modal */
.vpc-archive-wrapper {
  background: var(--vpc-bg-dark);
  border-radius: var(--vpc-radius-lg);
  padding: 32px 24px;
  margin-bottom: 24px;
}

.vpc-archive-header {
  margin-bottom: 28px;
  text-align: center;
}

.vpc-archive-header .archive-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--vpc-text);
  margin-bottom: 8px;
}

.vpc-archive-header .archive-title i {
  color: var(--vpc-accent-cyan);
  font-size: 26px;
}

.vpc-archive-header .archive-description {
  color: var(--vpc-text-dim);
  font-size: 15px;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Archive grid — 3 columns on desktop, auto-fill on smaller screens */
.vpc-plans-archive-grid.vpc-plans-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Archive-specific card tweaks */
.vpc-plans-archive-grid .vpc-plan-card {
  display: flex;
  flex-direction: column;
}

.vpc-plans-archive-grid .vpc-cta-btn {
  margin-top: auto;
}

/* ---- No Results ---- */
.vpc-plans-archive-grid .vpc-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--vpc-text-dim);
}

.vpc-plans-archive-grid .vpc-no-results i {
  font-size: 48px;
  color: var(--vpc-accent-cyan);
  opacity: 0.4;
  margin-bottom: 16px;
}

.vpc-plans-archive-grid .vpc-no-results h3 {
  color: var(--vpc-text);
  margin-bottom: 8px;
}

/* ---- Tablet: 2 columns ---- */
@media (min-width: 768px) and (max-width: 1200px) {
  .vpc-plans-archive-grid.vpc-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vpc-archive-wrapper {
    padding: 24px 16px;
  }
}

/* ---- Mobile: 1 column + bottom toolbar ---- */
@media (max-width: 767px) {
  .vpc-plans-archive-grid.vpc-plans-grid {
    grid-template-columns: 1fr;
  }

  .vpc-archive-wrapper {
    padding: 20px 12px;
    border-radius: var(--vpc-radius);
  }

  .vpc-archive-header .archive-title {
    font-size: 22px;
  }

  /* Bottom toolbar only on archive page */
  .post-type-archive-vps_plan .vpc-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: var(--vpc-z-toolbar);
    padding: 0;
    margin: 0;
  }

  .post-type-archive-vps_plan .vpc-toolbar-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 8px 12px;
    gap: 8px;
    max-width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .post-type-archive-vps_plan .vpc-toolbar-btn {
    padding: 12px 10px;
    font-size: 13px;
    gap: 6px;
    border-radius: var(--vpc-radius-sm);
  }

  .post-type-archive-vps_plan body {
    padding-bottom: 72px;
  }
}

/* =====================================================================
   ARCHIVE: Wrapper & Page Header
   ===================================================================== */
.vpc-archive-wrapper {
  margin-top: 24px;
}

.vpc-archive-header {
  text-align: center;
  margin-bottom: 32px;
}

.vpc-archive-header .archive-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vpc-text-primary);
  margin-bottom: 8px;
}

.vpc-archive-header .archive-title i {
  color: var(--vpc-neon-blue);
  margin-right: 8px;
}

.vpc-archive-header .archive-description {
  color: var(--vpc-text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* =====================================================================
   ARCHIVE FILTER BAR — Horizontal glassmorphism
   ===================================================================== */
.vpc-archive-filter-bar {
  position: sticky;
  top: 60px;
  z-index: 90;
  margin-bottom: 28px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 14px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vpc-filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  padding: 16px 20px;
}

.vpc-afb-group {
  display: flex;
  flex-direction: column;
}

.vpc-afb-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--vpc-text-secondary);
  margin-bottom: 6px;
}

.vpc-afb-label i {
  color: var(--vpc-neon-blue);
  margin-right: 4px;
}

/* Provider pills */
.vpc-afb-providers {
  flex: 1 1 auto;
}

.vpc-afb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vpc-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  background: rgba(88, 166, 255, 0.08);
  color: var(--vpc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.vpc-provider-pill:hover {
  border-color: rgba(88, 166, 255, 0.5);
  color: var(--vpc-text-primary);
  background: rgba(88, 166, 255, 0.15);
}

.vpc-provider-pill input[type="checkbox"] {
  display: none;
}

.vpc-provider-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed 0%, #58a6ff 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.35);
}

/* Dual-range price slider */
.vpc-afb-range {
  min-width: 160px;
}

.vpc-range-display {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vpc-neon-blue);
  margin-bottom: 6px;
  text-align: center;
}

.vpc-dual-range {
  position: relative;
  height: 26px;
}

.vpc-dual-range input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  height: 4px;
  outline: none;
}

.vpc-dual-range input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(88, 166, 255, 0.2);
  height: 4px;
  border-radius: 2px;
}

.vpc-dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vpc-neon-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
  cursor: pointer;
  pointer-events: all;
  margin-top: -7px;
}

.vpc-dual-range input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vpc-neon-blue);
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
}

/* Selects */
.vpc-afb-select {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 8px;
  color: var(--vpc-text-primary);
  font-size: 12px;
  font-family: inherit;
  padding: 7px 28px 7px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2358a6ff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  outline: none;
  transition: border-color 0.2s;
  min-width: 120px;
}

.vpc-afb-select:hover,
.vpc-afb-select:focus {
  border-color: var(--vpc-neon-blue);
}

/* Actions */
.vpc-afb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.vpc-afb-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--vpc-text-secondary);
  white-space: nowrap;
}

.vpc-afb-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.vpc-afb-reset:hover {
  background: rgba(255, 80, 80, 0.22);
  border-color: rgba(255, 80, 80, 0.55);
}

/* =====================================================================
   PROVIDER GROUPS
   ===================================================================== */
.vpc-provider-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vpc-provider-group.vpc-group-hidden {
  display: none !important;
}

/* Provider Group Header */
.vpc-provider-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  margin-bottom: 18px;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.07) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.vpc-provider-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--vpc-neon-blue) 40%,
    var(--vpc-neon-purple) 70%,
    transparent 100%
  );
  opacity: 0.6;
}

.vpc-provider-header-logo {
  flex-shrink: 0;
}

.vpc-group-logo {
  height: 44px;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(1.05);
}

.vpc-group-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--vpc-neon-blue);
}

.vpc-provider-header-info {
  flex: 1;
}

.vpc-group-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--vpc-text-primary);
  margin: 0 0 4px;
  line-height: 1.2;
}

.vpc-group-desc {
  font-size: 13px;
  color: var(--vpc-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.vpc-group-plan-count {
  text-align: center;
  flex-shrink: 0;
}

.vpc-plan-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.18) 0%,
    rgba(188, 140, 255, 0.18) 100%
  );
  border: 1px solid rgba(88, 166, 255, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--vpc-neon-blue);
  line-height: 1;
  white-space: nowrap;
}

.vpc-plan-count-badge::after {
  content: " gói";
  font-weight: 500;
  font-size: 12px;
  color: var(--vpc-text-secondary);
}

.vpc-group-plan-count small {
  display: none; /* now handled by ::after pseudo-element */
}

.vpc-plans-archive-grid {
  gap: 18px;
}

/* =====================================================================
   TOOLTIP SYSTEM
   ===================================================================== */
#vpc-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 10px 14px;
  background: rgba(10, 16, 32, 0.97);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  color: var(--vpc-text-primary);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#vpc-tooltip.vpc-tooltip-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vpc-tooltip-term {
  border-bottom: 1px dashed rgba(88, 166, 255, 0.5);
  cursor: help;
}

[data-vpc-tooltip] {
  cursor: help;
}

/* =====================================================================
   RESPONSIVE overrides for filter bar + headers
   ===================================================================== */
@media (max-width: 767px) {
  .vpc-filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .vpc-afb-actions {
    margin-left: 0;
    justify-content: space-between;
  }

  .vpc-archive-filter-bar {
    position: static;
  }

  .vpc-provider-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .vpc-afb-pills {
    gap: 4px;
  }

  .vpc-provider-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* =====================================================================
   PHASE 6 — COMPARISON MODAL: Winner highlight + P/P King + Provider filter
   ===================================================================== */

/* Provider filter bar inside comparison modal */
.vpc-cmp-provider-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(88, 166, 255, 0.12);
  margin-bottom: 0;
}

.vpc-cmp-pf-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--vpc-text-secondary);
  white-space: nowrap;
}

.vpc-cmp-pf-label i {
  color: var(--vpc-neon-blue);
}

.vpc-cmp-pf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vpc-cmp-pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 16px;
  border: 1px solid rgba(88, 166, 255, 0.22);
  background: rgba(88, 166, 255, 0.06);
  color: var(--vpc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.vpc-cmp-pf-pill input[type="radio"] {
  display: none;
}

.vpc-cmp-pf-pill:hover,
.vpc-cmp-pf-pill.is-active {
  border-color: var(--vpc-neon-blue);
  background: rgba(88, 166, 255, 0.18);
  color: var(--vpc-neon-blue);
}

/* Comparison table */
.vpc-cmp-table-wrap {
  overflow-x: auto;
  padding: 0 20px 20px;
}

.vpc-cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.vpc-cmp-table th,
.vpc-cmp-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(88, 166, 255, 0.08);
}

.vpc-cmp-row-label {
  text-align: left !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--vpc-text-secondary);
  white-space: nowrap;
  min-width: 130px;
}

.vpc-cmp-row-label i {
  margin-right: 5px;
  color: var(--vpc-neon-blue);
}

.vpc-cmp-row-hint {
  font-size: 10px;
  color: var(--vpc-text-secondary);
  margin-left: 4px;
  opacity: 0.6;
}

/* Plan column header */
.vpc-cmp-plan-head {
  position: relative;
  padding-top: 20px !important;
  min-width: 150px;
  vertical-align: bottom;
}

.vpc-cmp-provider-logo {
  height: 30px;
  max-width: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  filter: brightness(1.05);
}

.vpc-cmp-plan-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--vpc-text-primary);
  line-height: 1.3;
}

.vpc-cmp-plan-provider {
  font-size: 11px;
  color: var(--vpc-text-secondary);
  margin-top: 2px;
}

/* ── Winner cell highlight ── */
.vpc-cmp-cell {
  font-size: 13px;
}

.vpc-cmp-winner {
  background: rgba(63, 185, 80, 0.08);
  border-left: 2px solid rgba(63, 185, 80, 0.5);
  border-right: 2px solid rgba(63, 185, 80, 0.5);
}

.vpc-cmp-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vpc-neon-blue);
}

/* Winner badge inside cell */
.vpc-winner-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.vpc-winner-badge i {
  font-size: 9px;
}

/* ── P/P King highlight ── */
.vpc-cmp-row-pp .vpc-cmp-pp-king {
  background: rgba(255, 180, 30, 0.08);
  border-left: 2px solid rgba(255, 180, 30, 0.5);
  border-right: 2px solid rgba(255, 180, 30, 0.5);
}

.vpc-pp-inline-badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 3px;
}

/* P/P King badge on plan column header */
.vpc-pp-king-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.vpc-pp-king-badge i {
  margin-right: 3px;
}

/* CTA + coupon copy btn inside comparison */
.vpc-cmp-row-cta td {
  padding-top: 16px;
  vertical-align: top;
}

.vpc-cmp-cta-btn {
  font-size: 12px;
  padding: 8px 14px;
}

.vpc-coupon-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(255, 180, 50, 0.12);
  border: 1px solid rgba(255, 180, 50, 0.35);
  border-radius: 6px;
  color: #ffcc44;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.vpc-coupon-copy-btn:hover {
  background: rgba(255, 180, 50, 0.22);
}

/* =====================================================================
   PHASE 6 — CALCULATOR RESULT CARDS
   ===================================================================== */
.vpc-calc-results {
  padding: 20px;
}

.vpc-calc-results-header {
  text-align: center;
  margin-bottom: 24px;
}

.vpc-calc-results-icon {
  font-size: 2rem;
  color: #f59e0b;
  display: block;
  margin-bottom: 8px;
}

.vpc-calc-results-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--vpc-text-primary);
  margin: 0 0 6px;
}

.vpc-calc-results-subtitle {
  color: var(--vpc-text-secondary);
  font-size: 13px;
  margin: 0;
}

.vpc-calc-result-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual result card */
.vpc-calc-result-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.vpc-calc-result-card:hover {
  border-color: rgba(88, 166, 255, 0.35);
  box-shadow: 0 4px 24px rgba(88, 166, 255, 0.1);
}

/* #1 Top recommendation card */
.vpc-calc-result-top {
  border-color: rgba(63, 185, 80, 0.4);
  box-shadow:
    0 0 0 1px rgba(63, 185, 80, 0.15),
    0 4px 24px rgba(63, 185, 80, 0.1);
}

/* Ribbons */
.vpc-calc-top-ribbon,
.vpc-pp-king-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.vpc-calc-top-ribbon {
  background: rgba(63, 185, 80, 0.18);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #4ade80;
}

.vpc-pp-king-ribbon {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  margin-left: 8px;
}

/* Provider row in calc result */
.vpc-calc-provider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(88, 166, 255, 0.08);
}

.vpc-calc-provider-logo {
  height: 36px;
  max-width: 90px;
  object-fit: contain;
  filter: brightness(1.05);
  flex-shrink: 0;
}

.vpc-calc-provider-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vpc-neon-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.vpc-calc-provider-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--vpc-text-primary);
}

.vpc-calc-provider-desc {
  font-size: 11px;
  color: var(--vpc-text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Plan name + price row */
.vpc-calc-plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vpc-calc-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vpc-text-primary);
  margin: 0;
  flex: 1;
}

.vpc-calc-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.vpc-calc-price-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vpc-neon-blue);
}

.vpc-calc-price-period {
  font-size: 12px;
  color: var(--vpc-text-secondary);
}

.vpc-calc-pp-ratio {
  font-size: 11px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 5px;
  padding: 2px 6px;
  cursor: help;
}

/* Specs grid in calc result */
.vpc-calc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vpc-calc-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(88, 166, 255, 0.07);
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 6px;
  font-size: 12px;
  color: var(--vpc-text-secondary);
}

.vpc-calc-spec i {
  color: var(--vpc-neon-blue);
  font-size: 11px;
}

/* Reasoning block */
.vpc-calc-reason {
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.vpc-calc-reason-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--vpc-neon-blue);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vpc-calc-reason-text {
  font-size: 13px;
  color: var(--vpc-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Coupon block in calc result */
.vpc-calc-coupon-block {
  background: rgba(255, 180, 50, 0.07);
  border: 1px solid rgba(255, 180, 50, 0.22);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.vpc-calc-coupon-label {
  font-size: 11px;
  font-weight: 700;
  color: #ffcc44;
  margin-bottom: 6px;
}

.vpc-calc-coupon-label i {
  margin-right: 4px;
}

.vpc-calc-coupon-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vpc-calc-coupon-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffcc44;
  background: rgba(255, 180, 50, 0.12);
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 1px;
}

.vpc-calc-coupon-buy-btn,
.vpc-calc-coupon-copy-only {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 180, 50, 0.25),
    rgba(255, 140, 30, 0.2)
  );
  border: 1px solid rgba(255, 180, 50, 0.5);
  border-radius: 7px;
  color: #ffcc44;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.vpc-calc-coupon-buy-btn:hover,
.vpc-calc-coupon-copy-only:hover {
  background: rgba(255, 180, 50, 0.3);
  color: #ffcc44;
  text-decoration: none;
}

.vpc-calc-main-cta {
  margin-top: 4px;
}

/* ============================================================
   VPS DATATABLE — Light Theme Archive Page
   ============================================================ */

/* ── Page Wrapper ── */
.vpc-dt-wrapper {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

/* ── Page Header ── */
.vpc-dt-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.vpc-dt-title {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vpc-dt-title i {
  color: #3b82f6;
  font-size: 24px;
}

.vpc-dt-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Table Wrapper ── */
.vpc-dt-table-wrap {
  overflow-x: auto;
}

/* ── DataTables Controls (search + length selector) ── */
.vpc-dt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.vpc-dt-controls label {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpc-dt-controls select,
.vpc-dt-controls input[type="search"] {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.vpc-dt-controls select:focus,
.vpc-dt-controls input[type="search"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── DataTables Footer ── */
.vpc-dt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 0;
}

/* ── Table Base ── */
#vpc-datatable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  color: #374151;
}

/* ── Table Header ── */
#vpc-datatable thead th {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  border-bottom: 3px solid #3b82f6;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

#vpc-datatable thead th:first-child {
  border-radius: 10px 0 0 0;
}

#vpc-datatable thead th:last-child {
  border-radius: 0 10px 0 0;
}

/* ── Sorting Arrows Override ── */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  cursor: pointer;
}

/* ── Table Body ── */
#vpc-datatable tbody td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  transition: background-color 0.15s;
}

/* ── Zebra Striping ── */
#vpc-datatable tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#vpc-datatable tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ── Row hover ── */
#vpc-datatable tbody tr:hover {
  background-color: #eff6ff !important;
}

/* ── Plan Name Column ── */
.vpc-dt-plan-name {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Flag Column ── */
.vpc-dt-flags {
  text-align: center;
  white-space: nowrap;
}

.vpc-dt-flags .fi {
  font-size: 0;
  display: inline-block;
  width: 24px;
  height: 18px;
  margin: 0 2px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  vertical-align: middle;
  background-size: cover;
}

/* ── CTA Buy Button ── */
.vpc-dt-cta-cell {
  text-align: center;
}

.vpc-dt-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.vpc-dt-buy-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  color: #fff !important;
  text-decoration: none !important;
}

/* Provider link styling with high specificity to override Bootstrap */
table a.vpc-provider-link,
#vpc-datatable a.vpc-provider-link,
td a.vpc-provider-link,
.vpc-provider-link {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 400;
  transition: color 0.2s;
}

table a.vpc-provider-link:hover,
#vpc-datatable a.vpc-provider-link:hover,
td a.vpc-provider-link:hover,
.vpc-provider-link:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

.vpc-dt-no-link {
  color: #d1d5db;
  font-size: 14px;
}

/* ── Checkbox Styling ── */
.vpc-dt-check,
#vpc-dt-select-all {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
  vertical-align: middle;
}

.vpc-dt-col-check {
  width: 40px;
  text-align: center !important;
}

/* ── Highlight Row (Calculator integration) ── */
@keyframes vpc-row-pulse {
  0%,
  100% {
    background-color: rgba(59, 130, 246, 0.08);
  }
  50% {
    background-color: rgba(59, 130, 246, 0.22);
  }
}

#vpc-datatable tbody tr.vpc-dt-highlight {
  animation: vpc-row-pulse 0.8s ease-in-out 3;
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  border-radius: 4px;
}

/* ── DataTables Pagination Override ── */
.dataTables_paginate .paginate_button {
  padding: 6px 14px !important;
  margin: 0 2px !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #4b5563 !important;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.dataTables_paginate .paginate_button:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700;
}

.dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dataTables_info {
  font-size: 13px;
  color: #6b7280;
}

/* ── Responsive DataTables (child rows) ── */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  background-color: #3b82f6 !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .vpc-dt-wrapper {
    padding: 16px 10px;
    border-radius: 10px;
  }

  .vpc-dt-title {
    font-size: 20px;
  }

  .vpc-dt-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .vpc-dt-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #vpc-datatable thead th {
    font-size: 11px;
    padding: 10px 8px;
  }

  #vpc-datatable tbody td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .vpc-dt-plan-name {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .vpc-dt-wrapper {
    padding: 12px 6px;
  }

  .vpc-dt-title {
    font-size: 18px;
    gap: 8px;
  }

  #vpc-datatable tbody td {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* ============================================================
   VPS FILTER BAR — Sort Tabs + Filter Controls
   (matches coupon archive design language)
   ============================================================ */
.vpc-filter-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Filter Controls Grid */
.vpc-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.vpc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 130px;
  flex: 1;
}

.vpc-filter-group--price {
  min-width: 200px;
  flex: 2;
}

.vpc-filter-group--reset {
  min-width: auto;
  flex: none;
  justify-content: flex-end;
}

.vpc-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
  white-space: nowrap;
}

.vpc-filter-label i {
  color: #d97706;
  margin-right: 3px;
}

.vpc-filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.vpc-filter-select:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* Price Range Slider */
.vpc-price-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vpc-price-slider-track {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: 10px 0 4px;
}

.vpc-price-slider-fill {
  position: absolute;
  height: 100%;
  background: #d97706;
  border-radius: 3px;
  pointer-events: none;
}

.vpc-range-thumb {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 0;
  left: 0;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.vpc-range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d97706;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 1;
  transition: transform 0.15s;
}

.vpc-range-thumb::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.vpc-range-thumb::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d97706;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
  cursor: pointer;
  pointer-events: all;
}

.vpc-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

/* Reset Button */
.vpc-reset-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.vpc-reset-filters-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff5f5;
}

/* Result Count */
.vpc-filter-result-count {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
  text-align: right;
}

.vpc-filter-result-count #vpc-visible-count {
  font-weight: 700;
  color: #d97706;
}

/* Responsive */
@media (max-width: 768px) {
  .vpc-filter-bar {
    padding: 14px 14px 10px;
  }
  .vpc-filter-controls {
    gap: 8px;
  }
  .vpc-filter-group {
    min-width: calc(50% - 4px);
    flex: none;
  }
  .vpc-filter-group--price {
    min-width: 100%;
    flex: none;
  }
  .vpc-filter-group--reset {
    min-width: 100%;
  }
  .vpc-reset-filters-btn {
    width: 100%;
    justify-content: center;
  }
}
