/* Shared page shells: bento tiles, shop river, product, forms, policy plates */

.a58-tile {
  background: rgba(16, 22, 32, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.a58-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 232, 181, 0.4);
}
.a58-tile-shot {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--night-2);
  position: relative;
}
.a58-tile-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.a58-tile:hover .a58-tile-shot img { transform: scale(1.06); }
.a58-tile-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--glass-border);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.a58-tile-body { padding: 1rem 1.05rem 1.15rem; }
.a58-tile-aisle {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 0.35rem;
}
.a58-tile-body h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}
.a58-tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--phosphor);
  font-size: 0.95rem;
}
.a58-tile-foot span { color: var(--muted); font-size: 0.75rem; }

.a58-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.a58-bento > .a58-tile:nth-child(1) { grid-column: span 5; }
.a58-bento > .a58-tile:nth-child(2) { grid-column: span 4; }
.a58-bento > .a58-tile:nth-child(3) { grid-column: span 3; }
.a58-bento > .a58-tile:nth-child(4) { grid-column: span 4; }
.a58-bento > .a58-tile:nth-child(5) { grid-column: span 4; }
.a58-bento > .a58-tile:nth-child(6) { grid-column: span 4; }
.a58-bento > .a58-tile:nth-child(n+7) { grid-column: span 3; }

.a58-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.a58-hero {
  padding: 1rem 0 3.5rem;
}
.a58-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.a58-hero-copy h1 em {
  font-style: italic;
  color: var(--phosphor);
  font-weight: 500;
}
.a58-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.2rem;
}
.a58-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.a58-hero-meta span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}
.a58-hero-portrait {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.a58-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.a58-hero-float {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.a58-hero-float strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.a58-hero-float small { color: var(--muted); }

.a58-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.a58-lane {
  padding: 1.3rem;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.a58-lane:nth-child(2) { background: rgba(232, 144, 74, 0.1); }
.a58-lane:nth-child(3) { background: rgba(139, 124, 255, 0.1); }
.a58-lane h3 { margin: 0.4rem 0 0; font-family: var(--display); font-size: 1.5rem; }
.a58-lane span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.a58-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.a58-section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
}
.a58-tabs { display: flex; gap: 0.4rem; }
.a58-tabs button {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.a58-tabs button.is-active {
  color: #07110d;
  background: var(--phosphor);
  border-color: var(--phosphor);
}

.a58-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 3rem 0 1rem;
}
.a58-stat {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.a58-stat strong { display: block; font-family: var(--display); font-size: 1.4rem; }
.a58-stat span { color: var(--muted); font-size: 0.82rem; }

.a58-page-intro {
  padding: 0.5rem 0 1.8rem;
}
.a58-page-intro h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.a58-page-intro h1 em { font-style: italic; color: var(--kiln); }

.a58-river {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}
.a58-river a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.a58-river a.active,
.a58-river a:hover {
  background: var(--phosphor);
  color: #07110d;
  border-color: var(--phosphor);
}

.a58-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.a58-shop-grid .a58-tile:nth-child(3n+2) { margin-top: 18px; }
.a58-shop-toolbar {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.a58-product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
}
.a58-product-shot {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 520px;
}
.a58-product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}
.a58-buy {
  position: sticky;
  top: 7rem;
  padding: 1.6rem;
}
.a58-buy h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.4rem 0 0.8rem;
  line-height: 1.1;
}
.a58-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}
.a58-specs div {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 234, 0.04);
  border: 1px solid var(--line);
}
.a58-specs dt { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.a58-specs dd { margin: 0.15rem 0 0; }
.a58-buy-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}
.a58-buy-form select {
  background: var(--night-2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  min-width: 5rem;
}
.a58-price { font-family: var(--display); font-size: 2rem; color: var(--phosphor); }

.a58-form label,
.a58-field {
  display: block;
  margin-bottom: 0.9rem;
}
.a58-form input,
.a58-form select,
.a58-form textarea,
.a58-field input,
.a58-field select,
.a58-field textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(7, 9, 14, 0.45);
  outline: none;
}
.a58-form input:focus,
.a58-form textarea:focus,
.a58-field input:focus,
.a58-field textarea:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 3px var(--phosphor-glow);
}

.a58-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 2rem 0 0;
}
.a58-pagination a,
.a58-pagination span {
  min-width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
}
.a58-pagination .is-current {
  background: var(--phosphor);
  color: #07110d;
  border-color: var(--phosphor);
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.auth-split-tab.is-active { color: var(--phosphor); }
.dash-panel { display: none; }
.dash-panel.is-active { display: block; }

.catalog-pagination { margin-top: 2rem; }
.pagination-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pagination-pages { display: flex; gap: 0.35rem; }
.pagination-btn,
.pagination-num {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.pagination-num.is-active,
.pagination-btn:hover,
.pagination-num:hover {
  background: var(--phosphor);
  color: #07110d;
  border-color: var(--phosphor);
}
.pagination-btn.is-disabled { opacity: 0.35; pointer-events: none; }

.a58-ledger { display: flex; flex-direction: column; gap: 0.8rem; }
.a58-entry {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.a58-entry-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 0.8rem;
}
.a58-entry-date .a58-day { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.a58-entry-date span { color: var(--muted); font-size: 0.75rem; }
.a58-entry-head { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.78rem; color: var(--phosphor); }
.a58-entry h3 { margin: 0.3rem 0 0.5rem; font-family: var(--display); font-size: 1.15rem; }
.a58-entry-meta { display: flex; gap: 1rem; color: var(--muted); font-size: 0.85rem; margin: 0 0 0.6rem; }
.a58-entry-foot { display: flex; justify-content: space-between; align-items: center; }

.a58-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  margin-bottom: 0.7rem;
}
.a58-row img { width: 4.2rem; height: 4.2rem; object-fit: cover; border-radius: 12px; }
.a58-qty { display: flex; align-items: center; gap: 0.3rem; }
.a58-qty button {
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 1px solid var(--glass-border); background: transparent; color: var(--ink);
}
.a58-qty input {
  width: 3rem; text-align: center;
  background: transparent; border: 0; color: var(--ink);
}

.a58-policy-spine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.a58-policy-spine a {
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
}
.a58-policy-spine a.is-active {
  background: var(--iris);
  color: #0b0818;
  border-color: var(--iris);
}
.a58-plate {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.a58-plate h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.4rem; }
.a58-plate h2 { font-family: var(--display); font-size: 1.25rem; margin: 1.8rem 0 0.6rem; color: var(--phosphor); }
.a58-plate p, .a58-plate li { color: var(--ink-soft); line-height: 1.8; }
.a58-plate ul { padding-left: 1.2rem; }
.a58-callout {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(62, 232, 181, 0.08);
  border: 1px solid rgba(62, 232, 181, 0.25);
}

.a58-faq button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-weight: 600;
}
.a58-faq article {
  border-bottom: 1px solid var(--line);
}
.a58-faq-body { display: none; color: var(--ink-soft); padding-bottom: 0.9rem; }
.a58-faq article.is-open .a58-faq-body { display: block; }

.a58-pulse {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}
.a58-pulse div {
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px dashed var(--glass-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.a58-pulse div.is-done { border-style: solid; color: var(--phosphor); border-color: var(--phosphor); }
.a58-pulse div.is-live { background: rgba(62, 232, 181, 0.12); color: var(--ink); }

@media (max-width: 760px) {
  .a58-row { grid-template-columns: 4.2rem 1fr; }
  .a58-entry { grid-template-columns: 1fr; }
  .a58-pulse { grid-template-columns: 1fr 1fr; }
}

