/* ============================================================
   HELPER APP STORE — App Store / Play Store Design Language
   Dark purple glass theme, consistent with site identity.
   Design tokens, accessible contrast, SVG-only icons.
   ============================================================ */

:root {
  --as-bg: #0c0b14;
  --as-surface: rgba(255, 255, 255, 0.05);
  --as-surface-strong: rgba(255, 255, 255, 0.08);
  --as-surface-hover: rgba(255, 255, 255, 0.09);
  --as-border: rgba(181, 140, 255, 0.14);
  --as-border-strong: rgba(181, 140, 255, 0.3);
  --as-primary: #8b5cf6;
  --as-primary-2: #c084fc;
  --as-accent: #a78bfa;
  --as-text: #ffffff;
  --as-text-muted: #b7b7c4;
  --as-text-dim: #7c7c8a;
  --as-gold: #fbbf24;
  --as-gold-2: #f59e0b;
  --as-success: #34d399;
  --as-success-2: #10b981;
  --as-danger: #f87171;
  --as-radius: 20px;
  --as-radius-sm: 14px;
  --as-gap: 22px;
  --as-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  --as-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Page shell ---------- */
.as-store {
  width: 100%;
  padding: 40px 20px 90px;
}

.as-store__container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.as-hero {
  position: relative;
  margin-top: 4vh;
  margin-bottom: 40px;
  padding: 38px 30px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid var(--as-border);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    var(--as-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.as-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(168, 85, 247, 0.16), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(99, 102, 241, 0.14), transparent 34%);
}

.as-hero > * { position: relative; z-index: 1; }

.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--as-border-strong);
  color: #d8c9ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.as-eyebrow svg { width: 15px; height: 15px; }

.as-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--as-text);
}

.as-hero h1 .as-hero__accent { color: var(--as-primary-2); }

.as-hero p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--as-text-muted);
  font-size: 1rem;
  line-height: 1.95;
}

/* ---------- Search bar ---------- */
.as-search {
  max-width: 560px;
  margin: 28px auto 0;
}

.as-search form { position: relative; }

.as-search__input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 52px;
  border-radius: 999px;
  border: 1px solid var(--as-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--as-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.as-search__input::placeholder { color: var(--as-text-dim); }

.as-search__input:focus {
  border-color: var(--as-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.as-search__submit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  color: #e2d6ff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.as-search__submit:hover {
  background: var(--as-primary);
  color: #fff;
}

.as-search__submit:focus-visible {
  outline: 2px solid var(--as-primary-2);
  outline-offset: 2px;
}

.as-search__submit svg { width: 20px; height: 20px; }

/* ---------- Category chips ---------- */
.as-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 8px;
}

.as-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--as-border);
  color: var(--as-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.as-chip:hover {
  background: var(--as-surface-hover);
  border-color: var(--as-border-strong);
  color: #fff;
  transform: translateY(-1px);
}

.as-chip.is-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(168, 85, 247, 0.65));
  border-color: rgba(192, 132, 252, 0.5);
  color: #fff;
}

.as-chip.is-clear { color: var(--as-text-dim); font-size: 0.82rem; }

.as-chip svg { width: 16px; height: 16px; opacity: 0.85; }

.as-chip:focus-visible {
  outline: 2px solid var(--as-primary-2);
  outline-offset: 2px;
}

/* ---------- Toolbar ---------- */
.as-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 20px;
}

.as-toolbar h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--as-text);
}

.as-toolbar span {
  color: var(--as-text-dim);
  font-size: 0.85rem;
}

/* ---------- Grid ---------- */
.as-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--as-gap);
}

/* ---------- App card ---------- */
.as-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--as-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--as-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--as-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.as-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 140, 255, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 26px rgba(139, 92, 246, 0.1);
}

.as-card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

/* App icon — sized like iOS app store (rounded squircle) */
.as-icon {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 20%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  user-select: none;
}

.as-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as-icon--lg {
  width: 112px;
  height: 112px;
  font-size: 2.2rem;
}

.as-icon--sm {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}

.as-card__info { min-width: 0; flex: 1; }

.as-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--as-text);
  line-height: 1.5;
}

.as-card__dev {
  margin: 0;
  color: var(--as-text-dim);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rating row */
.as-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
}

.as-stars svg { width: 14px; height: 14px; flex-shrink: 0; }

.as-stars--lg svg { width: 18px; height: 18px; }

.as-stars__num {
  color: var(--as-gold-2);
  font-weight: 700;
  font-size: 0.88rem;
  margin-right: 6px;
  direction: ltr;
}

.as-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.as-card__rating .as-stars__num { color: var(--as-text-muted); font-weight: 500; }

