:root {
  color-scheme: dark;
  --bg-top: #120022;
  --bg-bottom: #060113;
  --panel-purple: rgba(82, 17, 116, 0.72);
  --panel-border: rgba(255, 215, 109, 0.5);
  --gold-1: #fff1a5;
  --gold-2: #ffca55;
  --gold-3: #c87512;
  --violet-1: #dca7ff;
  --violet-2: #8c47f3;
  --violet-3: #4b127f;
  --card-bg: #ffffff;
  --text-main: #161616;
  --text-muted: #666666;
  --line-color: #d8d8d8;
  --success: #226442;
  --danger: #aa2d42;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(190, 88, 255, 0.34), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 200, 96, 0.18), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(120, 180, 255, 0.15), transparent 15%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 220, 153, 0.7) 0 1px, transparent 1px);
  background-size: 46px 46px, 72px 72px;
  background-position: 0 0, 20px 12px;
  opacity: 0.35;
  pointer-events: none;
}

.app-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 20px 14px 32px;
  position: relative;
  overflow-x: clip;
}

.hero-panel,
.portal-panel,
.selector-panel,
.content-hub,
.status-message,
.reading-card,
.auth-card,
.member-reading-card,
.content-card {
  position: relative;
  z-index: 1;
}

.hero-panel {
  margin-bottom: 16px;
}

.hero-frame {
  position: relative;
  padding: 18px 14px 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(43, 5, 67, 0.92), rgba(24, 5, 43, 0.88)),
    var(--panel-purple);
  border: 1px solid rgba(255, 227, 151, 0.35);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 30px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-app-title {
  margin: 0 10px 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.68rem, 2.9vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
  color: rgba(255, 236, 200, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 232, 173, 0.28);
  color: #fff2c0;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-menu-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-menu-current {
  cursor: default;
  opacity: 0.92;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 173, 0.35);
}

.charms-store-cta-wrap {
  margin-top: 18px;
}

/* Home: one title, painted on the hero card (PNG slot text masked via npm run mask-hero-title). */
.hero-title-on-hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  margin: 0 !important;
  padding: 10px 12px 28px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 3, 14, 0.97) 0%,
    rgba(10, 5, 20, 0.9) 28%,
    rgba(18, 7, 31, 0.65) 48%,
    rgba(18, 7, 31, 0.18) 75%,
    rgba(18, 7, 31, 0) 100%
  );
}

.hero-title-home {
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.08;
}

.hero-title-home .hero-title-line {
  display: block;
  letter-spacing: 0.06em;
}

.hero-title-home .hero-title-line--lucky {
  margin-top: 0;
  font-size: clamp(1.5rem, 6.2vw, 2.35rem);
  font-weight: 700;
  color: #fffefb;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(200, 180, 255, 0.25);
}

.hero-title-home .hero-title-line--charms {
  margin-top: 2px;
  font-size: clamp(1.65rem, 7vw, 2.72rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 6%, #f2e4ff 35%, #c19cff 68%, #8648e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-font-smoothing: antialiased;
  /* One glow only — two drop-shadows looked like a second “CHARMS &” behind the first */
  filter: drop-shadow(0 2px 6px rgba(20, 8, 45, 0.75));
}

.hero-title-home .hero-title-line--gold {
  margin-top: 8px;
  font-size: clamp(1.42rem, 5.4vw, 2.1rem);
  color: #ffcd4d;
  text-shadow: 0 2px 0 #6d1700, 0 5px 14px rgba(0, 0, 0, 0.45);
}

.hero-scene-wrap {
  position: relative;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #12071f;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1 / 1.24;
}

.hero-panel--full-bleed .hero-scene-wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Home hero: portrait frame for phones (taller than wide); crops wide/landscape art to center column */
.hero-scene-wrap.hero-scene-wrap--portrait-phone {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 100%;
  max-height: min(78dvh, 720px);
  margin-left: auto;
  margin-right: auto;
}

.hero-panel--full-bleed .hero-scene-wrap.hero-scene-wrap--portrait-phone {
  max-height: min(78dvh, 720px);
}

.hero-panel--full-bleed .hero-scene-wrap::before {
  border-radius: 0;
}

/* Top scrim: menu contrast; lighter when hero title is baked into the image */
.hero-scene-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: clamp(72px, 22%, 160px);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(
    180deg,
    rgba(4, 2, 10, 0.58) 0%,
    rgba(10, 5, 20, 0.38) 45%,
    rgba(18, 7, 31, 0.08) 78%,
    rgba(18, 7, 31, 0) 100%
  );
}

.hero-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.4);
  transform-origin: center top;
}

/* Home hero: fill frame edge-to-edge; extra scale on full-bleed to kill side gutters from asset. */
.hero-scene-wrap .hero-scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.16);
  transform-origin: center center;
}

.hero-panel--full-bleed .hero-scene-wrap .hero-scene-image {
  transform: scale(1.28);
  object-position: center 19%;
}

/* Feng Shui Master: portrait crop — fill 9:16 box; center column if source is landscape */
.hero-panel--full-bleed .hero-scene-wrap .hero-scene-image--feng-shui-master,
.hero-scene-wrap--portrait-phone .hero-scene-image--feng-shui-master {
  transform: none;
  object-fit: cover;
  object-position: center 10%;
}

/* Zoom slightly when asset is very wide so side panels / empty wings are cropped away */
@media (max-width: 430px) {
  .hero-panel--full-bleed .hero-scene-wrap--portrait-phone .hero-scene-image--feng-shui-master {
    transform: scale(1.12);
    transform-origin: center center;
  }
}

