:root {
  color-scheme: dark;
  --bg: #171019;
  --panel: #241929;
  --panel-2: #2e2134;
  --surface: color-mix(in srgb, var(--panel) 92%, black);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --surface-raised: #2a1d31;
  --surface-deep: #120c16;
  --ink: #fff7ea;
  --muted: #cdbfd0;
  --muted-strong: #e1d4e3;
  --gold: #efc66e;
  --gold-soft: #ffdf92;
  --gold-strong: #d9aa4d;
  --violet: #8e5ad7;
  --violet-strong: #5f35a1;
  --violet-deep: #432660;
  --line: rgba(239, 198, 110, 0.26);
  --line-soft: rgba(255, 247, 234, 0.14);
  --line-violet: rgba(197, 139, 255, 0.48);
  --info-bg: rgba(255, 255, 255, 0.065);
  --info-border: rgba(197, 139, 255, 0.32);
  --focus-ring: rgba(239, 198, 110, 0.2);
  --danger: #ffd2bf;
  --success: #bff3c9;
  --shadow: rgba(0, 0, 0, 0.34);
  --button-depth: #9f7a35;
  --button-dark-depth: #100b14;
  --radius-panel: 14px;
  --radius-control: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 198, 110, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 4%, rgba(142, 90, 215, 0.26), transparent 28rem),
    linear-gradient(180deg, #120c16 0%, #171019 42%, #211526 100%);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang TC", system-ui, -apple-system, sans-serif;
}

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

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255, 247, 234, 0.12) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 30%, rgba(239, 198, 110, 0.16) 0 1px, transparent 1.8px),
    radial-gradient(circle at 46% 78%, rgba(197, 139, 255, 0.14) 0 1px, transparent 1.8px);
  background-size: 19rem 19rem, 27rem 27rem, 23rem 23rem;
  opacity: 0.32;
}

body::after {
  background:
    linear-gradient(90deg, rgba(18, 12, 22, 0.96) 0%, rgba(18, 12, 22, 0.72) 38%, rgba(18, 12, 22, 0.58) 100%),
    linear-gradient(180deg, rgba(18, 12, 22, 0.14) 0%, rgba(18, 12, 22, 0.76) 54%, #171019 100%),
    url("./assets/drtarot-consultation-bg.jpg") top center / cover no-repeat;
  opacity: 0.52;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 92%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    18px
    calc(32px + env(safe-area-inset-bottom) + var(--keyboard-safe-bottom, 0px));
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: var(--ink);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
}

.brand-subtitle {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr) auto;
  align-items: end;
  gap: clamp(16px, 3vw, 30px);
  padding: 18px 0 24px;
}

html[lang="en"] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.5fr);
  align-items: center;
}

.hero-copy {
  align-self: center;
}

.hero-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

html[lang="en"] .hero-tools {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  justify-items: stretch;
  grid-template-columns: max-content max-content;
  align-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 7vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

html[lang="en"] h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 5.2vw, 4rem);
  line-height: 1.02;
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  align-items: end;
  min-height: 238px;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 4px;
  z-index: -1;
  height: 64px;
  border: 1px solid rgba(239, 198, 110, 0.18);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(239, 198, 110, 0.18), transparent 68%);
}

.hero-card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(239, 198, 110, 0.38);
  border-radius: 12px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.08), transparent 44%),
    #100b12;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.68;
  border-radius: 8px;
  object-fit: cover;
}

.hero-card figcaption {
  padding: 7px 2px 1px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.hero-card-left {
  transform: translate(16px, 18px) rotate(-8deg);
}

.hero-card-center {
  z-index: 2;
  transform: translateY(-4px);
}

.hero-card-right {
  transform: translate(-16px, 18px) rotate(8deg);
}

@media (hover: hover) {
  .hero-card:hover,
  .sample-card:hover,
  .card-result:hover {
    border-color: rgba(239, 198, 110, 0.52);
    transform: translateY(-2px);
  }

  .hero-card-left:hover {
    transform: translate(16px, 14px) rotate(-7deg);
  }

  .hero-card-center:hover {
    transform: translateY(-8px);
  }

  .hero-card-right:hover {
    transform: translate(-16px, 14px) rotate(7deg);
  }
}

.status-pill {
  border: 1px solid rgba(239, 198, 110, 0.3);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(18, 12, 22, 0.76);
  font-size: 0.9rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 247, 234, 0.1);
  border-radius: var(--radius-panel);
  padding: 7px;
  background: rgba(18, 12, 22, 0.68);
}