.as-card__rating-count { color: var(--as-text-dim); font-size: 0.78rem; }

/* Meta chips */
.as-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.as-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(181, 140, 255, 0.16);
  color: #d8c9ff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.as-tag--green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.as-tag svg { width: 13px; height: 13px; }

.as-card__desc {
  margin: 12px 0 18px;
  color: var(--as-text-muted);
  font-size: 0.88rem;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.as-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Download button — Play Store style pill */
.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.as-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.as-btn--download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.as-btn--download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.4);
}

.as-btn--download:active { transform: translateY(0); }

.as-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--as-border);
  color: var(--as-text-muted);
}

.as-btn--ghost:hover {
  background: var(--as-surface-hover);
  border-color: var(--as-border-strong);
  color: #fff;
}

.as-btn--primary {
  background: linear-gradient(135deg, var(--as-primary), #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.as-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.42);
}

.as-btn--lg { height: 52px; padding: 0 30px; font-size: 1rem; }

.as-btn--block { width: 100%; }

.as-btn:focus-visible {
  outline: 2px solid var(--as-primary-2);
  outline-offset: 2px;
}

.as-btn--sm { height: 34px; padding: 0 16px; font-size: 0.82rem; }

/* ---------- Empty state ---------- */
.as-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--as-text-dim);
}

.as-empty svg { width: 44px; height: 44px; margin: 0 auto 14px; opacity: 0.5; }
.as-empty h3 { color: var(--as-text-muted); margin: 0 0 6px; font-size: 1.05rem; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.as-detail {
  width: 100%;
  padding: 30px 20px 90px;
}

.as-detail__container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Detail hero — App Store product header */
.as-detail-hero {
  position: relative;
  margin-top: 3vh;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--as-border);
  background:
    radial-gradient(70% 120% at 20% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
    var(--as-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--as-shadow);
}

.as-detail-hero__info { flex: 1; min-width: 0; }

.as-detail-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--as-primary-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.as-detail-hero__eyebrow svg { width: 14px; height: 14px; }

.as-detail-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--as-text);
  line-height: 1.25;
}

.as-detail-hero__dev { color: var(--as-text-dim); font-size: 0.92rem; margin: 0; }

.as-detail-hero__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.as-detail-hero__rating .as-stars__num { font-size: 1rem; }

.as-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.as-detail-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.as-detail-hero__actions .as-btn { min-width: 180px; }

/* ---------- Layout ---------- */
.as-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}

.as-panel {
  padding: 28px;
  border-radius: var(--as-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--as-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--as-shadow);
}

.as-panel + .as-panel { margin-top: 22px; }

.as-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.as-panel__head .as-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--as-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.as-panel__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--as-text);
}

.as-desc {
  color: #c8c8d6;
  font-size: 1rem;
  line-height: 2.1;
  white-space: pre-wrap;
}

/* ---------- Sidebar ---------- */
.as-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.as-info { padding: 24px; }

.as-info h3 {
  margin: 0 0 16px;
  color: var(--as-text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.as-info__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.as-info__row:last-child { border-bottom: none; }

.as-info__row span { color: var(--as-text-dim); }
.as-info__row strong { color: var(--as-text); font-weight: 600; text-align: left; }

/* ---------- Rating summary ---------- */
.as-rating-box {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: var(--as-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.as-rating-box__score {
  text-align: center;
  flex-shrink: 0;
  min-width: 96px;
}

.as-rating-box__score strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--as-text);
  line-height: 1;
  direction: ltr;
}

.as-rating-box__score span {
  color: var(--as-text-dim);
  font-size: 0.8rem;
  display: block;
  margin-top: 6px;
}

.as-rating-box__bars { flex: 1; min-width: 0; }

.as-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.78rem;
  color: var(--as-text-dim);
  direction: ltr;
}

.as-bar-row:last-child { margin-bottom: 0; }

.as-bar-row__label { width: 30px; text-align: center; flex-shrink: 0; }

.as-bar-row__track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.as-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--as-gold), var(--as-gold-2));
  transition: width 0.6s var(--as-ease);
}

.as-bar-row__pct { width: 38px; text-align: left; flex-shrink: 0; }

/* ---------- Reviews ---------- */
.as-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.as-review {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--as-radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.as-review__avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
}

.as-review__avatar img { width: 100%; height: 100%; object-fit: cover; }

.as-review__body { flex: 1; min-width: 0; }

.as-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.as-review__name { color: var(--as-text); font-weight: 700; font-size: 0.92rem; }

.as-review__date { color: var(--as-text-dim); font-size: 0.75rem; }

.as-review__text {
  margin: 8px 0 0;
  color: var(--as-text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.as-reviews__empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--as-text-dim);
  font-size: 0.9rem;
}