/* Service strip on home hero (over image bottom) */
.hero-scene-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 12px 10px 14px;
  text-align: center;
  font-size: clamp(0.56rem, 2.35vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #fff3c9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(120, 40, 180, 0.35);
  background: linear-gradient(
    0deg,
    rgba(6, 2, 14, 0.96) 0%,
    rgba(12, 4, 26, 0.82) 42%,
    rgba(20, 8, 40, 0.35) 72%,
    transparent 100%
  );
  pointer-events: none;
}

/* In-caption jump links: parent is non-interactive so the image stays swipe-safe. */
.hero-scene-caption-link {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-scene-caption-link:hover {
  text-decoration: underline;
  color: #fff8e0;
}

.hero-scene-caption-sep {
  display: inline;
  opacity: 0.65;
  padding: 0 0.2em;
  font-weight: 600;
}

@media (max-width: 360px) {
  .hero-scene-caption {
    font-size: 0.52rem;
    letter-spacing: 0.035em;
    padding: 10px 6px 12px;
  }
}

.hero-promo {
  margin: 14px 6px 0;
  text-align: center;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #fff0bd;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

.hero-title {
  margin-top: 16px;
  text-align: center;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  line-height: 0.92;
}

.hero-title-top,
.hero-title-bottom {
  display: block;
  letter-spacing: 0.04em;
}

.hero-title-top {
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  color: #ffcd4d;
  text-shadow:
    0 2px 0 #6d1700,
    0 6px 12px rgba(0, 0, 0, 0.35);
}

.hero-title-bottom {
  margin-top: 6px;
  font-size: clamp(2.1rem, 8vw, 3rem);
  color: #efdcff;
  text-shadow:
    0 2px 0 #4b157d,
    0 6px 18px rgba(155, 80, 255, 0.45);
}

.hero-title-legal {
  line-height: 1;
}

.selector-panel,
.status-message,
.reading-card,
.auth-card,
.member-reading-card,
.content-card {
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.portal-panel,
.content-hub {
  margin-bottom: 16px;
}

.stacked-member-reading {
  margin-top: 16px;
}

.portal-grid,
.personalized-grid {
  display: grid;
  gap: 16px;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card,
.member-reading-card,
.content-card {
  padding: 16px;
  background: rgba(14, 9, 34, 0.72);
  border: 1px solid rgba(255, 228, 158, 0.2);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading h3,
.section-heading p,
.content-card h3,
.content-card h4 {
  margin: 0;
}

.section-heading p,
.muted-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.compact-heading {
  margin-top: 18px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-form h3 {
  margin: 0;
}

.text-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 223, 141, 0.34);
  border-radius: 14px;
  background: #fff;
  color: #161616;
  font: inherit;
}

.file-control {
  padding: 10px;
}

.inline-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.selector-panel {
  padding: 16px;
  background: rgba(14, 9, 34, 0.72);
  border: 1px solid rgba(255, 228, 158, 0.2);
}

.selector-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.98rem;
  font-weight: 700;
}

.selector-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-control,
.primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 223, 141, 0.34);
  font-size: 1rem;
}

.dropdown-control {
  padding: 0 14px;
  background: #fff;
  color: #161616;
}

.primary-button {
  border: none;
  font-weight: 800;
  color: #301049;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe698, #fcbf3c 50%, #d17a16);
  box-shadow:
    0 4px 0 rgba(120, 62, 8, 0.45),
    0 10px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.03);
}

.primary-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(120, 62, 8, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.2);
  filter: brightness(0.94);
}

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

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  filter: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.secondary-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 223, 141, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.08s ease,
    border-color 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.secondary-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 223, 141, 0.48);
}

.secondary-button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.secondary-button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.secondary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Side-by-side language actions (Taglish primary + English secondary) */
.personalized-lang-row .secondary-button,
.profile-modal-lang-row .secondary-button,
.personalized-lang-row .primary-button,
.profile-modal-lang-row .primary-button {
  flex: 1 1 calc(50% - 4px);
  width: auto;
  min-width: 0;
}

.personalized-lang-row .secondary-button,
.profile-modal-lang-row .secondary-button {
  min-height: 48px;
}

.selector-help {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.status-message {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.readings-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.readings-feed--idle {
  min-height: 0;
}

.readings-feed-hint {
  margin: 0;
  line-height: 1.5;
}

.personalized-enrichment-notice {
  margin: 0 0 12px;
}

.legal-card {
  padding: 18px 16px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 1;
}

.legal-card .section-heading p {
  color: var(--text-muted);
}

.legal-section + .legal-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-color);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.legal-section p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-highlight {
  margin: 20px 0;
  padding: 12px 14px;
  border-left: 5px solid #8a6d3b;
  border-radius: 12px;
  background: #fcf8e3;
  color: #4a3b14;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 8px;
}

.contact-info {
  padding: 15px;
  border-radius: 12px;
  background: #f4f4f4;
}

.contact-info p {
  margin: 0 0 10px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

.auth-guest-view,
.auth-member-view,
.personalized-reading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-flow-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-flow-message.error {
  background: rgba(170, 45, 66, 0.18);
  border-color: rgba(255, 141, 161, 0.35);
}

.auth-flow-message.success {
  background: rgba(34, 100, 66, 0.22);
  border-color: rgba(118, 222, 172, 0.3);
}

.auth-flow-message.info {
  background: rgba(255, 230, 140, 0.12);
  border-color: rgba(255, 223, 141, 0.28);
  color: rgba(255, 244, 200, 0.96);
}

.app-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#signup-privacy-modal {
  z-index: 2150;
}

.app-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 14, 0.72);
  backdrop-filter: blur(4px);
}

