/* ══════════════════════════════════════════════════════════════════════
   ChatBubble Store — Modern App Marketplace
   Extends the existing aurora-themed design system
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b1220;
  --panel: #121a2c;
  --panel-2: #0f172a;
  --text: #e7edf7;
  --muted: #a7b2c4;
  --primary: #7c5cff;
  --primary-2: #5ad7ff;
  --danger: #ff5c7a;
  --success: #34C759;
  --border: rgba(255,255,255,.08);
  --shadow: 0 18px 50px rgba(0,0,0,.4);
  --radius: 16px;
}

/* ═══ Hero Section ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 22px 60px;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(90,215,255,.08), rgba(11,18,32,.6));
  border: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(124,92,255,.2), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(90,215,255,.15), transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.3);
  color: var(--primary-2); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900; line-height: 1.08;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--muted); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-lg {
  padding: 16px 32px; border-radius: 16px; font-size: 16px; font-weight: 700;
}

/* ═══ Features Grid ══════════════════════════════════════════════════════ */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(18,26,44,.8), rgba(15,23,42,.7));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.3); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ═══ Pricing Cards ═══════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.pricing-card {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(15,23,42,.85));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  position: relative; transition: border-color .2s;
}
.pricing-card.featured {
  border-color: rgba(124,92,255,.4);
  background: linear-gradient(180deg, rgba(124,92,255,.1), rgba(15,23,42,.85));
}
.pricing-card.featured::before {
  content: "POPULAR"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 18px; border-radius: 99px; letter-spacing: .5px;
}
.pricing-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 900; margin: 12px 0 4px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.pricing-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.pricing-features li { padding: 8px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ═══ Platform Badges ════════════════════════════════════════════════════ */
.platform-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 600;
}
.platform-badge.windows { background: rgba(0,122,255,.12); color: #0A84FF; }
.platform-badge.linux { background: rgba(255,149,0,.12); color: #FF9500; }
.platform-badge.ios { background: rgba(255,255,255,.08); color: #CCC; }
.platform-badge.android { background: rgba(52,199,89,.12); color: #34C759; }

/* ═══ App Store Product Card ════════════════════════════════════════════ */
.app-card {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(15,23,42,.85));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.app-card:hover { border-color: rgba(124,92,255,.3); transform: translateY(-2px); }
.app-card-media {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(90,215,255,.08));
  overflow: hidden;
}
.app-card-media img { width: 100%; height: 100%; object-fit: cover; }
.app-card-body { padding: 18px; }
.app-card-body h3 { margin: 0 0 8px; font-size: 17px; }
.app-card-body .price { font-size: 22px; font-weight: 800; margin: 8px 0; }

/* ═══ Social Share ════════════════════════════════════════════════════════ */
.share-bar { display: flex; gap: 8px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--text); cursor: pointer; transition: background .2s;
}
.share-btn:hover { background: rgba(255,255,255,.06); }
.share-btn.twitter:hover { background: rgba(29,161,242,.15); border-color: rgba(29,161,242,.3); }
.share-btn.facebook:hover { background: rgba(66,103,178,.15); border-color: rgba(66,103,178,.3); }
.share-btn.copy:hover { background: rgba(124,92,255,.15); border-color: rgba(124,92,255,.3); }

/* ═══ Status Badge ═══════════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
}
.status-badge.active { background: rgba(52,199,89,.15); color: #34C759; }
.status-badge.inactive { background: rgba(255,149,0,.15); color: #FF9500; }
.status-badge.revoked { background: rgba(255,59,48,.15); color: #FF3B30; }

/* ═══ Stats Dashboard ════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(15,23,42,.85));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat-card .stat-value { font-size: 32px; font-weight: 900; margin-bottom: 4px; }
.stat-card .stat-label { color: var(--muted); font-size: 13px; }

/* ═══ Email Template Cards (Admin) ═════════════════════════════════════════ */
.email-card {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(15,23,42,.85));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
}
.email-card h4 { margin: 0 0 8px; }

/* ═══ Responsive ═════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .pricing-grid, .features { grid-template-columns: 1fr; }
}