.member-button,
.tab {
  color: var(--muted);
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.member-button {
  color: var(--ink);
  background: var(--surface-raised);
}

.member-button:hover,
.tab:hover {
  color: var(--ink);
  border-color: var(--line-violet);
  background: rgba(197, 139, 255, 0.12);
}

.tab {
  min-height: 44px;
  padding-inline: 6px;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: clamp(0.78rem, 2.7vw, 0.95rem);
  font-weight: 900;
  line-height: 1.08;
}

.tab.is-active {
  color: var(--ink);
  border-color: var(--line-violet);
  background: linear-gradient(180deg, #9a68df, var(--violet-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 0 rgba(20, 12, 24, 0.82);
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: grid;
}

.demo-view.is-active,
.purchase-view.is-active {
  gap: 16px;
}

.view-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.reading-panel.is-active {
  gap: 14px;
}

.reading-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.step-tab {
  min-height: 48px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: clamp(0.78rem, 2.9vw, 0.96rem);
  line-height: 1.15;
  white-space: normal;
}

.step-tab:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-violet);
  background: rgba(197, 139, 255, 0.12);
}

.step-tab.is-active {
  color: var(--ink);
  border-color: rgba(197, 139, 255, 0.72);
  background: linear-gradient(180deg, #9a68df, var(--violet-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 0 rgba(20, 12, 24, 0.82);
}

.step-tab:disabled {
  color: rgba(205, 191, 208, 0.54);
  background: rgba(255, 255, 255, 0.045);
}

.reading-step {
  display: grid;
  gap: 14px;
}

.step-heading {
  border: 1px solid rgba(239, 198, 110, 0.26);
  border-radius: var(--radius-panel);
  padding: 16px;
  background:
    linear-gradient(140deg, rgba(239, 198, 110, 0.12), rgba(197, 139, 255, 0.07) 52%, transparent),
    rgba(255, 255, 255, 0.055);
}

.step-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.18rem, 4vw, 1.5rem);
  text-wrap: balance;
}

.step-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.example-showcase {
  display: grid;
  gap: 18px;
  margin: 0 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(197, 139, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(239, 198, 110, 0.1), transparent 34%),
    color-mix(in srgb, var(--panel) 94%, black);
}

.example-copy {
  display: grid;
  gap: 8px;
}

.example-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.example-copy p:not(.kicker) {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sample-spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sample-card {
  min-width: 0;
  border: 1px solid rgba(239, 198, 110, 0.2);
  border-radius: var(--radius-control);
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.055);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.sample-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.68;
  object-fit: contain;
  border-radius: 9px;
  background: #100b12;
}

.sample-card span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.sample-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.sample-reports {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
}

.sample-report {
  border: 1px solid rgba(255, 247, 234, 0.13);
  border-radius: var(--radius-control);
  padding: 12px;
  background: rgba(18, 12, 22, 0.42);
}

.sample-report summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.sample-report summary::-webkit-details-marker {
  display: none;
}

.sample-report summary strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  color: #1b111f;
  background: rgba(239, 198, 110, 0.92);
  font-size: 0.78rem;
}