.app-alert-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(43, 5, 67, 0.98), rgba(24, 5, 43, 0.98));
  border: 1px solid rgba(255, 227, 151, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.app-alert-panel h3 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 1.08rem;
  color: #fff0bd;
}

.app-alert-message {
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.app-alert-panel .primary-button {
  width: 100%;
}

.app-alert-panel--privacy {
  width: min(100%, 440px);
}

.app-alert-message--privacy {
  margin-bottom: 14px;
}

.app-alert-message--privacy p {
  margin: 0 0 10px;
}

.app-alert-message--privacy p:last-child {
  margin-bottom: 0;
}

.app-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-alert-actions .primary-button {
  width: 100%;
}

a.app-alert-link-button.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.signup-kabbalah-hint {
  margin: -4px 0 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-switch-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.auth-switch-button {
  padding: 0;
  border: none;
  background: transparent;
  color: #fff2c0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    opacity 0.08s ease,
    color 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-switch-button:active {
  transform: translateY(2px);
  opacity: 0.82;
  color: #ffe08a;
}

.profile-block,
.personalized-enrichment-notice,
.empty-state,
.missing-state,
.content-item,
.mini-card,
.tarot-wrap {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-block,
.personalized-enrichment-notice,
.empty-state,
.missing-state,
.content-item,
.tarot-wrap {
  padding: 14px;
}

.content-item-feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline-offset: 2px;
}

.content-item--cod-feature .content-item-feature-link:hover {
  filter: brightness(1.06);
}

.tarot-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 8px;
  justify-content: center;
}

.tarot-card-thumb {
  margin: 0;
  text-align: center;
  max-width: 120px;
}

a.tarot-card-img-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

a.tarot-card-img-link:focus-visible {
  outline: 2px solid #fff1a5;
  outline-offset: 3px;
}

a.tarot-card-img-link:hover .tarot-card-img {
  filter: brightness(1.08);
}

.tarot-card-img {
  display: block;
  width: 100%;
  max-width: 110px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 227, 151, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.tarot-card-thumb--missing {
  display: none;
}

.personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-placeholder .tarot-card-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255, 240, 210, 0.95);
  border-radius: 12px;
  border: 2px solid rgba(255, 227, 151, 0.5);
  background: linear-gradient(160deg, rgba(45, 20, 80, 0.95), rgba(15, 8, 35, 0.98));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.tarot-card-caption {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 244, 220, 0.88);
}

.tarot-card-names {
  margin: 0;
  text-align: center;
}

.personalized-enrichment-notice p {
  margin: 0;
  line-height: 1.55;
}

.personalized-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.personalized-prompt .muted-copy {
  margin: 0;
  line-height: 1.55;
}

.missing-state-text {
  margin: 0 0 10px;
  line-height: 1.55;
}

.personalized-refresh {
  margin-top: 10px;
  align-self: flex-start;
}

.personalized-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.personalized-result-stack {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 227, 151, 0.15);
}

.personalized-section-heading {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f5d78a;
}

.personalized-reading-detail {
  margin-top: 14px;
}

.personalized-daily-tarot-cards {
  margin-bottom: 0;
}

.personalized-luck-metadata {
  margin: 0 0 16px;
}

.personalized-luck-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.personalized-five-reel-heading {
  margin: 6px 0 6px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: rgba(255, 236, 200, 0.96);
}

.personalized-five-reel-lead {
  margin: 0 0 14px;
  line-height: 1.45;
}

.personalized-five-reel-spread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.personalized-reel-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.personalized-reel-slot-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 223, 141, 0.88);
}

.personalized-reel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.personalized-reel-copy {
  flex: 1;
  min-width: 200px;
}

.personalized-reel-card-name {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: rgba(255, 245, 220, 0.98);
}

.personalized-reel-paragraph {
  margin: 0 0 8px;
  line-height: 1.5;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.personalized-reel-focus {
  color: rgba(255, 230, 170, 0.92);
}

.personalized-reel-figure {
  flex-shrink: 0;
}

.personalized-padrino-wrap {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(80, 40, 120, 0.45), rgba(20, 8, 40, 0.65));
  border: 1px solid rgba(255, 227, 151, 0.28);
}

.personalized-padrino-heading {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: rgba(255, 236, 200, 0.95);
}

.personalized-padrino-text {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  color: rgba(255, 248, 225, 0.94);
}