.as-reviews__empty svg { width: 34px; height: 34px; margin-bottom: 10px; opacity: 0.4; }

/* ---------- Review form ---------- */
.as-review-form { margin-top: 24px; }

.as-review-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.as-review-form__head h3 { margin: 0; font-size: 1rem; color: var(--as-text); }

.as-star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; direction: ltr; }

.as-star-input input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.as-star-input label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.as-star-input label svg { width: 24px; height: 24px; }

.as-star-input label:hover { transform: scale(1.15); background: rgba(251, 191, 36, 0.1); }

.as-star-input label svg path { fill: rgba(255, 255, 255, 0.14); transition: fill 0.15s ease; }

/* Filled state via sibling selector (RTL: row-reverse keeps left→right order) */
.as-star-input input:checked ~ label svg path { fill: var(--as-gold); }

.as-star-input label:hover svg path { fill: var(--as-gold); }

.as-star-input input:checked ~ label:hover svg path,
.as-star-input label:hover ~ label svg path { fill: var(--as-gold); }

.as-star-input input:focus-visible + label { outline: 2px solid var(--as-gold); outline-offset: 2px; }

.as-textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: var(--as-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--as-text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.as-textarea:focus {
  border-color: var(--as-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

.as-review-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.as-login-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--as-radius-sm);
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed var(--as-border-strong);
  color: var(--as-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.as-login-hint a { color: var(--as-primary-2); font-weight: 600; text-decoration: none; }
.as-login-hint a:hover { text-decoration: underline; }

.as-login-hint svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--as-primary-2); }

/* ---------- Notice / flash ---------- */
.as-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--as-radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.as-notice svg { width: 20px; height: 20px; flex-shrink: 0; }

.as-notice--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.as-notice--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* ---------- Modal (download helper) ---------- */
.as-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 9, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.as-modal.is-open { opacity: 1; visibility: visible; }

.as-modal__card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 22px;
  background: #15121f;
  border: 1px solid var(--as-border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--as-ease);
}

.as-modal.is-open .as-modal__card { transform: translateY(0) scale(1); }

.as-modal__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.as-modal__icon svg { width: 30px; height: 30px; }

.as-modal__card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--as-text); }

.as-modal__card p { margin: 0 0 20px; color: var(--as-text-muted); font-size: 0.9rem; line-height: 1.8; }

.as-modal__card .as-btn { width: 100%; }

.as-modal__cancel {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--as-text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px;
}
.as-modal__cancel:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-detail-layout { grid-template-columns: 1fr; }
  .as-side { position: relative; top: auto; }
  .as-detail-hero { flex-direction: column; align-items: flex-start; }
  .as-detail-hero__actions { width: 100%; }
  .as-detail-hero__actions .as-btn { min-width: 0; }
}

@media (max-width: 640px) {
  .as-store { padding: 22px 14px 60px; }
  .as-detail { padding: 18px 14px 60px; }
  .as-grid { grid-template-columns: 1fr; gap: 16px; }
  .as-hero { padding: 28px 18px; border-radius: 20px; }
  .as-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .as-card__top { gap: 12px; }
  .as-icon { width: 64px; height: 64px; font-size: 1.4rem; }
  .as-icon--lg { width: 96px; height: 96px; font-size: 1.9rem; }
  .as-detail-hero { padding: 22px; }
  .as-panel { padding: 20px; }
  .as-rating-box { flex-direction: column; align-items: flex-start; }
  .as-rating-box__score { min-width: 0; width: 100%; }
  .as-review-form__foot { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .as-card, .as-btn, .as-chip, .as-star-input label { transition: none; }
  .as-card:hover, .as-btn:hover, .as-chip:hover { transform: none; }
  .as-bar-row__fill { transition: none; }
  .as-modal__card { transition: none; }
  .as-modal.is-open .as-modal__card { transform: none; }
}

/* ---------- Platform download tabs ---------- */
.as-dl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.as-dl-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--as-border);
  color: var(--as-text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.as-dl-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.as-dl-tab small { font-size: 0.7rem; opacity: 0.7; font-weight: 500; }
.as-dl-tab:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: var(--as-border-strong);
  color: #fff;
  transform: translateY(-1px);
}
.as-dl-tab.is-active {
  background: linear-gradient(135deg, var(--as-primary), #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.28);
}
@media (max-width: 640px) {
  .as-dl-tabs { width: 100%; }
  .as-dl-tab { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Shared form labels (app detail + contact) ---------- */
.as-form-label {
  display: block;
  margin-bottom: 10px;
  color: #b7b7c4;
  font-size: 0.9rem;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}