.sample-report p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.sample-report h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.premium-preview {
  border-color: var(--line-violet);
  background:
    linear-gradient(135deg, rgba(197, 139, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

.pricing-section {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(197, 139, 255, 0.12), transparent 36%),
    color-mix(in srgb, var(--panel) 92%, black);
}

.pricing-intro {
  display: grid;
  gap: 8px;
}

.pricing-intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.pricing-intro p:not(.kicker),
.pricing-note {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.price-card.is-featured {
  border-color: rgba(239, 198, 110, 0.54);
  background:
    linear-gradient(145deg, rgba(239, 198, 110, 0.16), rgba(197, 139, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.price-label,
.early-badge {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
}

.early-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  color: #1b111f;
  background: var(--gold);
}

.price-value {
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.coupon-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--info-border);
  border-radius: var(--radius-panel);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(239, 198, 110, 0.12), rgba(197, 139, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.coupon-panel h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
  text-wrap: balance;
}

.coupon-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.coupon-form {
  display: grid;
  gap: 8px;
}

.coupon-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.coupon-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coupon-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 800;
}

.coupon-status[data-tone="success"] {
  color: var(--success);
}

.coupon-status[data-tone="warn"] {
  color: var(--danger);
}

.coupon-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coupon-preview div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid rgba(239, 198, 110, 0.24);
  padding-top: 10px;
  align-content: start;
}

.coupon-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.coupon-preview strong {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1.1;
}

.coupon-price-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.coupon-original,
.coupon-payable {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.coupon-original {
  text-decoration: line-through;
  opacity: 0.84;
}

.coupon-payable {
  color: var(--gold-soft);
}

.bank-transfer-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(239, 198, 110, 0.34);
  border-radius: var(--radius-panel);
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(239, 198, 110, 0.13), rgba(197, 139, 255, 0.07) 58%, transparent),
    rgba(18, 12, 22, 0.5);
}

.bank-transfer-heading {
  display: grid;
  gap: 7px;
}

.bank-transfer-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 3.4vw, 1.55rem);
  line-height: 1.25;
  text-wrap: balance;
}

.bank-transfer-heading p:not(.kicker) {
  max-width: 52rem;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.bank-transfer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.bank-account-card,
.transfer-steps-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.bank-card-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: #1b111f;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.bank-account-list {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
}

.bank-account-list div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 247, 234, 0.11);
  padding-top: 9px;
}

.bank-account-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.bank-account-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.transfer-steps-card {
  display: grid;
  gap: 10px;
}

.transfer-steps-card h4 {
  margin: 0;
  color: var(--gold-soft);
  font-size: 1rem;
  line-height: 1.35;
}

.transfer-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted-strong);
  line-height: 1.55;
}

.line-report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(191, 243, 201, 0.34);
  border-radius: var(--radius-control);
  padding: 10px 13px;
  color: #0f1711;
  background: linear-gradient(180deg, #c9ffd3, #8fe6a0);
  font-weight: 950;
  text-decoration: none;
}

.line-report-button:hover {
  filter: brightness(1.04);
}

.line-search-link {
  justify-content: flex-start;
  gap: 10px;
  min-height: 72px;
  border-color: rgba(191, 243, 201, 0.32);
  border-radius: 16px;
  padding: 11px;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    filter 180ms var(--ease-out);
}

.line-search-link:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.28);
}

.line-search-link:focus-visible {
  outline: 3px solid rgba(143, 230, 160, 0.42);
  outline-offset: 3px;
}

.line-app-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #06c755;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.line-search-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  border-radius: 12px;
  padding: 8px 9px;
  background: #eef1f5;
  color: #111827;
  font-size: clamp(1rem, 4vw, 1.12rem);
  font-weight: 850;
  line-height: 1.15;
}

.line-search-field span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-search-magnifier {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid #6b7280;
  border-radius: 50%;
}

.line-search-magnifier::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #6b7280;
  transform: rotate(45deg);
  transform-origin: center;
}

.line-search-clear {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9ca3af;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.line-search-action {
  flex: 0 0 auto;
  color: #1870a9;
  font-size: 1rem;
  font-weight: 950;
}

.transfer-note {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.55;
}

.manual-transfer-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(239, 198, 110, 0.22);
  padding-top: 14px;
}

.card-payment-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(239, 198, 110, 0.28);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(239, 198, 110, 0.13), rgba(142, 90, 215, 0.09));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.card-payment-form {
  border-top-color: rgba(255, 247, 232, 0.14);
}

.manual-transfer-form-heading {
  display: grid;
  gap: 5px;
}

.manual-transfer-form h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.manual-transfer-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manual-transfer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-transfer-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.manual-transfer-fields label span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

.manual-transfer-fields input[readonly] {
  color: var(--gold);
  font-weight: 950;
  cursor: default;
}

.manual-transfer-time-field {
  grid-column: 1 / -1;
}

.transfer-time-selects {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr 0.9fr 0.9fr;
  gap: 8px;
}

.transfer-time-selects select {
  min-width: 0;
  padding-inline: 9px;
}

.line-help-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(191, 243, 201, 0.22);
  border-radius: 16px;
  padding: 12px;
  background: rgba(143, 230, 160, 0.08);
}

.line-help-card > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.official-social-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(239, 198, 110, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(239, 198, 110, 0.07);
}