.profile-modal-face-row {
  margin: 0 0 14px;
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-modal-face-copy {
  margin: 0 0 10px;
  line-height: 1.55;
}

.profile-modal-face-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-modal-face-reading {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-modal-face-reading-heading {
  margin: 0 0 6px;
}

.profile-modal-face-lead {
  margin: 0 0 12px;
  line-height: 1.55;
}

.profile-modal-face-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.profile-modal-palm-reading {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-modal-palm-reading-heading {
  margin: 0 0 6px;
}

.profile-modal-palm-lead {
  margin: 0 0 12px;
  line-height: 1.55;
}

.palm-reading-meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.palm-reading-microlead {
  margin: 0 0 14px;
  font-size: 0.86rem;
}

.palm-reading-field-notes {
  margin: 0 0 8px;
}

.palm-reading-subsection .reading-label {
  font-size: 0.92rem;
}

.palm-reading-destiny {
  margin: 8px 0 14px;
}

.profile-modal-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.annual-reading-copy {
  margin: 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.profile-heading,
.personalized-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.profile-heading h3,
.personalized-header h3,
.content-item h4 {
  margin: 0 0 4px;
}

.pass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe698, #fcbf3c 50%, #d17a16);
  color: #301049;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.profile-entitlements-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.checkout-return-page .checkout-return-intro {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52rem;
}

a.checkout-return-home-link {
  font-weight: 800;
  color: #1a4f8c;
  text-decoration: underline;
}

.personalized-copy,
.mini-value,
.content-item p {
  margin: 0;
  line-height: 1.6;
}

.mini-card {
  padding: 12px 14px;
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-ad-holder {
  min-width: 0;
}

.google-ad-unfilled {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.google-ad-unfilled-label {
  display: block;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.google-ad-unfilled-frame {
  min-height: 250px;
  background: linear-gradient(180deg, rgba(58, 58, 68, 0.4), rgba(32, 32, 42, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-ad-unfilled-frame::after {
  content: "";
  width: 72%;
  max-width: 300px;
  height: 128px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-sizing: border-box;
}

.google-ad-holder .adsbygoogle {
  min-height: 120px;
  width: 100%;
}

.content-item.content-item--okada {
  padding: 0;
  background: transparent;
  border: none;
}

.content-item-okada-link,
.content-item-cod-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  outline-offset: 2px;
}

.content-item-okada-link:hover,
.content-item-cod-link:hover {
  filter: brightness(1.04);
}

.content-item.content-item--cod-thumb {
  padding: 0;
}

.content-item--cod-thumb h4 {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  color: #fff8e8;
}

.content-item--cod-thumb .content-item-okada-body p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.content-item-okada-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.content-item--okada h4 {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  color: #fff8e8;
}

.content-item--okada .content-item-okada-body p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.content-item--okada.bulletin-holder--brass {
  background: linear-gradient(160deg, #2a2318 0%, #14110c 100%);
  border: 2px solid #c9a227;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 150, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(201, 162, 39, 0.1);
}

.content-item--okada.bulletin-holder--neon {
  background: #120a1e;
  border: 1px solid rgba(64, 255, 236, 0.5);
  box-shadow:
    0 0 18px rgba(255, 0, 180, 0.22),
    0 0 22px rgba(64, 255, 236, 0.12),
    inset 0 0 28px rgba(60, 0, 90, 0.35);
}

.content-item--okada.bulletin-holder--velvet {
  background: linear-gradient(165deg, rgba(52, 22, 48, 0.96), rgba(18, 12, 32, 0.98));
  border: 1px solid rgba(180, 120, 200, 0.38);
  box-shadow:
    inset 0 2px 28px rgba(0, 0, 0, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.site-footer {
  padding: 18px 12px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-align: center;
}

.status-message.error {
  background: rgba(170, 45, 66, 0.18);
  border-color: rgba(255, 141, 161, 0.35);
}

.status-message.success {
  background: rgba(34, 100, 66, 0.22);
  border-color: rgba(118, 222, 172, 0.3);
}

.reading-card {
  padding: 0;
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.reading-card-anchor {
  scroll-margin-top: 16px;
}

.reading-header {
  padding: 14px 16px 10px;
}

.sign-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.sign-emoji {
  font-size: 1.7rem;
  line-height: 1;
}

.sign-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.sign-range {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.reading-divider {
  height: 1px;
  background: var(--line-color);
}

.timestamp,
.description-text,
.luck-row {
  padding: 12px 16px;
}

.timestamp {
  margin: 0;
  font-size: 0.98rem;
}

.description-text {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.luck-grid {
  border-top: 1px solid var(--line-color);
}

.luck-row {
  display: grid;
  grid-template-columns: minmax(132px, 42%) 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line-color);
}

.luck-row:first-child {
  border-top: none;
}

.luck-label {
  font-weight: 800;
}

.luck-value {
  color: #222;
}

.profile-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-row-main {
  flex: 1;
  min-width: 0;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 227, 151, 0.55);
  background: linear-gradient(145deg, rgba(80, 36, 120, 0.95), rgba(30, 8, 52, 0.98));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff0bd;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-avatar:hover {
  transform: scale(1.04);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.4);
}

.profile-avatar:active {
  transform: scale(0.96);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.profile-avatar:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.profile-avatar-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.35;
  pointer-events: none;
}

.profile-avatar-initial {
  position: relative;
  z-index: 1;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-shadow: 0 2px 0 #2a063d;
}

.profile-avatar-pending-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3a4a;
  border: 2px solid #2a063d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.profile-avatar-hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.profile-modal-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px;
}

/* Fly layer: below card figures so PNGs / placeholders are never hidden behind it */
.personalized-daily-tarot-cards--dealing > .lt-deal-stage {
  position: relative;
  z-index: 1;
}

#personalized-daily-tarot-cards > .personalized-daily-tarot-fly-root {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.personalized-daily-tarot-cards > .tarot-card-thumb--minor-arcana-spread,
.personalized-daily-tarot-cards > .tarot-card-thumb--minor-arcana-placeholder {
  position: relative;
  z-index: 3;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 14, 0.72);
  backdrop-filter: blur(4px);
}

.profile-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(78vh, 620px);
  overflow-y: auto;
  margin-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding: 18px 16px 20px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(43, 5, 67, 0.98), rgba(24, 5, 43, 0.98));
  border: 1px solid rgba(255, 227, 151, 0.35);
  border-bottom: none;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.profile-modal-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #fff0bd;
}

.profile-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.profile-modal-close:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.14);
}

.profile-modal-empty {
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.profile-modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-modal-actions .primary-button,
.profile-modal-actions .secondary-button {
  width: 100%;
}

.personalized-daily-tarot-cards {
  position: relative;
  min-height: 100px;
  margin: 0 0 0;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(8px, 2vw, 14px);
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 18px;
  border: 1px solid rgba(255, 227, 151, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 540px) {
  .personalized-daily-tarot-cards {
    padding: 12px 8px 14px;
    border-radius: 14px;
  }

  .lt-deal-stage {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .lt-deal-track {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .lt-deck-stack {
    width: 84px;
    height: 132px;
  }

  .lt-deck-sheet {
    width: 78px;
    height: 124px;
    margin-left: -39px;
  }
}

/* —— Daily Minor Arcana: deck → slot deal animation —— */
.personalized-daily-tarot-cards.personalized-daily-tarot-cards--dealing {
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  min-height: 220px;
}

.lt-deal-stage {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px 24px;
  width: 100%;
  transition: opacity 0.35s ease;
}

.lt-deal-stage.lt-deal-stage--finishing .lt-deal-deck {
  opacity: 0;
  transform: scale(0.85) translateX(-12px);
  pointer-events: none;
}

.lt-deal-stage.lt-deal-stage--finishing .lt-slots-label {
  opacity: 0.4;
}

.lt-deal-deck {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 12px;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lt-deck-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 215, 138, 0.75);
}

.lt-deck-stack {
  position: relative;
  width: 96px;
  height: 148px;
}

.lt-deck-sheet {
  position: absolute;
  left: 50%;
  width: 88px;
  height: 140px;
  margin-left: -44px;
  border-radius: 10px;
  border: 2px solid rgba(201, 162, 39, 0.85);
  background:
    linear-gradient(148deg, #1f0f38 0%, #3d1f5c 42%, #1a0d2e 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 24px rgba(255, 210, 120, 0.08);
  transform-origin: 50% 100%;
}

.lt-deck-sheet--a {
  bottom: 0;
  transform: rotate(-2deg);
  z-index: 3;
  animation: lt-deck-breathe 2.4s ease-in-out infinite;
}

.lt-deck-sheet--b {
  bottom: 5px;
  transform: rotate(2.5deg) translateY(-2px);
  z-index: 2;
  opacity: 0.92;
}

.lt-deck-sheet--c {
  bottom: 10px;
  transform: rotate(-1deg) translateY(-4px);
  z-index: 1;
  opacity: 0.82;
}

.lt-deck-sheet--a::after,
.lt-deck-sheet--b::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 138, 0.22);
  background: radial-gradient(circle at 50% 35%, rgba(255, 230, 160, 0.12), transparent 55%);
  pointer-events: none;
}

@keyframes lt-deck-breathe {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-3px);
  }
}

.lt-deal-track {
  flex: 1 1 260px;
  min-width: 0;
}

.lt-slots-label {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #f0d070;
}

.lt-deal-slots {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(6px, 1.8vw, 12px);
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.lt-slot {
  position: relative;
  flex: 0 0 auto;
  width: min(22vw, 118px);
  min-width: 86px;
  max-width: 132px;
  padding: 0 2px 4px;
}

.lt-slot-chrome {
  display: block;
  position: absolute;
  inset: 0 0 0 0;
  bottom: 28px;
  border-radius: 12px;
  border: 2px solid rgba(255, 200, 80, 0.35);
  background: linear-gradient(180deg, rgba(40, 20, 70, 0.95), rgba(12, 6, 28, 0.98));
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.lt-slot-chrome::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 120, 0.25), transparent);
  opacity: 0.7;
}

.lt-slot-well {
  position: relative;
  z-index: 1;
  min-height: 156px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 4px 0;
}

.lt-slot-well .tarot-card-thumb--minor-arcana-spread {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.lt-slot-num {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 230, 180, 0.55);
}

.lt-slot--nudge .lt-slot-chrome {
  animation: lt-slot-nudge 0.28s ease-out;
}

.lt-slot--active .lt-slot-chrome {
  border-color: rgba(255, 220, 120, 0.65);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(255, 200, 80, 0.22);
}

.lt-slot--filled .lt-slot-chrome {
  border-color: rgba(255, 227, 151, 0.4);
}

@keyframes lt-slot-nudge {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

.lt-flying-card {
  border-radius: 11px;
  overflow: hidden;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(201, 162, 39, 0.5);
}

.lt-flying-card .lt-card-back {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px solid rgba(201, 162, 39, 0.9);
  background:
    linear-gradient(152deg, #1c0e32 0%, #4a2880 45%, #1a0d2c 100%);
  box-shadow: inset 0 0 30px rgba(255, 200, 100, 0.1);
}

.lt-flying-card .lt-card-back::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: rgba(255, 215, 138, 0.35);
  pointer-events: none;
}

.lt-landed-card.lt-landed-card--bounce {
  animation: lt-card-land 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lt-card-land {
  0% {
    transform: scale(0.86) translateY(12px);
    opacity: 0.85;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-deck-sheet--a {
    animation: none;
  }

  .lt-slot--nudge .lt-slot-chrome {
    animation: none;
  }

  .lt-landed-card.lt-landed-card--bounce {
    animation: none;
  }
}

.personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-spread {
  margin: 0;
  max-width: none;
  flex: 0 0 auto;
  width: min(128px, calc((100% - 4 * 12px) / 5));
  min-width: 92px;
  scroll-snap-align: start;
}

.personalized-daily-tarot-cards .tarot-card-img--minor-arcana-spread {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 12px;
  border: 2px solid rgba(255, 227, 151, 0.45);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-spread .tarot-card-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
}

@media (min-width: 480px) {
  .personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-spread {
    width: min(140px, calc((100% - 4 * 14px) / 5));
    min-width: 112px;
  }

  .personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-spread .tarot-card-caption {
    font-size: 0.8rem;
  }
}

@media (min-width: 560px) {
  .personalized-daily-tarot-cards .tarot-card-thumb--minor-arcana-spread {
    width: min(152px, calc((100% - 4 * 14px) / 5));
    min-width: 124px;
  }
}

/*
 * Narrow viewports: five cards in two rows (3 + 2). Breakpoint 900px so phone landscape
 * still stacks; #id + .tarot-cards beats .tarot-cards { display:flex } on the same node.
 */
@media (max-width: 900px) {
  .personalized-daily-tarot-cards.personalized-daily-tarot-cards--dealing {
    min-height: 300px;
  }

  #personalized-daily-tarot-cards.tarot-cards.personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex-direction: unset;
    flex-wrap: unset;
    justify-content: stretch;
    align-items: stretch;
    align-content: start;
    padding: 10px 8px 12px;
    gap: 10px 6px;
    overflow-x: hidden;
    scroll-snap-type: none;
    min-height: 0;
  }

  /* Overlay full spread; do not steal the first grid cell from the first card */
  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > .personalized-daily-tarot-fly-root {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  /* nth-of-type ignores the fly-root div and any stray text nodes */
  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > figure:nth-of-type(1) {
    grid-column: 1 / 3;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > figure:nth-of-type(2) {
    grid-column: 3 / 5;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > figure:nth-of-type(3) {
    grid-column: 5 / 7;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > figure:nth-of-type(4) {
    grid-column: 2 / 4;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) > figure:nth-of-type(5) {
    grid-column: 4 / 6;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) .tarot-card-thumb--minor-arcana-spread,
  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing) .tarot-card-thumb--minor-arcana-placeholder {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
    justify-self: stretch;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing)
    .tarot-card-thumb--minor-arcana-spread
    .tarot-card-caption {
    font-size: 0.64rem;
  }

  #personalized-daily-tarot-cards:not(.personalized-daily-tarot-cards--dealing)
    .tarot-card-thumb--minor-arcana-placeholder
    .tarot-card-placeholder-box {
    min-height: 72px;
    font-size: 0.62rem;
    padding: 6px 4px;
  }

  /* Deal animation: same 3 + 2 slot layout */
  .personalized-daily-tarot-cards--dealing .lt-deal-slots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex-direction: unset;
    flex-wrap: unset;
    justify-content: stretch;
    align-items: end;
    gap: 12px 6px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot:nth-child(1) {
    grid-column: 1 / 3;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot:nth-child(2) {
    grid-column: 3 / 5;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot:nth-child(3) {
    grid-column: 5 / 7;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot:nth-child(4) {
    grid-column: 2 / 4;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot:nth-child(5) {
    grid-column: 4 / 6;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot-well {
    min-height: 132px;
  }

  .personalized-daily-tarot-cards--dealing .lt-slot-chrome {
    bottom: 24px;
  }
}

.profile-reading-body-host {
  margin: 0;
}

.profile-reading-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reading-hero {
  margin: 0 0 0.25rem;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff4c8;
  text-align: center;
}

.reading-section {
  margin: 0;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 227, 151, 0.12);
}

.reading-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 227, 151, 0.85);
}

.reading-paragraph {
  margin: 0 0 0.65rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.94rem;
}

.reading-paragraph:last-child {
  margin-bottom: 0;
}

.reading-luck-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reading-luck-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.5;
}

.reading-k {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.reading-v {
  color: #fff4d4;
  font-weight: 700;
}

.reading-safety {
  border-color: rgba(255, 180, 120, 0.25);
  background: rgba(80, 30, 20, 0.25);
}

.reading-legacy-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 235, 180, 0.92);
  background: rgba(255, 200, 80, 0.12);
  border: 1px solid rgba(255, 215, 109, 0.28);
}

.hidden {
  display: none;
}

.palm-upload-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 227, 151, 0.18);
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: 32px;
  }

  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Member bulletin: keep one full-width column (no side-by-side halves). */
  .personalized-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector-row {
    max-width: 100%;
  }
}

/* Live capture (face / palm) with circular guide */
.capture-slot-status {
  margin: 0;
  font-size: 0.86rem;
}

.capture-open-camera-button {
  width: 100%;
}

body.capture-camera-open {
  overflow: hidden;
}

.capture-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px;
}

.capture-camera-modal.hidden {
  display: none;
}

.capture-camera-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 14, 0.82);
  backdrop-filter: blur(5px);
}

.capture-camera-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding: 16px 16px 18px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(43, 5, 67, 0.98), rgba(24, 5, 43, 0.98));
  border: 1px solid rgba(255, 227, 151, 0.35);
  border-bottom: none;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}

.capture-camera-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.35rem;
}

.capture-camera-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: #fff0bd;
}

