/* ═══════════════════════════════════════════════════════════════
   pricing-enhance.css — CloudV24 Dynamic Pricing Enhancements
   ADDITIVE ONLY — extends pricing.css, never overwrites.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   HOSTING SUB-TABS (Shared / VPS / Cloud / Reseller)
   ───────────────────────────────────────────────────────────── */
.hosting-subtabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.75rem 0 0;
  animation: fadeSlideDown 0.25s ease;
}

.hosting-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(226,232,240,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hosting-subtab:hover {
  background: rgba(255,90,60,0.1);
  border-color: rgba(255,90,60,0.3);
  color: #fff;
}

.hosting-subtab.active {
  background: rgba(255,90,60,0.18);
  border-color: rgba(255,90,60,0.55);
  color: var(--primary, #ff5a3c);
}

/* ─────────────────────────────────────────────────────────────
   BILLING TOGGLE SAVE BADGE — animated
   ───────────────────────────────────────────────────────────── */
.save-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, transform 0.3s ease;
}

.billing-switch.active ~ .save-badge,
.billing-label .save-badge {
  transform: scale(1.05);
}

/* yearly-only: show save badge only when yearly active */
.save-badge--yearly { opacity: 0; transition: opacity 0.2s ease; }
body.billing-yearly .save-badge--yearly { opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   PRICE CARD — DISCOUNT RIBBON (yearly saving)
   ───────────────────────────────────────────────────────────── */
.price-card__save-ribbon {
  display: none;
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

body.billing-yearly .price-card__save-ribbon { display: inline-block; }

/* ─────────────────────────────────────────────────────────────
   PRICE CARD — original price strikethrough (yearly mode)
   ───────────────────────────────────────────────────────────── */
.price-card__original {
  font-size: 0.85rem;
  color: var(--text-dim, rgba(226,232,240,0.45));
  text-decoration: line-through;
  display: none;
  margin-bottom: -0.25rem;
  font-family: 'Space Mono', monospace;
}

body.billing-yearly .price-card__original { display: block; }

/* ─────────────────────────────────────────────────────────────
   DOMAIN SECTION — search + filter
   ───────────────────────────────────────────────────────────── */
.domain-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.domain-search-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 0 0.85rem;
  transition: border-color 0.2s ease;
}

.domain-search-wrap:focus-within {
  border-color: rgba(255,90,60,0.4);
}

.domain-search-wrap svg {
  width: 15px; height: 15px; flex-shrink: 0; opacity: 0.45;
}

.domain-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text, #e2e8f0);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 0;
  outline: none;
}

.domain-search-wrap input::placeholder { color: rgba(226,232,240,0.35); }

.domain-filter-btns {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.domain-filter-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  background: transparent;
  color: rgba(226,232,240,0.55);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.domain-filter-btn:hover,
.domain-filter-btn.active {
  background: rgba(255,90,60,0.12);
  border-color: rgba(255,90,60,0.35);
  color: var(--primary, #ff5a3c);
}

.domain-sort-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  color: rgba(226,232,240,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.18s ease;
}

.domain-sort-btn:hover {
  border-color: rgba(255,90,60,0.3);
  color: #fff;
}

/* Domain row — no results */
.domain-no-results {
  text-align: center;
  padding: 2.5rem;
  color: rgba(226,232,240,0.4);
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────
   SECURITY TABS inside Security pane
   ───────────────────────────────────────────────────────────── */
.sec-subtabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.sec-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(226,232,240,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sec-subtab:hover {
  background: rgba(255,90,60,0.1);
  border-color: rgba(255,90,60,0.3);
  color: #fff;
}

.sec-subtab.active {
  background: rgba(255,90,60,0.18);
  border-color: rgba(255,90,60,0.55);
  color: var(--primary, #ff5a3c);
}

/* ─────────────────────────────────────────────────────────────
   SECURITY PLAN CARDS (new pane)
   ───────────────────────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.security-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.security-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  border-color: rgba(255,90,60,0.3);
}

.security-card.popular {
  border-color: rgba(255,90,60,0.45);
}

.security-card.popular::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary, #ff5a3c), var(--secondary, #ff7a18));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.security-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(255,90,60,0.15), rgba(255,122,24,0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary, #ff5a3c);
}

.security-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text, #e2e8f0);
  margin-bottom: 0.25rem;
}

.security-card__desc {
  font-size: 0.8rem;
  color: rgba(226,232,240,0.5);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.security-card__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary, #ff5a3c);
  margin-bottom: 0.15rem;
}

.security-card__price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(226,232,240,0.5);
}

.security-card__features {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.security-card__features li {
  font-size: 0.845rem;
  color: rgba(226,232,240,0.7);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.security-card__features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   CART TOAST NOTIFICATION
   ───────────────────────────────────────────────────────────── */
#cv-cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(21,26,46,0.97);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  backdrop-filter: blur(12px);
}

#cv-cart-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.cv-toast__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cv-toast__body { flex: 1; }

.cv-toast__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.cv-toast__sub {
  font-size: 0.78rem;
  color: rgba(226,232,240,0.6);
}

.cv-toast__close {
  background: none;
  border: none;
  color: rgba(226,232,240,0.45);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.cv-toast__close:hover { color: #fff; }

.cv-toast__cta {
  display: block;
  margin-top: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--primary, #ff5a3c), var(--secondary, #ff7a18));
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.cv-toast__cta:hover { opacity: 0.88; }

/* ─────────────────────────────────────────────────────────────
   CART COUNTER BADGE (live update)
   ───────────────────────────────────────────────────────────── */
.cart-badge {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.cart-badge.bump {
  transform: scale(1.5);
}

/* ─────────────────────────────────────────────────────────────
   COMPARISON TABLE — sticky + highlight enhancements
   ───────────────────────────────────────────────────────────── */
.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--dark, #0a0e27);
  z-index: 2;
}

.compare-table .compare-highlight {
  background: rgba(255,90,60,0.07);
}

.compare-table tbody tr:hover td {
  background: rgba(255,255,255,0.025);
}

.compare-table .compare-highlight:hover {
  background: rgba(255,90,60,0.12) !important;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pricePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.price-pop { animation: pricePop 0.35s ease; }

/* ─────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .domain-controls { flex-direction: column; align-items: stretch; }
  .domain-filter-btns { justify-content: center; }
  .security-grid { grid-template-columns: 1fr; }
  .hosting-subtabs { gap: 0.25rem; }
  #cv-cart-toast { bottom: 1rem; right: 1rem; left: 1rem; min-width: unset; }

  /* Swipeable pricing cards on mobile */
  .pricing-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-grid .price-card {
    min-width: 80vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}
