/* ============================================================
   Hosting Pricing Table — Frontend Stylesheet
   ============================================================ */

/* ── CSS Custom Properties (overrideable via Elementor controls) ── */
.hpt-wrap {
  --hpt-accent:  #38bdf8;
  --hpt-accent2: #818cf8;
  --hpt-bg:      #0b0f1a;
  --hpt-surface: #111827;
  --hpt-surface2:#1a2235;
  --hpt-border:  rgba(99,179,237,0.12);
  --hpt-text:    #e2e8f0;
  --hpt-muted:   #94a3b8;
  --hpt-radius:  20px;
  --hpt-disc-badge: #ef4444;
  --hpt-disc-badge-text: #fff;
  --hpt-old-price-color: #64748b;

  background: var(--hpt-bg);
  padding: 60px 24px;
  box-sizing: border-box;
  direction: rtl;
}

/* ── Ambient glow ── */
.hpt-wrap::before {
  content: '';
  display: block;
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56,189,248,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.hpt-header {
  text-align: center;
  margin-bottom: 52px;
  animation: hpt-fade-down .65s ease both;
}

.hpt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hpt-accent);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 18px;
}

.hpt-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--hpt-text) 30%, var(--hpt-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 14px;
}

.hpt-desc {
  color: var(--hpt-muted);
  font-size: 15px;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Plans Grid ── */
.hpt-plans-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.hpt-cols-1 { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
.hpt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hpt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hpt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hpt-cols-5 { grid-template-columns: repeat(5, 1fr); }
.hpt-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Card ── */
.hpt-card {
  background: var(--hpt-surface);
  border: 1px solid var(--hpt-border);
  border-radius: var(--hpt-radius);
  padding: 32px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-sizing: border-box;
  animation: hpt-fade-up .6s ease both;
}

.hpt-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hpt-accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.hpt-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 40px rgba(56,189,248,.07);
}

.hpt-card:hover::before { opacity: 1; }

/* Featured */
.hpt-card--featured {
  background: linear-gradient(160deg, #13203a 0%, var(--hpt-surface) 100%);
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 8px 40px rgba(56,189,248,.1);
}

.hpt-card--featured::before { opacity: 1; }

/* Featured badge */
.hpt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  background: linear-gradient(90deg, var(--hpt-accent), var(--hpt-accent2));
  color: #0b0f1a;
  border-radius: 100px;
  padding: 4px 12px;
  z-index: 2;
}

/* Discount badge */
.hpt-discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  background: var(--hpt-disc-badge, #ef4444);
  color: var(--hpt-disc-badge-text, #fff);
  border-radius: 100px;
  padding: 4px 12px;
  z-index: 2;
}

/* ── Card Top ── */
.hpt-card-top { margin-bottom: 0; }

.hpt-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.hpt-plan-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--hpt-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hpt-plan-storage {
  font-size: 34px;
  font-weight: 800;
  color: var(--hpt-text);
  line-height: 1;
  margin-bottom: 12px;
}

/* ── Price ── */
.hpt-price-block { margin-bottom: 24px; }

.hpt-old-price {
  font-size: 13px;
  color: var(--hpt-old-price-color, #64748b);
  margin-bottom: 4px;
}

.hpt-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.hpt-price strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--hpt-text);
  line-height: 1;
}

.hpt-price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--hpt-accent);
}

.hpt-price-period {
  font-size: 13px;
  color: var(--hpt-muted);
}

/* ── Divider ── */
.hpt-divider {
  height: 1px;
  background: var(--hpt-border);
  margin: 0 0 22px;
}

/* ── Features List ── */
.hpt-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hpt-feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--hpt-muted);
}

.hpt-feature-item--bold {
  font-weight: 700;
  color: var(--hpt-text);
}

.hpt-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--hpt-accent);
}

.hpt-feature-label { flex: 1; }

.hpt-feature-value {
  font-weight: 600;
  color: var(--hpt-text);
  font-size: 13px;
}

/* ── Button ── */
.hpt-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.hpt-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(56,189,248,.3);
  color: var(--hpt-accent);
}

.hpt-btn--outline:hover {
  background: rgba(56,189,248,.08);
  border-color: var(--hpt-accent);
  color: var(--hpt-accent);
  text-decoration: none;
}

.hpt-btn--filled {
  background: linear-gradient(135deg, var(--hpt-accent) 0%, #0ea5e9 100%);
  color: #0b0f1a;
  box-shadow: 0 6px 24px rgba(56,189,248,.3);
}

.hpt-btn--filled:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 32px rgba(56,189,248,.4);
  color: #0b0f1a;
  text-decoration: none;
}

/* ── Animations ── */
@keyframes hpt-fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hpt-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hpt-cols-4,
  .hpt-cols-5,
  .hpt-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hpt-cols-2,
  .hpt-cols-3,
  .hpt-cols-4,
  .hpt-cols-5,
  .hpt-cols-6 { grid-template-columns: 1fr; }
  .hpt-wrap { padding: 40px 14px; }
}