.capture-camera-hint {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.capture-camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(62vh, 380px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0514;
}

.capture-camera-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-camera-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 230, 160, 0.92);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.capture-camera-canvas {
  display: none;
}

.capture-camera-error {
  margin: 10px 0 0;
  color: #ffb4b4;
  font-size: 0.9rem;
}

.capture-camera-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.capture-camera-actions .primary-button,
.capture-camera-actions .secondary-button {
  width: 100%;
}

body.smart-face-open {
  overflow: hidden;
}

.smart-face-modal {
  z-index: 2200;
}

.smart-face-subtitle {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.smart-face-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(58vh, 360px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0514;
}

.smart-face-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.smart-face-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid #e53935;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.smart-face-circle--bad {
  border-color: #e53935;
}

.smart-face-circle--good {
  border-color: #43a047;
}

.smart-face-instruction {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff0bd;
  min-height: 1.4em;
}

.smart-face-panel.smart-face-panel--reading {
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
}

.smart-face-post-flow {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.smart-face-reading-body {
  flex: 1;
  min-height: 120px;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 14px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(8, 2, 18, 0.55);
  border: 1px solid rgba(255, 215, 109, 0.22);
  text-align: left;
  color: #ede6f7;
  font-size: 0.86rem;
  line-height: 1.52;
}

.smart-face-reading-body.hidden {
  display: none;
}

.smart-face-reading-body .reading-section {
  margin-bottom: 14px;
}

.smart-face-reading-body .reading-section:last-child {
  margin-bottom: 0;
}

.smart-face-reading-body .reading-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffcd4d;
  margin: 0 0 6px;
}

