/* ==========================================================================
   VPSHosting.blog — Professional Hosting Coupons & Deals Page CSS (2026 Edition)
   ========================================================================== */

:root {
  --cp-emerald: #059669;
  --cp-emerald-dark: #047857;
  --cp-emerald-light: #ecfdf5;
  --cp-emerald-border: #a7f3d0;
  --cp-card-bg: #ffffff;
  --cp-card-border: #e2e8f0;
  --cp-card-hover-border: #10b981;
  --cp-text-dark: #0f172a;
  --cp-text-muted: #64748b;
  --cp-badge-exclusive: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --cp-discount-bg: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --cp-discount-credit: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --cp-discount-free: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-theme="dark"] {
  --cp-emerald: #10b981;
  --cp-emerald-dark: #059669;
  --cp-emerald-light: rgba(16, 185, 129, 0.12);
  --cp-emerald-border: rgba(16, 185, 129, 0.28);
  --cp-card-bg: #0d1527;
  --cp-card-border: #1e293b;
  --cp-card-hover-border: #10b981;
  --cp-text-dark: #f8fafc;
  --cp-text-muted: #94a3b8;
}

/* Hero Section */
.cp-hero-section {
  position: relative;
  background: radial-gradient(1000px 400px at 50% -10%, rgba(16, 185, 129, 0.18), transparent 70%),
              radial-gradient(800px 300px at 85% 20%, rgba(239, 68, 68, 0.12), transparent 60%),
              linear-gradient(180deg, #090e17 0%, #0f172a 100%);
  color: #fff;
  padding: 18px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.cp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  animation: cpPulse 2s infinite ease-in-out;
}

@keyframes cpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.cp-hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cp-hero-section h1 span.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #fbbf24 50%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-hero-section p.lead {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* KPI Counter Stats */
.cp-hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-hero-stat-item .val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.cp-hero-stat-item .lbl {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Card */
.cp-filter-bar {
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 25px;
}

.cp-filter-bar .form-control,
.cp-filter-bar .form-select {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--cp-card-border);
  font-size: 0.92rem;
}

.cp-filter-bar .form-control:focus,
.cp-filter-bar .form-select:focus {
  border-color: var(--cp-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Category Quick Filter Pills */
.cp-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cp-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  color: var(--cp-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cp-cat-pill:hover {
  border-color: var(--cp-emerald);
  color: var(--cp-emerald);
  transform: translateY(-1px);
}

.cp-cat-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .cp-cat-pill.active {
  background: var(--cp-emerald);
  border-color: var(--cp-emerald);
  color: #ffffff;
}

.cp-cat-pill .badge-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.cp-cat-pill.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==========================================================================
   Modern Coupon Card Styling
   ========================================================================== */
.cp-card {
  position: relative;
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cp-card:hover {
  transform: translateY(-4px);
  border-color: var(--cp-card-hover-border);
  box-shadow: 0 16px 36px -12px rgba(16, 185, 129, 0.16);
}

/* Top Accent Line */
.cp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

/* Coupon Scissor Cut-Outs */
.cp-card::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--cp-card-border);
  box-shadow: inset 2px 0 3px rgba(0, 0, 0, 0.05);
}

/* Exclusive Badge Ribbon */
.cp-badge-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cp-badge-exclusive);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Card Header */
.cp-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-card-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cp-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cp-card-provider {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cp-text-dark);
  text-decoration: none;
  line-height: 1.2;
}

.cp-card-provider:hover {
  color: var(--cp-emerald);
}

.cp-card-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cp-emerald);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Discount Pill */
.cp-card-discount {
  margin-left: auto;
  background: var(--cp-discount-bg);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 7px 12px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cp-card-discount.credit {
  background: var(--cp-discount-credit);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cp-card-discount.free {
  background: var(--cp-discount-free);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card Body */
.cp-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cp-text-dark);
  margin: 0;
  line-height: 1.35;
}

.cp-card-desc {
  font-size: 0.9rem;
  color: var(--cp-text-muted);
  line-height: 1.55;
  margin: 0;
  min-height: 42px;
}

/* Promo Code Box */
.cp-code-box {
  display: flex;
  align-items: stretch;
  border: 2px dashed #10b981;
  border-radius: 10px;
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .cp-code-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.cp-code-box:hover {
  border-color: #059669;
  transform: scale(1.01);
}

.cp-code-display {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 3px;
  color: #047857;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .cp-code-display {
  color: #34d399;
}

.cp-code-btn {
  background: #047857;
  color: #ffffff;
  border: 0;
  padding: 0 16px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cp-code-box:hover .cp-code-btn {
  background: #059669;
}

.cp-code-box.revealed .cp-code-display {
  letter-spacing: 1px;
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] .cp-code-box.revealed .cp-code-display {
  background: #09101d;
  color: #ffffff;
}

.cp-code-box.revealed .cp-code-btn {
  background: #10b981;
}

/* Card Meta Row */
.cp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--cp-text-muted);
  padding-top: 4px;
}

.cp-card-meta .verified {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .cp-card-meta .verified {
  color: #34d399;
}

/* Card Action Buttons */
.cp-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.cp-btn-visit {
  flex: 1;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cp-btn-visit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.cp-btn-review {
  background: transparent;
  color: var(--cp-text-muted) !important;
  border: 1px solid var(--cp-card-border);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.cp-btn-review:hover {
  border-color: var(--cp-emerald);
  color: var(--cp-emerald) !important;
}

/* How It Works Grid */
.cp-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.cp-how-card {
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cp-how-step {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.cp-how-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--cp-emerald-light);
  color: var(--cp-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 10px auto 14px;
}

.cp-how-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--cp-text-dark);
  margin-bottom: 8px;
}

.cp-how-card p {
  font-size: 0.9rem;
  color: var(--cp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Educational Content Section */
.cp-guide-section {
  background: var(--cp-card-bg);
  border: 1px solid var(--cp-card-border);
  border-radius: 18px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.cp-guide-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cp-text-dark);
  margin-top: 30px;
  margin-bottom: 12px;
}

.cp-guide-section h2:first-child {
  margin-top: 0;
}

.cp-guide-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cp-text-dark);
  margin-top: 20px;
  margin-bottom: 8px;
}

.cp-guide-section p {
  color: var(--cp-text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.cp-guide-section ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.cp-guide-section ul li {
  color: var(--cp-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.cp-guide-section strong {
  color: var(--cp-text-dark);
}

/* Toast Notice */
.cp-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0f172a;
  color: #fff;
  border: 1px solid #10b981;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cp-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .cp-hero-section h1 { font-size: 2rem; }
  .cp-hero-section { padding: 40px 0 30px; }
}

@media (max-width: 768px) {
  .cp-hero-section h1 { font-size: 1.75rem; }
  .cp-hero-section p.lead { font-size: 0.98rem; }
  .cp-hero-stats { gap: 18px; }
  .cp-card-actions { flex-direction: column; width: 100%; }
  .cp-btn-visit, .cp-btn-review { width: 100%; justify-content: center; }
  .cp-guide-section { padding: 24px; }
}

