/* ========================================
   Unified Products Page - Theme System
   Supports: Baremetal, Host, SSL, SQL, Mail, Site
   ======================================== */

/* ========================================
   CSS Variables (Theme System)
   ======================================== */
:root {
  /* Default Purple Theme */
  --theme-primary: #8b5cf6;
  --theme-secondary: #6366f1;
  --theme-primary-rgb: 139, 92, 246;
  --theme-secondary-rgb: 99, 102, 241;
  --theme-glow: rgba(139, 92, 246, 0.4);

  /* Common Colors */
  --bg-dark: #0a0612;
  --bg-card: rgba(255,255,255,0.02);
  --border-color: rgba(255,255,255,0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* ========================================
   Theme Variations
   ======================================== */

/* Baremetal - Orange/Copper (Power & Metal) */
.theme-baremetal {
  --theme-primary: #f97316;
  --theme-secondary: #ea580c;
  --theme-primary-rgb: 249, 115, 22;
  --theme-secondary-rgb: 234, 88, 12;
  --theme-glow: rgba(249, 115, 22, 0.4);
}

/* Host - Sky Blue (Cloud & Light) */
.theme-host {
  --theme-primary: #0ea5e9;
  --theme-secondary: #06b6d4;
  --theme-primary-rgb: 14, 165, 233;
  --theme-secondary-rgb: 6, 182, 212;
  --theme-glow: rgba(14, 165, 233, 0.4);
}

/* SSL - Emerald Green (Security & Trust) */
.theme-ssl {
  --theme-primary: #10b981;
  --theme-secondary: #059669;
  --theme-primary-rgb: 16, 185, 129;
  --theme-secondary-rgb: 5, 150, 105;
  --theme-glow: rgba(16, 185, 129, 0.4);
}

/* SQL - Indigo (Data & Tech) */
.theme-sql {
  --theme-primary: #6366f1;
  --theme-secondary: #4f46e5;
  --theme-primary-rgb: 99, 102, 241;
  --theme-secondary-rgb: 79, 70, 229;
  --theme-glow: rgba(99, 102, 241, 0.4);
}

/* Mail - Fuchsia (Communication & Business) */
.theme-mail {
  --theme-primary: #d946ef;
  --theme-secondary: #a855f7;
  --theme-primary-rgb: 217, 70, 239;
  --theme-secondary-rgb: 168, 85, 247;
  --theme-glow: rgba(217, 70, 239, 0.4);
}

/* Site - Rose (Creative & Design) */
.theme-site {
  --theme-primary: #f43f5e;
  --theme-secondary: #e11d48;
  --theme-primary-rgb: 244, 63, 94;
  --theme-secondary-rgb: 225, 29, 72;
  --theme-glow: rgba(244, 63, 94, 0.4);
}

/* ========================================
   Page Container
   ======================================== */
.product-page {
  background: linear-gradient(135deg, #0a0612 0%, #1a0a2e 50%, #0d1033 100%);
  min-height: 100vh;
}

/* ========================================
   Hero Section - Left Text, Right Image Layout
   ======================================== */
.product-hero {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08) 0%, rgba(var(--theme-secondary-rgb), 0.05) 100%);
}

.product-hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.product-hero-content {
  flex: 1;
  max-width: 550px;
  text-align: left;
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-hero-image {
  flex: 1;
  max-width: 500px;
  animation: slideInRight 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.product-hero-image img:hover {
  transform: scale(1.02) translateY(-5px);
}

.product-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.product-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary), var(--theme-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.product-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.product-hero-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
}

.product-hero-icon svg {
  width: 36px;
  height: 36px;
  color: var(--theme-primary);
}

.product-hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 20px;
  color: var(--theme-primary);
  font-size: 13px;
}

.product-hero-badge svg {
  width: 14px;
  height: 14px;
}

.product-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive Hero */
@media (max-width: 968px) {
  .product-hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .product-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .product-hero-image {
    max-width: 350px;
  }

  .product-hero h1 {
    font-size: 32px;
  }

  .product-hero-badges {
    justify-content: center;
  }

  .product-hero-actions {
    justify-content: center;
  }

  .product-hero-icon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .product-hero {
    padding: 60px 15px;
  }

  .product-hero h1 {
    font-size: 28px;
  }

  .product-hero-image {
    max-width: 280px;
  }
}

/* ========================================
   Buttons
   ======================================== */
.product-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.product-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--theme-glow);
}