.smart-face-reading-body .reading-paragraph {
  margin: 0 0 0.55em;
  color: #e8dff5;
}

.smart-face-post-status {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff0bd;
  line-height: 1.35;
}

.smart-face-post-detail {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
}

.smart-face-post-actions .primary-button,
.smart-face-post-actions .secondary-button {
  width: 100%;
}

body.smart-palm-open {
  overflow: hidden;
}

.smart-palm-modal {
  z-index: 2200;
}

.smart-palm-pre-start {
  margin: 0 0 12px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(255, 227, 151, 0.08);
  border: 1px solid rgba(255, 215, 109, 0.28);
}

.smart-palm-pre-start-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.smart-palm-continue-camera {
  width: 100%;
  margin-top: 4px;
}

.smart-palm-live-zone.hidden {
  display: none;
}

.smart-palm-dominant-live-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(67, 160, 71, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.35);
  font-size: 0.86rem;
  line-height: 1.5;
}

.smart-palm-dominant-row {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smart-palm-dominant-select {
  width: 100%;
  max-width: 100%;
}

.smart-palm-dominant-select:disabled {
  opacity: 1;
  color: inherit;
  border-color: rgba(255, 227, 151, 0.35);
}

.smart-palm-subtitle {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.smart-palm-frame {
  border-radius: 18px;
  padding: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 4px solid #e53935;
  background: rgba(0, 0, 0, 0.35);
}

.smart-palm-frame--bad {
  border-color: #e53935;
}

.smart-palm-frame--good {
  border-color: #43a047;
}

.smart-palm-frame--dark {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.45);
}

.smart-palm-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(58vh, 360px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0514;
}

.smart-palm-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-palm-phase-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 12px 10px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  pointer-events: none;
}

