/* Astrology Bits app shell — Celestial Romance */

.ab-app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.ab-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.ab-account-wrap {
  position: relative;
}

.ab-account-btn {
  font-family: var(--font-sans, system-ui, sans-serif);
  background: var(--color-navy, #1a2332);
  color: var(--color-paper, #faf8f5);
  border: 1px solid var(--color-rose-gold, #d4a5a5);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
}

.ab-avatar {
  border-radius: 50%;
  display: block;
}

.ab-account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
  min-width: 240px;
  padding: 0.75rem;
  z-index: 50;
}

.ab-account-menu.open {
  display: block;
}

.ab-account-menu a,
.ab-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.55rem 0.4rem;
  font: inherit;
  color: var(--color-link, #6b5b95);
  cursor: pointer;
}

.ab-menu-user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0.4rem 0.75rem;
  border-bottom: 1px solid var(--color-border, #e8e5e0);
  margin-bottom: 0.35rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.9rem;
}

.ab-menu-hint {
  font-size: 0.9rem;
  color: var(--color-ink-medium, #4a4a4a);
  margin-bottom: 0.75rem;
}

.ab-zone {
  background: #fff;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.04);
}

.ab-zone h2 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  color: var(--color-navy, #1a2332);
}

.ab-lead {
  color: var(--color-ink-medium, #4a4a4a);
  margin-bottom: 1rem;
}

.ab-muted {
  color: var(--color-ink-light, #757575);
  font-size: 0.95rem;
}

.ab-tiny {
  font-size: 0.8rem;
}

.ab-btn {
  font-family: var(--font-sans, system-ui, sans-serif);
  border: 1px solid var(--color-border, #e8e5e0);
  background: #fff;
  color: var(--color-navy, #1a2332);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.ab-btn-primary {
  background: var(--color-navy, #1a2332);
  color: var(--color-paper, #faf8f5);
  border-color: var(--color-navy, #1a2332);
}

.ab-btn:hover {
  opacity: 0.92;
}

.ab-form {
  display: grid;
  gap: 0.65rem;
}

.ab-form label {
  display: grid;
  gap: 0.25rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.9rem;
}

.ab-form input,
.ab-form select {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 8px;
  background: #fff;
}

.ab-place-picker {
  display: grid;
  gap: 0.5rem;
}

.ab-place-search-label {
  display: grid;
  gap: 0.25rem;
}

.ab-place-map {
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e8e5e0);
  overflow: hidden;
  z-index: 1;
}

.ab-place-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 8px;
  background: #fff;
  max-height: 180px;
  overflow-y: auto;
}

.ab-place-results button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.ab-place-results button:hover {
  background: rgba(107, 91, 149, 0.08);
}

.ab-place-chosen {
  margin: 0;
}

.ab-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ab-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.ab-card {
  background: var(--color-paper, #faf8f5);
  border-radius: 10px;
  padding: 0.9rem;
  border: 1px solid var(--color-border, #e8e5e0);
}

.ab-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--color-link, #6b5b95);
}

.ab-card p {
  margin: 0;
  font-size: 0.98rem;
}

.ab-sign-pill {
  display: inline-block;
  background: rgba(107, 91, 149, 0.12);
  color: var(--color-link, #6b5b95);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.ab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ab-pulse {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ab-pulse-gauge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--color-link, #6b5b95) calc(var(--score) * 1%),
    #e8e5e0 0
  );
  position: relative;
}

.ab-pulse-gauge::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 50%;
}

.ab-pulse-score {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-navy, #1a2332);
}

.ab-band {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.ab-people {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
}

.ab-person button {
  border: none;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--compat, #6b5b95);
  font: inherit;
}

.ab-person-score {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-weight: 600;
  color: var(--compat, #6b5b95);
}

.ab-person-score-lg {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.ab-reading {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--color-paper, #faf8f5);
  border-radius: 10px;
  border-left: 3px solid var(--color-link, #6b5b95);
}

.ab-status {
  min-height: 1.4rem;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.95rem;
  color: var(--color-ink-medium, #4a4a4a);
  margin-bottom: 0.75rem;
}

.ab-status.is-error {
  color: #9b2226;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.ab-status.is-success {
  color: #1b4332;
  background: #d8f3dc;
  border: 1px solid #95d5b2;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
}

.ab-save-feedback {
  display: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.95rem;
}

.ab-save-feedback.is-visible {
  display: block;
}

.ab-save-feedback.is-pending {
  color: #4a4a4a;
  background: #f3f0ea;
  border: 1px solid #e8e5e0;
}

.ab-save-feedback.is-success {
  color: #1b4332;
  background: #d8f3dc;
  border: 1px solid #95d5b2;
  font-weight: 600;
}

.ab-save-feedback.is-error {
  color: #9b2226;
  background: #fdecea;
  border: 1px solid #f5c2c0;
}

.ab-btn.is-saved {
  background: #2d6a4f;
  border-color: #2d6a4f;
}

.ab-product-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 0.85rem;
}

.ab-product-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.ab-price {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: right;
}

.ab-product-buy {
  flex-shrink: 0;
  text-align: right;
}

.ab-balance {
  font-size: 0.9rem;
  color: var(--color-ink-medium, #4a4a4a);
}

.app-cta-promo {
  margin-top: 1.25rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--color-border, #e8e5e0);
  border-radius: 10px;
}

.app-cta-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none !important;
}

.app-cta-title {
  font-weight: 600;
  color: var(--color-navy, #1a2332);
}

.app-cta-sub {
  font-size: 0.85rem;
  color: var(--color-ink-medium, #4a4a4a);
}

/* Homepage uses single column full width for app */
main:has(.ab-app) {
  display: block;
  max-width: 100%;
}