.official-social-card > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.official-social-card a {
  color: var(--gold-soft);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.service-email-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(184, 208, 255, 0.25);
  border-radius: 16px;
  padding: 12px;
  background: rgba(121, 154, 224, 0.09);
}

.service-email-card > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.service-email-card a {
  color: #dce6ff;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-contact-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(20, 13, 28, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.site-contact-footer a {
  color: #dce6ff;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.official-social-card a:hover {
  text-decoration: underline;
}

.manual-transfer-amount-hint {
  border: 1px solid rgba(239, 198, 110, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(239, 198, 110, 0.08);
  color: var(--gold-soft) !important;
  font-size: 0.9rem;
  font-weight: 850;
}

.line-transfer-page {
  min-height: 100vh;
}

.line-transfer-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.line-transfer-header {
  margin-bottom: 18px;
}

.line-transfer-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(239, 198, 110, 0.3);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 26px);
  background:
    linear-gradient(145deg, rgba(239, 198, 110, 0.12), rgba(142, 90, 215, 0.1) 54%, rgba(18, 12, 22, 0.2)),
    rgba(24, 16, 29, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.line-transfer-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1.05;
}

.line-transfer-lede {
  max-width: 38rem;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.line-transfer-status,
.line-transfer-summary {
  border: 1px solid rgba(239, 198, 110, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
  font-weight: 850;
  line-height: 1.55;
}

.line-transfer-status[data-tone="error"],
.coupon-status[data-tone="error"] {
  border-color: rgba(255, 210, 191, 0.34);
  background: rgba(255, 210, 191, 0.08);
  color: var(--danger);
}

.coupon-status[data-tone="success"] {
  border-color: rgba(191, 243, 201, 0.34);
  background: rgba(191, 243, 201, 0.08);
  color: var(--success);
}

.line-transfer-summary {
  display: grid;
  gap: 10px;
}

.line-transfer-summary div {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 247, 234, 0.1);
  padding-top: 10px;
}

.line-transfer-summary div:first-child {
  border-top: 0;
  padding-top: 0;
}

.line-transfer-summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.line-transfer-summary strong {
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}

.line-transfer-bank {
  background: rgba(255, 255, 255, 0.06);
}

.line-transfer-form {
  border-top: 0;
  padding-top: 0;
}

.line-report-detail {
  display: grid;
  gap: 18px;
}

.line-report-detail-header {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(239, 198, 110, 0.22);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.line-report-detail-header time {
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 900;
}

.line-report-detail-header strong {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.line-report-detail-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 5vw, 1.9rem);
  line-height: 1.35;
}

.line-report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.line-report-card-tile {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(239, 198, 110, 0.2);
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.line-report-card-tile img {
  width: 100%;
  aspect-ratio: 3 / 5;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

.line-report-card-tile img.is-reversed {
  transform: rotate(180deg);
}

.line-report-card-tile span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.line-report-card-tile strong {
  color: var(--ink);
  font-size: clamp(0.78rem, 3vw, 0.92rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.line-report-card-tile em {
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.line-report-text {
  border-radius: 14px;
  padding: clamp(16px, 4vw, 22px);
  background: rgba(255, 247, 234, 0.96);
  color: #241929;
  font-size: 1.02rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.reading-panel,
.summary-panel,
.ai-panel,
.history-panel,
.account-panel,
.card-result {
  border: 1px solid rgba(255, 247, 234, 0.13);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.reading-panel {
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.035), transparent 220px),
    var(--surface);
}

.benefit-strip {
  border: 1px solid rgba(239, 198, 110, 0.34);
  border-radius: var(--radius-control);
  padding: 11px 12px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(239, 198, 110, 0.16), rgba(197, 139, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trust-strip div {
  min-width: 0;
  border: 1px solid rgba(255, 247, 234, 0.12);
  border-radius: var(--radius-control);
  padding: 11px 12px;
  background: rgba(18, 12, 22, 0.38);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1.25;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.rules-inline-button {
  width: fit-content;
  min-height: 38px;
  margin: -4px 0 12px;
  padding: 0 12px;
  color: var(--gold-soft);
  border-color: rgba(239, 198, 110, 0.28);
  background: rgba(18, 12, 22, 0.42);
  box-shadow: none;
  font-size: 0.88rem;
}

.rules-inline-button:hover:not(:disabled) {
  border-color: rgba(239, 198, 110, 0.48);
  background: rgba(239, 198, 110, 0.1);
}

.full-report-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid var(--info-border);
  border-radius: var(--radius-panel);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(197, 139, 255, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.05);
}

.full-report-box h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.full-report-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.full-report-button {
  width: fit-content;
}

.question-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chip {
  min-height: 36px;
  border-color: rgba(239, 198, 110, 0.34);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(239, 198, 110, 0.1);
  box-shadow: none;
  font-size: 0.88rem;
}

.prompt-chip:hover {
  border-color: rgba(239, 198, 110, 0.78);
  background: rgba(239, 198, 110, 0.16);
}

.field-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-hint {
  margin: -6px 0 0;
  color: rgba(255, 247, 234, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.focus-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.focus-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.focus-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-option {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 94px;
  border: 1px solid rgba(255, 247, 234, 0.13);
  border-radius: var(--radius-control);
  padding: 12px 12px 12px 38px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.045), transparent 62%),
    rgba(255, 255, 255, 0.055);
  text-align: left;
}

.focus-option:hover {
  border-color: var(--line-violet);
  background: rgba(197, 139, 255, 0.12);
}

.focus-option:focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.focus-option.is-selected {
  border-color: rgba(239, 198, 110, 0.78);
  background:
    linear-gradient(145deg, rgba(239, 198, 110, 0.18), rgba(197, 139, 255, 0.13)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 247, 234, 0.1);
}

.focus-check {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(239, 198, 110, 0.62);
  border-radius: 999px;
  color: transparent;
  font-size: 0.75rem;
  line-height: 1;
}

.focus-option.is-selected .focus-check {
  color: #1b111f;
  background: var(--gold);
}

.focus-title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.focus-copy {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

textarea,
input,
select {
  width: 100%;
  scroll-margin-block: 120px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input[type="hidden"] {
  display: none;
}

textarea {
  resize: vertical;
  min-height: 92px;
  padding: 12px;
  line-height: 1.55;
}

select {
  padding: 11px 12px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.analysis-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-actions button {
  width: 100%;
  min-width: 0;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.primary {
  color: #1b111f;
  border-color: rgba(255, 247, 234, 0.18);
  background: linear-gradient(180deg, #f4ce78, var(--gold));
  box-shadow:
    0 4px 0 var(--button-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #f8dc94, #efc66e);
}

.primary.card-payment-action {
  color: #ffffff;
  border-color: rgba(220, 255, 229, 0.28);
  background: linear-gradient(180deg, #2fac55, #218a41);
  box-shadow:
    0 4px 0 #145d2b,
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.primary.card-payment-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #39bb62, #249347);
}

button:active:not(:disabled) {
  transform: translateY(2px);
}

.primary.ai {
  background: linear-gradient(180deg, #f4ce78, var(--gold));
}

.secondary {
  color: var(--ink);
  border-color: var(--line-soft);
  background: linear-gradient(180deg, #34243b, #241929);
  box-shadow:
    0 3px 0 var(--button-dark-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.secondary:hover:not(:disabled) {
  border-color: var(--line-violet);
  background: linear-gradient(180deg, #3c2a45, #281d2f);
}

.draw-action {
  color: #1b111f;
  background: linear-gradient(180deg, #f4ce78, var(--gold));
  box-shadow:
    0 4px 0 var(--button-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.draw-action.is-drawn {
  color: #f5f1f6;
  background: linear-gradient(135deg, #2f2f34, #141217);
  border: 1px solid rgba(255, 255, 255, 0.24);
  filter: grayscale(1);
  box-shadow:
    0 3px 0 var(--button-dark-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  box-shadow: none;
}

button:disabled:not(.step-tab) {
  color: rgba(205, 191, 208, 0.72);
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

.draw-action.is-drawn:disabled {
  opacity: 1;
}

.reset-action {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.reset-action.is-ready {
  color: var(--ink);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #3b2a42, #251a2c);
  box-shadow:
    0 4px 0 var(--button-dark-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.reset-action:disabled {
  opacity: 0.68;
}

.draw-status {
  margin: 2px 0 0;
  border: 1px solid var(--info-border);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--info-bg);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card-result {
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.045), transparent 48%),
    var(--surface);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.role {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.tarot-card {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(239, 198, 110, 0.62);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(239, 198, 110, 0.1), transparent 36%),
    #100b12;
  aspect-ratio: 0.68;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 234, 0.06),
    0 10px 16px rgba(0, 0, 0, 0.24);
}

.tarot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.tarot-card.image-failed::before {
  content: "牌圖載入失敗";
  color: var(--gold);
  font-weight: 800;
}

.tarot-card.is-reversed img {
  transform: rotate(180deg);
}

.upright-name {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 9px;
  color: #1b111f;
  background: rgba(239, 198, 110, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.upright-name[hidden] {
  display: none;
}

.orientation {
  position: absolute;
  right: 10px;
  top: 48px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #1b111f;
  background: rgba(255, 247, 234, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-result h2 {
  margin: 12px 0 7px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.meaning {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.summary-panel {
  margin-top: 16px;
  padding: 16px;
}

.summary-panel h2,
.ai-panel h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.summary-line {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.ai-panel {
  margin-top: 16px;
  padding: 16px;
}

.ai-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ai-panel-header span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-report {
  white-space: pre-wrap;
  color: var(--muted-strong);
  line-height: 1.82;
}

.paywall-card {
  display: grid;
  gap: 14px;
  white-space: normal;
}

.paywall-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  text-wrap: balance;
}

.paywall-card p,
.paywall-card ul {
  margin: 0;
}

.paywall-card ul {
  display: grid;
  gap: 6px;
  padding-left: 1.2rem;
  color: var(--muted-strong);
}

.paywall-upgrade-button {
  width: 100%;
  min-height: 48px;
}

.paywall-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.save-hint {
  margin-top: 14px;
}

.history-panel,
.account-panel {
  gap: 10px;
  padding: 16px;
}

.panel-note,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item,
.account-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  padding: 12px;
  background: var(--surface-soft);
}

.history-item {
  cursor: pointer;
}

.history-item strong {
  display: block;
  margin-bottom: 5px;
}

.history-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.history-item p,
.account-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 6, 12, 0.76);
}

.modal-backdrop[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 20px;
  background: var(--surface);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  border-color: var(--line-soft);
  background: var(--surface-raised);
  box-shadow: none;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.rules-modal-backdrop {
  z-index: 21;
  align-items: start;
  overflow-y: auto;
  padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
}

.rules-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(239, 198, 110, 0.28);
  border-radius: var(--radius-panel);
  padding: clamp(18px, 4vw, 24px);
  background:
    linear-gradient(150deg, rgba(239, 198, 110, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 234, 0.045), transparent 170px),
    var(--surface);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

.rules-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.18;
  text-wrap: balance;
}

.rules-intro {
  margin-bottom: 16px;
  color: var(--muted-strong);
  line-height: 1.72;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 247, 234, 0.12);
  border-radius: var(--radius-control);
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.rules-list strong {
  color: var(--gold);
  font-size: 0.96rem;
  line-height: 1.45;
}

.rules-list span {
  color: var(--muted);
  line-height: 1.65;
}

.rules-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-copy,
.privacy-note,
.auth-status {
  color: var(--muted);
  line-height: 1.65;
}

.auth-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-weight: 800;
}

.password-rule {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-status[data-tone="success"] {
  color: var(--success);
}

.auth-status[data-tone="warn"] {
  color: var(--danger);
}

.google-button,
.auth-submit {
  width: 100%;
}

.text-link-button {
  width: 100%;
  min-height: auto;
  margin-top: 12px;
  padding: 4px 0;
  color: var(--gold);
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.text-link-button:hover {
  color: var(--ink);
  transform: none;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.google-button {
  color: #1b111f;
  border-color: rgba(255, 247, 234, 0.36);
  background: linear-gradient(180deg, #fffaf0, #f0e8dc);
  box-shadow:
    0 3px 0 rgba(152, 134, 110, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.google-button:disabled {
  color: rgba(27, 17, 31, 0.72);
  background: rgba(255, 247, 234, 0.62);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-row input {
  width: auto;
  margin-top: 3px;
}

.admin-shell {
  width: min(1240px, 100%);
}

.admin-hero h1 {
  margin-bottom: 6px;
}

.admin-login {
  max-width: 520px;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-toolbar,
.admin-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar {
  justify-content: space-between;
}

.admin-stats span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-status {
  min-height: 1.4em;
  color: var(--muted);
  font-weight: 800;
}

.admin-login-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--info-border);
  border-radius: var(--radius-control);
  background: var(--info-bg);
  line-height: 1.55;
}

.admin-status[data-tone="success"] {
  color: var(--success);
}

.admin-status[data-tone="warn"] {
  color: var(--danger);
}

.referral-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.referral-settings-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(239, 198, 110, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.referral-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.referral-panel h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.referral-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.referral-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.referral-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.referral-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.referral-form .referral-active {
  align-content: end;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 66px;
  color: var(--ink);
}

.referral-active input {
  width: auto;
  margin: 0;
  align-self: center;
}

.referral-form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-table-wrap .admin-table {
  min-width: 820px;
}

.table-action {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: none;
}

.table-action:hover {
  border-color: var(--line-violet);
  background: rgba(197, 139, 255, 0.12);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.admin-table td {
  color: var(--ink);
  line-height: 1.45;
}

.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .brand-header {
    padding-bottom: 14px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  html[lang="en"] .hero {
    grid-template-columns: 1fr;
  }

  html[lang="en"] h1 {
    max-width: 12.5ch;
    font-size: clamp(2.35rem, 10.5vw, 3.45rem);
  }

  .status-pill {
    display: inline-block;
    margin-top: 0;
  }

  .hero-tools {
    justify-items: stretch;
    margin-top: 0;
  }

  html[lang="en"] .hero-tools {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    grid-template-columns: 1fr;
  }

  .hero-stage {
    width: min(320px, 100%);
    min-height: 214px;
    margin: 0 auto;
  }

  .hero-card {
    padding: 6px;
  }

  .hero-card figcaption {
    font-size: 0.72rem;
  }

  .tabs {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 5px;
    padding: 5px;
  }

  .tab {
    min-height: 48px;
    padding-inline: 8px;
  }

  .referral-panel-heading {
    display: grid;
  }

  .referral-form {
    grid-template-columns: 1fr;
  }

  .referral-form-actions {
    align-items: stretch;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .sample-spread,
  .sample-reports,
  .pricing-grid,
  .coupon-panel,
  .bank-transfer-layout,
  .manual-transfer-fields,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .coupon-panel {
    gap: 12px;
    padding: 13px;
  }

  .coupon-entry {
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
  }

  .coupon-preview {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(239, 198, 110, 0.18);
  }

  .coupon-preview div {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 2px 10px;
    border: 0;
    border-radius: 0;
    padding: 7px 0;
    text-align: left;
    background: transparent;
  }

  .coupon-preview div + div {
    border-top: 1px solid rgba(239, 198, 110, 0.2);
  }

  .coupon-preview span,
  .coupon-preview small {
    grid-column: 1;
    font-size: 0.7rem;
  }

  .coupon-preview strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 1.02rem;
    white-space: nowrap;
  }

  .coupon-price-pair {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 6px;
  }

  .coupon-original,
  .coupon-payable {
    font-size: 0.68rem;
  }

  .bank-account-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .line-report-button {
    width: 100%;
  }

  .line-search-link {
    gap: 8px;
    min-height: 64px;
    padding: 9px;
  }

  .line-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .line-search-field {
    min-height: 40px;
    gap: 6px;
    padding: 8px;
  }

  .line-search-action {
    font-size: 0.9rem;
  }

  .transfer-time-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transfer-time-selects select:first-child {
    grid-column: 1 / -1;
  }

  .rules-card {
    max-height: calc(100dvh - 36px);
  }

  .rules-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rules-actions {
    display: grid;
  }

  .rules-actions button,
  .rules-inline-button {
    width: 100%;
  }

  .sample-spread {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sample-card {
    min-width: 96px;
  }

  .sample-report summary {
    display: grid;
  }

  .sample-report summary strong {
    width: fit-content;
  }

  .actions {
    display: grid;
  }

  .analysis-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-option {
    min-height: 88px;
    padding: 11px 10px 11px 36px;
  }

  .full-report-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 14px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .hero-stage {
    min-height: 196px;
  }

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

  .hero-card-left {
    transform: translate(13px, 16px) rotate(-7deg);
  }

  .hero-card-right {
    transform: translate(-13px, 16px) rotate(7deg);
  }

  .focus-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-card-left,
  .hero-card-center,
  .hero-card-right {
    transform: none;
  }
}
