/**
 * ImpactGuard panel store page — full layout (loads last).
 * Restores store-hero grid and related sections missing from tactical style.css.
 */

/* ── Change Plan header (avoids tactical .page-title clip) ── */
.store-change-plan-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 2rem 0 1.25rem;
  padding: 0;
  width: 100%;
  clear: both;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.store-change-plan-header > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
  overflow: visible;
}

.store-change-plan-header > div:last-child {
  flex: 0 0 auto;
  align-self: center;
}

.store-change-plan-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--text-primary);
  overflow: visible;
}

.store-change-plan-subtitle {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55 !important;
  color: var(--text-secondary);
  text-transform: none !important;
  letter-spacing: normal !important;
  overflow: visible;
}

/* ── Global checkout payment block ── */
.store-checkout-payment {
  margin-bottom: 1.25rem;
}

.store-checkout-payment__lead {
  margin: 0 0 0.85rem;
  max-width: 52rem;
}

.store-checkout-payment .store-method-label {
  margin-bottom: 0.35rem;
}

.store-checkout-payment .store-method-picker {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  flex-direction: unset !important;
  max-width: none !important;
}

@media (max-width: 900px) {
  .store-checkout-payment .store-method-picker {
    grid-template-columns: 1fr !important;
  }
}

/* ── Store hero (grid layout) ── */
.store-hero {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(700px 280px at 8% 0%, rgba(255, 106, 0, 0.14), transparent 64%),
    radial-gradient(520px 260px at 96% 20%, rgba(255, 140, 50, 0.1), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

.store-hero__copy,
.store-hero__panel,
.store-hero__license {
  position: relative;
  z-index: 1;
}

.store-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent);
  background: var(--accent-glow);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.store-hero p {
  max-width: 720px;
  margin: 0.9rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.store-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.store-hero__panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.store-hero__metric {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 20px;
  background: rgba(6, 11, 24, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-hero__metric span {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.store-hero__metric small {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

.store-hero__license {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(69, 224, 178, 0.28);
  border-radius: 18px;
  background: rgba(69, 224, 178, 0.08);
}

.store-hero__license span,
.store-hero__license small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.store-hero__license strong {
  color: var(--success);
  font-size: 1rem;
}

/* ── Trust row ── */
.store-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.store-trust-row > div {
  padding: 1rem;
  border: 1px solid rgba(255, 106, 0, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.store-trust-row strong,
.store-trust-row span {
  display: block;
}

.store-trust-row strong {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.store-trust-row span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Plan cards (store page polish) ── */
.store-plan-card {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(255, 106, 0, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.store-plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.store-plan-card:hover {
  box-shadow: var(--shadow-glow);
}

/* Compact payment picker inside plan cards */
.store-plan-card .store-payment-methods .store-method-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  max-width: 100%;
}

.store-plan-card .store-method-option {
  min-height: 0;
}

.store-plan-card .store-method-option__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.store-plan-card .store-method-option__icon svg {
  width: 1.125rem;
  height: 1.125rem;
  max-width: 100%;
  max-height: 100%;
}

.store-plan-card .store-method-option__hint {
  font-size: 0.7rem;
  line-height: 1.35;
}

.store-plan-header {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-plan-price {
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.store-plan-features li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.store-plan-features li.included::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
}

.store-plan-features li.excluded::before {
  content: "×";
  color: var(--danger);
  font-weight: 900;
}

.store-plan-features li.included,
.store-plan-features li.excluded {
  text-decoration: none;
}

/* ── Module showcase ── */
.store-module-showcase {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 106, 0, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(620px 220px at 18% 0%, rgba(69, 224, 178, 0.12), transparent 68%),
    rgba(255, 255, 255, 0.03);
}

.store-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.store-section-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.store-section-head p {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.45rem;
}

.store-module-count {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: var(--accent-glow);
  font-size: 2rem;
  font-weight: 900;
}

.store-module-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.store-module-category {
  padding: 0.95rem;
  border: 1px solid rgba(255, 106, 0, 0.12);
  border-radius: 18px;
  background: rgba(6, 11, 24, 0.34);
}

.store-module-category__title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.store-module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.store-module-chips span {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 106, 0, 0.13);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.75rem;
  font-weight: 600;
}

.store-license-summary {
  clear: both;
}

@media (max-width: 980px) {
  .store-hero,
  .store-trust-row,
  .store-module-categories {
    grid-template-columns: 1fr !important;
  }

  .store-change-plan-header > div:last-child {
    width: 100%;
  }

  .store-change-plan-header > div:last-child .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .store-hero__panel {
    grid-template-columns: 1fr;
  }
}