.product-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.product-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ========================================
   Section
   ======================================== */
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.product-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.product-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ========================================
   Tabs
   ======================================== */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.product-tab {
  padding: 12px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-tab:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  color: var(--theme-primary);
}

.product-tab.active {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-color: rgba(var(--theme-primary-rgb), 0.5);
  color: var(--text-primary);
}

/* ========================================
   Product Grid
   ======================================== */
.product-list {
  display: none;
}

.product-list.active {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 18px;
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--danger), var(--warning));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
}

.product-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.product-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--theme-primary);
}

.product-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-card-body {
  padding: 20px 24px;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-label {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-spec-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.product-spec-value {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
}

.product-card-features {
  padding: 0 24px 20px;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.product-feature svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

.product-card-footer {
  padding: 20px 24px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-price-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--theme-primary);
}

.product-price-period {
  font-size: 13px;
  color: var(--text-muted);
}

.product-price-discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 4px;
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 600;
}

.product-price-yearly {
  font-size: 12px;
  color: var(--text-muted);
}

.product-buy-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.product-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--theme-glow);
}

/* ========================================
   Features Section
   ======================================== */
.product-features-section {
  padding: 80px 20px;
  background: rgba(0,0,0,0.2);
}

.product-features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.product-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
}

.product-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--theme-primary);
}

.product-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   Buy Page Styles
   ======================================== */
.product-buy-page {
  background: linear-gradient(135deg, #0a0612 0%, #1a0a2e 50%, #0d1033 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

.product-buy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.product-buy-header {
  text-align: center;
  margin-bottom: 32px;
}

.product-buy-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-buy-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Product Summary Card */
.product-buy-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.product-buy-product-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-buy-product-name .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-buy-product-name .icon svg {
  width: 20px;
  height: 20px;
  color: var(--theme-primary);
}

.product-buy-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.product-buy-spec {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}

.product-buy-spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-buy-spec-value {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

/* Form Card */
.product-buy-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.product-buy-form-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.product-buy-form-section:last-child {
  border-bottom: none;
}

.product-buy-form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-buy-form-title svg {
  width: 18px;
  height: 18px;
  color: var(--theme-primary);
}

/* Form Group */
.product-buy-form-group {
  margin-bottom: 20px;
}

.product-buy-form-group:last-child {
  margin-bottom: 0;
}

.product-buy-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.product-buy-input,
.product-buy-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.product-buy-textarea {
  min-height: 100px;
  resize: vertical;
}

.product-buy-input:focus,
.product-buy-textarea:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.product-buy-input::placeholder,
.product-buy-textarea::placeholder {
  color: #475569;
}

.product-buy-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.product-buy-select:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.5);
}

.product-buy-select option {
  background: #1a0a2e;
  color: var(--text-primary);
}

/* Duration Selector */
.product-buy-duration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.product-buy-duration-btn {
  padding: 14px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.product-buy-duration-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  color: var(--theme-primary);
}

.product-buy-duration-btn.active {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.2));
  border-color: rgba(var(--theme-primary-rgb), 0.5);
  color: var(--text-primary);
}

.product-buy-duration-btn input {
  display: none;
}

/* Quantity */
.product-buy-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-buy-quantity-input {
  width: 80px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
}

.product-buy-quantity-input:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.5);
}

/* Price Display */
.product-buy-price-section {
  background: rgba(var(--theme-primary-rgb), 0.05);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.product-buy-total-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.product-buy-total-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--theme-primary);
}

.product-buy-original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Agreement */
.product-buy-agreement {
  padding: 20px 24px;
  background: rgba(0,0,0,0.2);
}

.product-buy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
}

.product-buy-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-primary);
}