.smart-palm-silhouette {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.smart-palm-guide-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.06);
  transform-origin: center bottom;
  /* PNG is transparent except white line art; subtle edge for dark/light video */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

/* Must beat `.smart-palm-guide-img { display: block }` (same specificity as `.hidden`, but later in file). */
.smart-palm-silhouette .smart-palm-guide-img.hidden {
  display: none !important;
}

/* Step 2: JS also sets inline !important; these ID rules are a fallback if stylesheets win. */
#smart-palm-stage[data-palm-step="1"] #smart-palm-guide-left-img {
  display: block !important;
}
#smart-palm-stage[data-palm-step="1"] #smart-palm-guide-right-img {
  display: none !important;
}
#smart-palm-stage[data-palm-step="2"] #smart-palm-guide-left-img {
  display: none !important;
}
#smart-palm-stage[data-palm-step="2"] #smart-palm-guide-right-img {
  display: block !important;
}

.smart-palm-light-hint {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 800;
  color: #ff8a80;
  font-size: 0.95rem;
}

.service-purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.daily-purchase-gate .daily-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.profile-entitlements-summary {
  margin: 0;
  max-width: 300px;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.35;
}

/* —— Charms / CJ storefront —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inline-text-link {
  color: #e8d4ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-text-link:hover {
  color: #fff;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 173, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f5ecff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.ghost-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cj-store-card .small-copy {
  font-size: 0.88rem;
}

.cj-store-status {
  margin-top: 8px;
}

.cj-auth-hint {
  margin-top: 6px;
}

.cj-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 18px 0 14px;
}

.cj-search-label {
  flex: 1 1 200px;
  min-width: 0;
}

.cj-search-input {
  width: 100%;
}

.cj-toolbar-button {
  flex: 0 0 auto;
}

.cj-toolbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 245, 220, 0.75);
}

.cj-page-label {
  min-width: 72px;
  text-align: center;
}

.cj-banner {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cj-banner--error {
  background: rgba(180, 40, 60, 0.22);
  border: 1px solid rgba(255, 120, 140, 0.35);
  color: #ffc9d2;
}

.cj-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.cj-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 6, 24, 0.55);
  border: 1px solid rgba(255, 232, 173, 0.14);
}

.cj-product-image-wrap {
  aspect-ratio: 1;
  background: #0a0514;
}

.cj-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cj-product-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cj-product-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff8ec;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cj-product-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffcd4d;
}

.cj-add-button {
  width: 100%;
  margin-top: auto;
}

.cj-cart-section,
.cj-checkout-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 232, 173, 0.12);
}

.cj-subheading {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff4dc;
}

.cj-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cj-cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 232, 173, 0.1);
}

.cj-cart-line-title {
  flex: 1 1 140px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cj-cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cj-qty-btn {
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
}

.cj-qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}

.cj-remove-btn {
  margin-left: auto;
}

.cj-quote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.cj-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 245, 220, 0.82);
}

.cj-field--grow {
  flex: 1 1 160px;
}

.cj-logistics-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.cj-logistics-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cj-logistics-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 232, 173, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.cj-logistics-row:has(input:checked) {
  border-color: rgba(255, 205, 77, 0.45);
  background: rgba(255, 205, 77, 0.08);
}

.cj-logistics-row-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #f7f0ff;
}

.cj-checkout-form .cj-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .cj-checkout-form .cj-form-row {
    grid-template-columns: 1fr;
  }
}

.cj-pay-button {
  margin-top: 8px;
  width: 100%;
  max-width: 320px;
}

/* —— Full shop (products.html) —— */
.store-app .store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .store-app .store-layout {
    grid-template-columns: 1fr;
  }
}

