:root {
  color-scheme: dark;
  --bg:#07080d;
  --panel:#11131c;
  --panel2:#171a25;
  --line:rgba(255,255,255,.12);
  --text:#f5f6fa;
  --muted:#a9afbd;
  --accent:#bba2ff;
  --radius:20px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:
    radial-gradient(circle at top, #17162d 0, #07080d 36rem);
  color:var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color:inherit;
}

img {
  max-width:100%;
}

.store-shell {
  width:min(1400px, calc(100% - 32px));
  margin-inline:auto;
}

.store-topbar {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(7,8,13,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.store-topbar__inner {
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.store-brand {
  text-decoration:none;
  font-weight:800;
  letter-spacing:.04em;
}

.store-nav {
  display:flex;
  align-items:center;
  gap:20px;
  font-size:.92rem;
}

.store-nav a {
  color:var(--muted);
  text-decoration:none;
}

.store-nav a:hover {
  color:white;
}

.store-nav span {
  font-weight:700;
}

.store-hero {
  margin-top:28px;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:#0c0e15;
}

.store-hero img {
  display:block;
  width:100%;
  height:auto;
}

.store-intro {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,380px);
  gap:36px;
  align-items:center;
  padding:58px 0 38px;
}

.store-eyebrow {
  display:block;
  margin-bottom:10px;
  color:var(--accent);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.18em;
}

.store-intro h1,
.store-browser h2 {
  margin:0;
}

.store-intro h1 {
  max-width:820px;
  font-size:clamp(2.4rem,6vw,5.6rem);
  line-height:.96;
  letter-spacing:-.05em;
}

.store-intro p {
  max-width:680px;
  margin:24px 0 0;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
}

.store-intro__card {
  display:block;
  width:100%;
  border-radius:18px;
  border:1px solid var(--line);
}

.store-status {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  margin-bottom:52px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(17,19,28,.8);
}

.store-status > div {
  padding:26px;
  text-align:center;
}

.store-status > div + div {
  border-left:1px solid var(--line);
}

.store-status strong {
  display:block;
  margin-bottom:5px;
  font-size:1.6rem;
}

.store-status span {
  color:var(--muted);
  font-size:.88rem;
}

.store-browser {
  padding-bottom:72px;
}

.store-browser__head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}

.store-browser h2 {
  font-size:clamp(2rem,4vw,3.4rem);
}

.store-search {
  width:min(440px,100%);
}

.store-search input {
  width:100%;
  min-height:52px;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:14px;
  outline:none;
  background:var(--panel);
  color:white;
  font:inherit;
}

.store-search input:focus {
  border-color:rgba(187,162,255,.7);
}

.store-notice {
  margin:0 0 24px;
  padding:14px 18px;
  border:1px solid rgba(187,162,255,.28);
  border-radius:12px;
  background:rgba(187,162,255,.07);
  color:#d8ceff;
  font-size:.9rem;
}

.store-results {
  display:grid;
  grid-template-columns:
    repeat(auto-fill,minmax(235px,1fr));
  gap:18px;
}

.store-product {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
}

.store-product__art {
  aspect-ratio:1.45/1;
  overflow:hidden;
  background:#0c0e15;
}

.store-product__art img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.store-product__body {
  padding:16px;
}

.store-product__title {
  margin:0;
  font-size:1rem;
  line-height:1.35;
}

.store-product__artist,
.store-product__album {
  margin-top:6px;
  overflow:hidden;
  color:var(--muted);
  font-size:.83rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.store-product__foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:17px;
}

.store-product__price {
  font-size:1.18rem;
  font-weight:800;
}

.store-product__state {
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.store-empty {
  grid-column:1/-1;
  padding:80px 20px;
  border:1px dashed var(--line);
  border-radius:18px;
  color:var(--muted);
  text-align:center;
}

.store-load-more {
  display:block;
  min-width:170px;
  margin:30px auto 0;
  padding:13px 20px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:white;
  cursor:pointer;
  font:inherit;
  font-weight:700;
}

.store-footer {
  padding:28px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.85rem;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

@media (max-width:760px) {

  .store-nav {
    gap:12px;
    font-size:.8rem;
  }

  .store-intro {
    grid-template-columns:1fr;
    padding-top:38px;
  }

  .store-intro__card {
    max-width:420px;
  }

  .store-status {
    grid-template-columns:1fr;
  }

  .store-status > div + div {
    border-left:0;
    border-top:1px solid var(--line);
  }

  .store-browser__head {
    align-items:stretch;
    flex-direction:column;
  }

  .store-search {
    width:100%;
  }

}

@media (max-width:480px) {

  .store-shell {
    width:min(100% - 20px,1400px);
  }

  .store-nav a:nth-child(1) {
    display:none;
  }

  .store-results {
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .store-product__body {
    padding:12px;
  }

}

/*
 * ================================================================
 * AIOS STORE — CLIENT CART + PERSONAL ALBUM BUILDER V1
 * ================================================================
 */

.store-product__actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-top:12px;
}

.store-product__select {
  width:100%;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
}

.store-product__select:hover {
  border-color:rgba(187,162,255,.65);
}

.store-product__select[aria-pressed="true"] {
  background:rgba(187,162,255,.18);
  border-color:rgba(187,162,255,.55);
}

.store-cart {
  margin-top:56px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    linear-gradient(
      180deg,
      rgba(23,26,37,.96),
      rgba(12,14,21,.98)
    );
}

.store-cart__head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:24px;
}

.store-cart__head h2 {
  margin:0;
  font-size:clamp(1.8rem,4vw,3rem);
}

.store-cart__head p {
  max-width:680px;
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.store-cart__clear {
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

.store-cart__name {
  margin-top:26px;
}

.store-cart__name label {
  display:block;
  margin-bottom:8px;
  font-size:.82rem;
  font-weight:800;
}

.store-cart__name input {
  width:100%;
  min-height:50px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
  background:#0c0e15;
  color:white;
  font:inherit;
}

.store-cart__items {
  display:grid;
  gap:8px;
  max-height:420px;
  overflow:auto;
  margin-top:22px;
}

.store-cart__empty {
  padding:34px 18px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
  text-align:center;
}

.store-cart-item {
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0c0e15;
}

.store-cart-item img {
  width:54px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
}

.store-cart-item__title {
  overflow:hidden;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.store-cart-item__meta {
  margin-top:3px;
  overflow:hidden;
  color:var(--muted);
  font-size:.76rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.store-cart-item__price {
  font-weight:800;
}

.store-cart-item__remove {
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

.store-cart__summary {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:22px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
}

.store-cart__summary > div {
  padding:18px;
  text-align:center;
}

.store-cart__summary > div + div {
  border-left:1px solid var(--line);
}

.store-cart__summary span {
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:.75rem;
}

.store-cart__summary strong {
  font-size:1.25rem;
}

.store-cart__build {
  width:100%;
  min-height:52px;
  margin-top:18px;
  border:1px solid rgba(187,162,255,.55);
  border-radius:13px;
  background:rgba(187,162,255,.16);
  color:white;
  cursor:pointer;
  font:inherit;
  font-weight:850;
}

.store-cart__build:disabled {
  cursor:not-allowed;
  opacity:.4;
}

.store-cart__quote {
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(187,162,255,.35);
  border-radius:14px;
  background:rgba(187,162,255,.08);
}

.store-cart__quote h3 {
  margin:0 0 8px;
}

.store-cart__quote p {
  margin:5px 0;
  color:var(--muted);
}

.store-cart__quote strong {
  color:white;
}

.store-cart__disclaimer {
  margin:14px 0 0;
  color:var(--muted);
  font-size:.78rem;
  text-align:center;
}

@media (max-width:700px) {

  .store-cart {
    padding:20px 14px;
  }

  .store-cart__head {
    flex-direction:column;
  }

  .store-cart__summary {
    grid-template-columns:1fr;
  }

  .store-cart__summary > div + div {
    border-left:0;
    border-top:1px solid var(--line);
  }

  .store-cart-item {
    grid-template-columns:46px minmax(0,1fr) auto;
  }

  .store-cart-item img {
    width:46px;
    height:38px;
  }

  .store-cart-item__price {
    display:none;
  }
}

/*
 * ================================================================
 * AIOS STORE — TRUSTED SERVER PREVIEW V1
 * ================================================================
 */

.store-cart__verified {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:12px;
  padding:7px 11px;
  border:1px solid rgba(140,255,190,.34);
  border-radius:999px;
  background:rgba(140,255,190,.08);
  font-size:.75rem;
  font-weight:850;
  letter-spacing:.04em;
}

.store-cart__verify-error {
  display:inline-flex;
  margin-bottom:10px;
  padding:7px 11px;
  border:1px solid rgba(255,150,150,.32);
  border-radius:999px;
  background:rgba(255,150,150,.07);
  font-size:.75rem;
  font-weight:850;
}

/*
 * ================================================================
 * AIOS STORE — MEMBER CONTINUITY + ORDER INTENT V1
 * ================================================================
 */

.store-member-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 24px;
  padding:15px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}

.store-member-context > div {
  min-width:0;
}

.store-member-context__label {
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.store-member-context strong {
  display:block;
}

.store-member-context #storeMemberDetail {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.8rem;
}

.store-member-context__login,
.store-intent__action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 15px;
  border:1px solid rgba(187,162,255,.42);
  border-radius:999px;
  background:rgba(187,162,255,.1);
  color:white;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-size:.8rem;
  font-weight:800;
}

.store-intent {
  margin-top:18px;
  padding:17px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0c0e15;
}

.store-intent__status {
  display:inline-flex;
  margin-bottom:9px;
  padding:6px 9px;
  border:1px solid rgba(187,162,255,.3);
  border-radius:999px;
  color:#d8ceff;
  font-size:.7rem;
  font-weight:850;
}

.store-intent__actions {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}

.store-intent__action--cancel {
  border-color:rgba(255,150,150,.28);
  background:rgba(255,150,150,.05);
}

.store-intent__message {
  margin-top:10px;
  color:var(--muted);
  font-size:.8rem;
}

@media (max-width:600px) {
  .store-member-context {
    align-items:flex-start;
    flex-direction:column;
  }
}

/* =====================================================================
   AIOS STORE V1 — PHASE 4 PART 6
   CUSTOMER SUBSCRIPTION EXPERIENCE
   ===================================================================== */

.store-subscription {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(20,25,37,.98),
      rgba(9,12,19,.98)
    );
}

.store-subscription__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.store-subscription__eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.store-subscription__head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.store-subscription__price {
  flex: 0 0 auto;
  text-align: right;
}

.store-subscription__price strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.store-subscription__price span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  opacity: .7;
}

.store-subscription__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(244,196,48,.26);
  border-radius: 12px;
  background: rgba(244,196,48,.06);
  font-size: 13px;
  line-height: 1.5;
}

.store-subscription__prices {
  display: grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.store-subscription__price-card {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.store-subscription__price-card span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .65;
}

.store-subscription__price-card strong {
  font-size: 18px;
}

.store-subscription__status {
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.store-subscription__status-label {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .65;
}

.store-subscription__status strong {
  display: block;
  font-size: 17px;
}

.store-subscription__detail {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: .72;
}

.store-subscription__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.store-subscription__action {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.store-subscription__action[disabled] {
  cursor: not-allowed;
  opacity: .45;
}

.store-subscription__login {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 720px) {

  .store-subscription__head {
    flex-direction: column;
  }

  .store-subscription__price {
    text-align: left;
  }

  .store-subscription__prices {
    grid-template-columns: 1fr;
  }
}