.product-buy-checkbox-label a {
  color: var(--theme-primary);
  text-decoration: none;
}

.product-buy-checkbox-label a:hover {
  text-decoration: underline;
}

/* Submit Button */
.product-buy-submit-section {
  padding: 24px;
}

.product-buy-submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-buy-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--theme-glow);
}

.product-buy-submit-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-buy-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Theme-Specific Hero Decorations
   ======================================== */

/* Baremetal - Metal Grid Pattern */
.theme-baremetal .product-hero::after {
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.05) 2px, transparent 2px);
  background-size: 40px 40px;
}

.theme-baremetal .product-hero::before {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(234, 88, 12, 0.15) 0%, transparent 50%);
}

/* Host - Cloud Bubbles Pattern */
.theme-host .product-hero::after {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 15%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 18%),
    radial-gradient(circle at 90% 70%, rgba(14, 165, 233, 0.07) 0%, transparent 22%);
  animation: floatBubbles 20s ease-in-out infinite;
}

@keyframes floatBubbles {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* SSL - Shield/Lock Pattern */
.theme-ssl .product-hero::after {
  background-image:
    repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.03) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(5, 150, 105, 0.03) 0%, rgba(5, 150, 105, 0.03) 1px, transparent 1px, transparent 20px);
}

/* SQL - Data Flow Pattern */
.theme-sql .product-hero::after {
  background-image:
    linear-gradient(0deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: dataFlow 10s linear infinite;
}

@keyframes dataFlow {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* Mail - Envelope Pattern */
.theme-mail .product-hero::after {
  background-image:
    linear-gradient(135deg, rgba(217, 70, 239, 0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(168, 85, 247, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(217, 70, 239, 0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(168, 85, 247, 0.04) 25%, transparent 25%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 0, 30px -30px, 0 30px;
}

/* Site - Creative Mosaic Pattern */
.theme-site .product-hero::after {
  background-image:
    linear-gradient(30deg, rgba(244, 63, 94, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(244, 63, 94, 0.05) 87.5%),
    linear-gradient(150deg, rgba(225, 29, 72, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(225, 29, 72, 0.05) 87.5%),
    linear-gradient(30deg, rgba(244, 63, 94, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(244, 63, 94, 0.05) 87.5%),
    linear-gradient(150deg, rgba(225, 29, 72, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(225, 29, 72, 0.05) 87.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* ========================================
   SSL Certificate Specific Styles
   ======================================== */
.ssl-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 6px;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.ssl-type-dv { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); color: #3b82f6; }
.ssl-type-ov { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #10b981; }
.ssl-type-ev { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.2); color: #f97316; }

.ssl-domains-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssl-domain-row {
  display: flex;
  gap: 8px;
}

.ssl-domain-row input {
  flex: 1;
}

.ssl-add-domain-btn {
  padding: 8px 16px;
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.3);
  border-radius: 8px;
  color: var(--theme-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ssl-add-domain-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.2);
}

/* ========================================
   Site Templates Specific Styles
   ======================================== */
.site-template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.site-template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.site-template-image {
  position: relative;
  padding-top: 60%;
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}

.site-template-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.site-template-card:hover .site-template-image img {
  transform: scale(1.05);
}

.site-template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.site-template-card:hover .site-template-overlay {
  opacity: 1;
}

.site-template-preview-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.site-template-preview-btn:hover {
  background: rgba(255,255,255,0.3);
}

.site-template-info {
  padding: 20px;
}

.site-template-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.site-template-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.site-template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-template-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-primary);
}

.site-template-price small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .product-hero {
    padding: 80px 16px 60px;
  }

  .product-hero h1 {
    font-size: 32px;
  }

  .product-hero p {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-footer {
    flex-direction: column;
    text-align: center;
  }

  .product-buy-btn {
    width: 100%;
    justify-content: center;
  }

  .product-buy-container {
    padding: 20px 16px;
  }

  .product-buy-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-buy-duration-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-buy-price-section {
    flex-direction: column;
    text-align: center;
  }
}