.store-intro-card {
  margin-bottom: 0;
}

.store-section {
  margin-top: 18px;
}

.store-transaction-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 232, 173, 0.14);
}

.store-transaction-link {
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffe8a8;
  text-decoration: none;
}

.store-transaction-link:hover {
  text-decoration: underline;
  color: #fff;
}

.store-transaction-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.store-featured-grid {
  margin-top: 12px;
}

/* Hand-picked products (HTML in products.html) */
.store-handpicked-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.store-listing-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-color);
  background: #faf8fc;
}

@media (max-width: 560px) {
  .store-listing-card {
    grid-template-columns: 1fr;
  }
}

.store-listing-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0514;
  aspect-ratio: 1;
  max-width: 220px;
}

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

.store-listing-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
}

.store-listing-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.store-listing-desc {
  margin: 0 0 10px;
}

.store-listing-price {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #6b3fa0;
}

.store-listing .store-add-btn {
  width: auto;
  min-width: 140px;
}

.cj-product-card--featured {
  border: 1px solid rgba(255, 205, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 205, 77, 0.12), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cj-product-meta {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.store-card-checkout-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e8d4ff;
  text-decoration: none;
}

.store-card-checkout-link:hover {
  color: #fff;
  text-decoration: underline;
}

.store-aside {
  position: relative;
}

@media (min-width: 901px) {
  .store-aside-card {
    position: sticky;
    top: 12px;
  }
}

.store-aside-section + .store-aside-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 232, 173, 0.12);
}

.store-pay-btn {
  max-width: none;
  width: 100%;
}

.small-copy {
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Shop page: full width (app-shell defaults to 430px for the slot home layout) */
.app-shell.store-app {
  width: 100%;
  max-width: 1200px;
}

/* White legal-card + CJ “dark theme” tokens = invisible text. Force readable contrast. */
.store-app .legal-card .section-heading h1,
.store-app .legal-card .section-heading h2 {
  color: var(--text-main);
}

.store-app .legal-card .section-heading p,
.store-app .legal-card .muted-copy {
  color: var(--text-muted);
}

.store-app .legal-card .cj-subheading {
  color: #1a0d24;
}

.store-app .legal-card .cj-field {
  color: #3a3540;
}

.store-app .legal-card .cj-cart-line {
  background: #f3f1f6;
  border-color: var(--line-color);
}

.store-app .legal-card .cj-cart-line-title {
  color: var(--text-main);
}

.store-app .legal-card .cj-qty-value {
  color: var(--text-main);
}

.store-app .legal-card .cj-logistics-row-text {
  color: #242028;
}

.store-app .legal-card .cj-logistics-row {
  background: #f0eef3;
  border-color: var(--line-color);
}

.store-app .legal-card .cj-logistics-row:has(input:checked) {
  border-color: rgba(140, 71, 243, 0.55);
  background: #f3edfc;
}

.store-app .legal-card .cj-cart-section,
.store-app .legal-card .cj-checkout-section,
.store-app .legal-card .store-aside-section + .store-aside-section {
  border-top-color: var(--line-color);
}

.store-app .legal-card .inline-text-link {
  color: #5c2d96;
  font-weight: 700;
}

.store-app .legal-card .inline-text-link:hover {
  color: #3a1d62;
}

.store-app .legal-card .ghost-button {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.04);
  color: #2a2430;
}

.store-app .legal-card .ghost-button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
}

.store-app .legal-card .store-transaction-nav {
  background: #f0eef3;
  border-color: var(--line-color);
}

.store-app .legal-card .store-transaction-link {
  color: #5c2d96;
}

.store-app .legal-card .store-transaction-link:hover {
  color: #3a1d62;
}

.store-app .legal-card .store-transaction-sep {
  color: rgba(0, 0, 0, 0.35);
}

.store-app .legal-card .cj-banner--error {
  color: #6b1a24;
  background: rgba(180, 40, 60, 0.1);
  border-color: rgba(180, 40, 60, 0.35);
}
