@import url('/assets/store.css');

html {
  scroll-behavior: smooth;
}

body.storefront-body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.storefront-shell {
  padding-bottom: 48px;
}

.storefront-topbar {
  margin-top: 18px;
}

.storefront-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 13px;
}

.storefront-hero {
  align-items: stretch;
}

.storefront-hero-wide {
  grid-template-columns: 1fr;
}

.storefront-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.storefront-side {
  justify-content: center;
}

.storefront-side-grid {
  display: grid;
  gap: 14px;
}

.storefront-side-item {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.storefront-side-item strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 24px;
  color: var(--text);
}

.storefront-side-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.side-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.storefront-feature-btn {
  margin-top: 8px;
}

.storefront-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.storefront-plan-card {
  min-height: 250px;
  justify-content: flex-start;
  border: 1px solid var(--line);
}

.storefront-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.storefront-plan-head strong {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

.storefront-plan-duration {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.storefront-plan-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  min-height: 72px;
  white-space: pre-line;
}

.storefront-plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.storefront-plan-now {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.storefront-plan-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
}

.storefront-plan-btn {
  width: 100%;
  margin-top: 14px;
}

.storefront-loading-card {
  min-height: 180px;
}

.storefront-balance-head {
  justify-content: flex-start;
}

.storefront-balance-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.storefront-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-entry-card {
  min-height: 220px;
  justify-content: space-between;
}

.storefront-entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .storefront-product-grid,
  .storefront-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .storefront-product-grid,
  .storefront-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .storefront-topbar {
    margin-top: 12px;
  }
}

.qq-group-float {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 80;
  width: 156px;
  transform: translateY(-50%);
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  text-align: center;
  backdrop-filter: blur(10px);
}

.qq-group-float-title,
.qq-group-float-meta {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.qq-group-float-title {
  margin-bottom: 7px;
}

.qq-group-float-meta {
  margin-top: 7px;
  color: #bae6fd;
}

.qq-group-float img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .qq-group-float {
    width: 128px;
    right: 12px;
  }
}

@media (max-width: 860px) {
  .qq-group-float {
    top: auto;
    right: 12px;
    bottom: 14px;
    width: 104px;
    transform: none;
    padding: 7px;
  }

  .qq-group-float-title {
    display: none;
  }

  .qq-group-float-meta {
    margin-top: 5px;
    font-size: 10px;
  }
}
