/* Fonts are linked from the layout template to avoid duplicate requests. */

:root {
  --bg: #0b0b12;
  --panel: #11111a;
  --panel2: #151523;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --txt: #f5f5f5;
  --muted: #a0a0b0;
  --err: #ff5a6a;
  --ok: #4ee59a;
  --border: rgba(212, 175, 55, 0.2);
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --font-body: Inter, "Source Sans 3", sans-serif;
  --font-ui: "Source Sans 3", Inter, sans-serif;
  --font-display: Cinzel, "Times New Roman", serif;
  --font-display-spacing: 0.06em;
}

html[lang="ru"] {
  --font-body: "Source Sans 3", Inter, sans-serif;
  --font-ui: "Source Sans 3", Inter, sans-serif;
  --font-display: "Cormorant Garamond", Forum, serif;
  --font-display-spacing: 0.015em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.oracle-v2 {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(66, 46, 95, 0.38), transparent 40%),
    radial-gradient(circle at 86% 16%, rgba(32, 68, 120, 0.33), transparent 42%),
    radial-gradient(circle at 52% 88%, rgba(95, 52, 33, 0.24), transparent 44%),
    var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  min-height: 100vh;
}

.oracle-v2__grain,
.oracle-v2__vignette,
.oracle-v2__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.oracle-v2__stars {
  z-index: 0;
  opacity: 0.42;
}

.oracle-v2__grain {
  z-index: 1;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.18) 0 0.7px, transparent 0.8px);
  background-size: 4px 4px, 5px 5px;
}

.oracle-v2__vignette {
  z-index: 2;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
}

.oracle-v2__app {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 48px;
}

.oracle-v2__topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.oracle-v2__logo {
  color: #f7e7bb;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.oracle-v2__topbar-actions {
  position: relative;
  z-index: 51;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.oracle-v2__balance,
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  color: var(--txt);
  background: rgba(17, 17, 26, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.1;
}

.language-link--button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}

.language-link--soft {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.18);
  color: #e4e1ea;
}

.language-link--topup {
  background: linear-gradient(180deg, rgba(88, 67, 24, 0.52), rgba(38, 31, 16, 0.5));
  border-color: rgba(212, 175, 55, 0.3);
  color: #f0e2b8;
}

.language-link--accent {
  border-color: rgba(212, 175, 55, 0.46);
  background: linear-gradient(150deg, #f2d37a 0%, #d4af37 52%, #b48922 100%);
  color: #201708;
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.22);
}

.language-link--accent:hover,
.language-link--accent:focus-visible {
  color: #120c03;
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(150deg, #f7df98 0%, #ddb74a 52%, #c1942b 100%);
}

.language-link--topup:hover,
.language-link--topup:focus-visible {
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(102, 77, 27, 0.58), rgba(46, 36, 17, 0.56));
  color: #fff0c9;
}

.language-link--soft:hover,
.language-link--soft:focus-visible,
.language-link:not(.language-link--accent):hover,
.language-link:not(.language-link--accent):focus-visible {
  border-color: rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.08);
}

.oracle-v2__topbar .language-link--soft,
.hero-topbar .language-link--soft,
.topbar-actions--compact .language-link--soft,
.topbar-actions--compact .language-dropdown__trigger {
  background: transparent;
}

body.oracle-ui .topbar-actions-inline--compact,
body.oracle-ui .language-switcher--compact,
body.oracle-ui .language-switcher--dropdown,
body.oracle-ui .language-dropdown,
body.oracle-ui .topbar-action-group--locale,
body.oracle-ui .oracle-action-group--locale {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.14);
  box-shadow: none;
}

body.oracle-ui .oracle-v2__topbar .language-link,
body.oracle-ui .hero-topbar .language-link,
body.oracle-ui .topbar-actions--compact .language-link,
body.oracle-ui .topbar-actions--compact .language-link--button,
body.oracle-ui .topbar-actions--compact .language-dropdown__trigger,
body.oracle-ui .topbar-menu-mobile__trigger,
body.oracle-ui .oracle-v2__balance {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  color: #ffffff;
}

body.oracle-ui .hero-topbar .language-link--soft,
body.oracle-ui .oracle-v2__topbar .language-link--soft,
body.oracle-ui .topbar-actions--compact .language-link--soft,
body.oracle-ui .topbar-actions--compact .language-link--button {
  background: rgba(212, 175, 55, 0.06);
}

body.oracle-ui .topbar-actions--compact .language-link:hover,
body.oracle-ui .topbar-actions--compact .language-link:focus-visible,
body.oracle-ui .topbar-actions--compact .language-link--button:hover,
body.oracle-ui .topbar-actions--compact .language-link--button:focus-visible,
body.oracle-ui .topbar-actions--compact .language-dropdown__trigger:hover,
body.oracle-ui .topbar-actions--compact .language-dropdown__trigger:focus-visible,
body.oracle-ui .topbar-menu-mobile__trigger:hover,
body.oracle-ui .topbar-menu-mobile__trigger:focus-visible,
body.oracle-ui .topbar-menu-mobile[open] > .topbar-menu-mobile__trigger {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.68);
  color: #ffffff;
}

body.oracle-ui .language-dropdown__menu,
body.oracle-ui .topbar-menu-mobile__panel {
  background: linear-gradient(165deg, rgba(92, 67, 31, 0.9), rgba(71, 54, 101, 0.88));
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  z-index: 12000;
}

body.oracle-ui .language-dropdown__item,
body.oracle-ui .topbar-menu-mobile__panel .language-link,
body.oracle-ui .topbar-menu-mobile__panel .language-link--button {
  background: transparent;
}

body.oracle-ui .oracle-v2__topbar .language-link,
body.oracle-ui .hero-topbar .language-link,
body.oracle-ui .topbar-actions--compact .language-link,
body.oracle-ui .topbar-actions--compact .language-link--button,
body.oracle-ui .topbar-actions--compact .language-dropdown__trigger,
body.oracle-ui .topbar-menu-mobile__trigger {
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 7px 11px;
}

body.oracle-ui .hero--horoscope .topbar-menu-mobile__trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  color: #ffffff;
}

.topbar-menu-mobile__trigger {
  color: var(--txt);
  border-color: rgba(212, 175, 55, 0.26);
  background: rgba(17, 17, 26, 0.78);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.topbar-menu-mobile__trigger:hover,
.topbar-menu-mobile__trigger:focus-visible,
.topbar-menu-mobile[open] > .topbar-menu-mobile__trigger {
  color: #fff4d5;
  border-color: rgba(212, 175, 55, 0.44);
  background: rgba(212, 175, 55, 0.12);
}

.oracle-action-group,
.topbar-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oracle-action-group--meta {
  margin-right: 2px;
}

.oracle-action-group--primary,
.oracle-action-group--locale {
  margin-left: auto;
}

.oracle-action-group--primary + .oracle-action-group--locale {
  margin-left: 0;
}

.topbar-actions--compact {
  gap: 10px;
}

.topbar-actions-inline--compact,
.language-switcher--compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(14, 14, 22, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-stage {
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.auth-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(20, 19, 31, 0.92), rgba(12, 12, 20, 0.88));
  backdrop-filter: none;
}

.auth-card__head {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-card__titles {
  display: grid;
  gap: 4px;
}

.auth-card__eyebrow {
  color: #d8c796;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.auth-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(15, 15, 24, 0.82);
}

.auth-mode-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #d8d4e2;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-mode-switch__item:hover,
.auth-mode-switch__item:focus-visible {
  color: #fff3cf;
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
}

.auth-mode-switch__item.is-active {
  color: #fff2c8;
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card__error {
  margin-bottom: 12px;
}

.auth-card__form {
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  color: #d8c89b;
}

.auth-card__form input {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #edf3fb;
  background: rgba(8, 11, 19, 0.74);
}

.auth-card__form input:-webkit-autofill,
.auth-card__form input:-webkit-autofill:hover,
.auth-card__form input:-webkit-autofill:focus,
.auth-card__form input:-webkit-autofill:active {
  -webkit-text-fill-color: #edf3fb;
  caret-color: #edf3fb;
  box-shadow: 0 0 0 1000px rgba(8, 11, 19, 0.92) inset;
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 11, 19, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-card__actions {
  display: flex;
  justify-content: stretch;
  margin-top: 4px;
}

.auth-card__submit {
  width: 100%;
  min-height: 44px;
}

.auth-switch--compact {
  margin-top: 12px;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.auth-switch--compact .language-link {
  min-height: 32px;
  padding: 6px 12px;
}

.language-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 999px;
  background: rgba(17, 17, 26, 0.82);
  color: var(--txt);
  cursor: pointer;
  list-style: none;
}

.language-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.language-dropdown__value {
  color: #f7deb0;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-dropdown__chevron {
  width: 8px;
  height: 8px;
  border-right: 1px solid #f7deb0;
  border-bottom: 1px solid #f7deb0;
  transform: rotate(45deg) translateY(-1px);
}

.language-dropdown {
  position: relative;
}

.oracle-more-dropdown {
  position: relative;
  z-index: 5000;
}

.oracle-more-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 999px;
  background: rgba(17, 17, 26, 0.82);
  color: var(--txt);
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
}

.oracle-more-dropdown__trigger,
.language-dropdown__trigger,
.topbar-menu-mobile__trigger,
.oracle-v2__balance {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 46px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(17, 17, 26, 0.66);
  color: #dbd7e4;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.locale-link:hover,
.locale-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(24, 23, 37, 0.82);
}

.locale-link.is-active {
  color: #fff0c4;
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.14);
}

body.oracle-ui .hero-topbar {
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 4100;
}

body.oracle-ui .hero--subpage {
  padding: 22px 22px 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.14), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(72, 95, 164, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 17, 26, 0.92), rgba(11, 11, 18, 0.92));
  border-color: rgba(212, 175, 55, 0.2);
  backdrop-filter: none;
  overflow: visible;
  z-index: 4000;
}

body.oracle-ui .topbar-actions--compact {
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  position: relative;
  z-index: 4200;
}

body.oracle-ui .topbar-actions-inline--compact,
body.oracle-ui .language-switcher--compact {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.oracle-ui .subpage-header {
  margin-top: 14px;
  max-width: 860px;
  gap: 12px;
}

body.oracle-ui .subpage-header h1 {
  line-height: 0.98;
  letter-spacing: 0.03em;
}

body.oracle-ui .subpage-header p {
  max-width: 62ch;
  color: #b9b9ca;
}

.subpage-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subpage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(14, 16, 25, 0.84);
  color: #e6e1d6;
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.subpage-pill strong {
  color: #fff1c8;
  font-weight: 700;
}

.subpage-pill--accent {
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.18), rgba(70, 52, 16, 0.26));
  color: #f5e7bd;
}

.page-shell--narrow {
  width: min(760px, calc(100% - 24px));
}

.auth-page .subpage-header {
  max-width: 620px;
}

.oracle-more-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.oracle-more-dropdown__chevron {
  width: 8px;
  height: 8px;
  border-right: 1px solid #f7deb0;
  border-bottom: 1px solid #f7deb0;
  transform: rotate(45deg) translateY(-1px);
}

.oracle-more-dropdown__menu {
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + 8px);
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: rgba(14, 14, 22, 0.96);
  box-shadow: var(--shadow);
  z-index: 12000;
  display: grid;
  gap: 8px;
  text-align: right;
}

.oracle-more-dropdown__label {
  margin: 0;
  color: #d8c89b;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-more-dropdown__example {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  background: rgba(20, 20, 31, 0.72);
  padding: 8px 10px;
}

.oracle-more-dropdown__example p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #e2deef;
}

.oracle-more-dropdown__links {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.oracle-more-dropdown__link {
  display: block;
  text-decoration: none;
  color: #e9eef6;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  background: rgba(20, 20, 31, 0.82);
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.83rem;
  line-height: 1.25;
  text-align: right;
}

.oracle-more-dropdown__link:hover {
  border-color: rgba(212, 175, 55, 0.46);
  background: rgba(40, 34, 20, 0.38);
}

.language-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 14, 22, 0.94);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  z-index: 120;
}

.language-dropdown__item {
  color: var(--txt);
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
}

.language-dropdown__item:hover,
.language-dropdown__item.is-active {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.12);
}

.oracle-v2__hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(14, 13, 22, 0.58), rgba(8, 8, 14, 0.5));
  min-height: min(70vh, 620px);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.oracle-v2__hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.6;
  filter: saturate(1.1) contrast(1.03) brightness(1.05);
}

.oracle-v2__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 12, 0.12) 0%, rgba(7, 7, 12, 0.5) 100%),
    radial-gradient(circle at 70% 20%, rgba(255, 220, 120, 0.18), transparent 42%);
}

.oracle-v2__hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 26px 44px;
  text-align: center;
}

.oracle-v2__kicker {
  margin: 0 0 12px;
  color: #f9df9d;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.oracle-v2__hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: var(--font-display-spacing);
}

.copy-mobile-short {
  display: none;
}

.oracle-v2__sub {
  margin: 16px auto 0;
  max-width: 760px;
  color: #dddbe8;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.oracle-v2__hero-user {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(16, 14, 24, 0.78);
  color: #f6deb0;
  font-size: 0.86rem;
}

.oracle-v2__trust {
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  font-size: 0.86rem;
  color: #d1cfdf;
}

.oracle-v2__hero-how {
  margin: 18px auto 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.oracle-v2__hero-how p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: rgba(14, 13, 23, 0.68);
  color: #d7d5e3;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 10px 11px;
}

.oracle-v2__hero-how span {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f7df9f;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(20, 17, 31, 0.86);
}

.oracle-v2__question,
.oracle-v2__table-stage,
.oracle-v2__results-panel,
.oracle-v2__example,
.oracle-archive-cta,
.site-footer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(21, 21, 35, 0.86), rgba(12, 12, 20, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.oracle-v2__question h2,
.oracle-v2__example h2,
.oracle-archive-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: var(--font-display-spacing);
}

.oracle-v2__question {
  margin-bottom: 18px;
  padding: 18px;
}

.oracle-v2__question-form {
  display: grid;
  gap: 16px;
}

.oracle-v2__question-box {
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: rgba(16, 15, 25, 0.74);
  padding: 14px;
}

.oracle-v2__question-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #f4e8c2;
}

.oracle-v2__question-box textarea,
.follow-up-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 128px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(11, 11, 18, 0.88);
  color: var(--txt);
  font: inherit;
  line-height: 1.55;
  padding: 12px 14px;
  outline: none;
}

.oracle-v2__question-box textarea::placeholder,
.follow-up-form textarea::placeholder {
  color: rgba(210, 210, 220, 0.32);
}

.oracle-v2__question-box textarea:focus,
.follow-up-form textarea:focus {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.oracle-v2__question-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.oracle-v2__reveal.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(212, 175, 55, 0.56);
  background: linear-gradient(115deg, #d4af37 0%, #f1cd62 50%, #b68b24 100%);
  color: #140e02;
  box-shadow:
    0 0 16px rgba(212, 175, 55, 0.32),
    inset 0 1px 0 rgba(255, 247, 221, 0.55);
  animation: oraclePulse 2.8s ease-in-out infinite;
}

.oracle-v2__reveal.submit-button:hover {
  transform: translateY(-1px);
}

.oracle-v2__quick-head p {
  margin: 0 0 10px;
  color: var(--muted);
}

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

.oracle-v2__quick-card {
  position: relative;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 222, 140, 0.23), transparent 42%),
    linear-gradient(165deg, rgba(26, 21, 36, 0.95), rgba(12, 12, 20, 0.95));
  color: var(--txt);
  padding: 12px 11px;
  cursor: pointer;
  min-height: 142px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.oracle-v2__quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 18px rgba(212, 175, 55, 0.22);
}

.oracle-v2__quick-card strong {
  display: block;
  font-family: var(--font-display);
  margin-top: 8px;
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: var(--font-display-spacing);
}

.oracle-v2__quick-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.oracle-v2__quick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  color: #f5dfa7;
}

.oracle-v2__table-stage {
  margin-bottom: 18px;
  padding: 16px;
}

.oracle-v2__table-surface {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(110, 49, 125, 0.18), transparent 52%),
    radial-gradient(circle at 70% 75%, rgba(212, 175, 55, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(22, 14, 26, 0.95), rgba(14, 10, 20, 0.98));
}

.oracle-v2__table-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 230, 190, 0.12), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 230, 190, 0.1), transparent 45%);
  filter: blur(14px);
}

.oracle-v2__deck {
  position: relative;
  width: 118px;
  height: 172px;
  transform-style: preserve-3d;
  perspective: 900px;
}

.oracle-v2__deck-card {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 221, 140, 0.16), transparent 40%),
    linear-gradient(180deg, #1f1a31 0%, #0f0f1a 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.oracle-v2__deck-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.oracle-v2__deck-card:nth-child(1) { transform: translateY(0) rotate(-2deg); }
.oracle-v2__deck-card:nth-child(2) { transform: translateY(3px) rotate(1deg); }
.oracle-v2__deck-card:nth-child(3) { transform: translateY(6px) rotate(-1deg); }
.oracle-v2__deck-card:nth-child(4) { transform: translateY(9px) rotate(1deg); }
.oracle-v2__deck-card:nth-child(5) { transform: translateY(12px) rotate(0.5deg); }

.oracle-v2__deck.is-shuffling .oracle-v2__deck-card:nth-child(1) {
  animation: deckShuffle1 1.2s ease-in-out infinite;
}
.oracle-v2__deck.is-shuffling .oracle-v2__deck-card:nth-child(2) {
  animation: deckShuffle2 1.2s ease-in-out infinite;
}
.oracle-v2__deck.is-shuffling .oracle-v2__deck-card:nth-child(3) {
  animation: deckShuffle3 1.2s ease-in-out infinite;
}
.oracle-v2__deck.is-shuffling .oracle-v2__deck-card:nth-child(4),
.oracle-v2__deck.is-shuffling .oracle-v2__deck-card:nth-child(5) {
  animation: deckShuffle4 1.2s ease-in-out infinite;
}

.oracle-v2__table-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: rgba(240, 226, 188, 0.86);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.oracle-v2__results {
  margin-bottom: 18px;
}

.oracle-v2__results-panel {
  padding: 0;
  min-height: 0;
}

.oracle-reading {
  display: grid;
  gap: 0;
}

.oracle-reading__spread-wrap {
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 48, 105, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(24, 15, 30, 0.95), rgba(12, 10, 19, 0.95));
  padding: 14px;
}

.oracle-reading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.oracle-pill {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.78rem;
  color: #e8dfc6;
  background: rgba(14, 13, 22, 0.62);
}

.oracle-reading__spread {
  display: grid;
  gap: 12px;
}

.oracle-reading__spread.layout-single_card {
  grid-template-columns: minmax(0, 220px);
  justify-content: center;
}

.oracle-reading__spread.layout-three_card,
.oracle-reading__spread.layout-path_spread,
.oracle-reading__spread.layout-day_pulse_spread,
.oracle-reading__spread.layout-yes_no_spread,
.oracle-reading__spread.layout-timing_window_spread,
.oracle-reading__spread.layout-clarification_spread {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oracle-reading__spread.layout-five_card,
.oracle-reading__spread.layout-relationship_spread,
.oracle-reading__spread.layout-deep_spread {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.oracle-card-slot {
  position: relative;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease;
  opacity: 1;
}

.oracle-card-slot__position {
  margin-bottom: 6px;
  color: #f7df9f;
  font-size: 0.8rem;
  text-align: center;
}

.oracle-card-shell {
  perspective: 1200px;
}

.oracle-card-shell__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform 0.62s ease;
}

.oracle-card-shell__face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.oracle-card-shell__face--back {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 219, 135, 0.18), transparent 44%),
    linear-gradient(180deg, #231d37 0%, #11111a 100%);
}

.oracle-card-shell__face--back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.oracle-card-shell__face--front {
  transform: rotateY(180deg);
}

.oracle-card-shell__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oracle-card-slot__meta {
  margin-top: 7px;
  text-align: center;
}

.oracle-card-slot__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.22;
  letter-spacing: var(--font-display-spacing);
}

.oracle-card-slot__meta span {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.oracle-card-slot.is-predeal {
  opacity: 0;
  transform: translate(var(--from-x, 0), var(--from-y, 0)) rotate(var(--from-r, 0deg)) scale(0.36);
}

.oracle-card-slot.is-dealt {
  opacity: 1;
  transform: translate(0, 0) rotate(0) scale(1);
}

.oracle-card-slot.is-flipped .oracle-card-shell__inner {
  transform: rotateY(180deg);
}

.oracle-card-slot.is-flipped .oracle-card-shell {
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.34));
}

.oracle-card-slot:hover {
  transform: translateY(-4px) scale(1.03);
}

.oracle-card-slot.is-focus .oracle-card-shell {
  filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.65));
}

.oracle-reading__text {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.oracle-block {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(18, 18, 28, 0.72);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.oracle-block:last-child {
  margin-bottom: 0;
}

.oracle-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.oracle-block h3,
.oracle-block h4 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  letter-spacing: var(--font-display-spacing);
}

.oracle-block p,
.oracle-block small {
  margin: 0;
  color: #dedce9;
}

.oracle-block p + p {
  margin-top: 7px;
}

.oracle-position-list {
  display: grid;
  gap: 8px;
}

.oracle-position {
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 10px;
  padding: 9px;
  background: rgba(12, 12, 20, 0.44);
}

.oracle-position small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.oracle-block--chat {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

.oracle-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 175, 55, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(15, 20, 31, 0.96));
}

.oracle-chat-head__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.48);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 236, 178, 0.36), transparent 48%),
    linear-gradient(160deg, rgba(53, 33, 63, 0.95), rgba(28, 22, 42, 0.95));
  color: #f6ddb0;
  font-size: 0.88rem;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.oracle-chat-head__meta strong {
  display: block;
  font-family: var(--font-display);
  color: #f3dca4;
  font-size: 0.94rem;
  line-height: 1.15;
  letter-spacing: var(--font-display-spacing);
}

.oracle-chat-head__identity {
  display: block;
  color: #9bb0c7;
  font-size: 0.76rem;
  line-height: 1.2;
}

.oracle-chat-head__status-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  background: rgba(20, 28, 40, 0.86);
  color: #c9d6e6;
  font-size: 0.74rem;
}

.oracle-chat-head__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fe097;
  box-shadow: 0 0 8px rgba(95, 224, 151, 0.8);
}

.discussion-block .chat-suggestions {
  margin: 0;
  padding: 8px 10px 6px;
  background: #111b21;
}

.chat-suggestions-label {
  display: none;
}

.chat-suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-suggestions-row[hidden] {
  display: none !important;
}

.chat-suggestion-button,
.chat-action-button,
.discussion-context-button {
  border: 1px solid rgba(89, 122, 165, 0.35);
  border-radius: 999px;
  background: rgba(41, 59, 82, 0.88);
  color: #dbe8f7;
  font: inherit;
  cursor: pointer;
  min-height: 32px;
  padding: 6px 11px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.chat-suggestion-button:hover,
.chat-action-button:hover,
.discussion-context-button:hover {
  border-color: rgba(126, 164, 213, 0.56);
  background: rgba(53, 77, 107, 0.95);
}

.chat-shell {
  position: relative;
  border: 1px solid rgba(76, 101, 133, 0.4);
  border-radius: 18px;
  background: #111b21;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.chat-shell--pending .chat-stream {
  max-height: none;
}

.chat-stream {
  max-height: 520px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px 12px 10px;
  background:
    radial-gradient(circle at 50% 120%, rgba(152, 122, 76, 0.09), transparent 46%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 16px
    ),
    #0b141a;
}

.chat-turn {
  display: flex;
  width: 100%;
}

.chat-turn--user {
  justify-content: flex-end;
}

.chat-turn--assistant {
  justify-content: flex-start;
}

.chat-bubble {
  position: relative;
  border-radius: 16px;
  padding: 10px 12px;
  max-width: min(88%, 640px);
  line-height: 1.45;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + p {
  margin-top: 6px;
}

.chat-bubble--user {
  color: #edf3ff;
  border: 1px solid rgba(119, 161, 222, 0.44);
  border-bottom-right-radius: 6px;
  background: linear-gradient(155deg, rgba(45, 86, 146, 0.97), rgba(37, 79, 139, 0.96));
}

.chat-bubble--user::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -1px;
  width: 10px;
  height: 12px;
  background: rgba(31, 57, 108, 0.93);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.chat-bubble--assistant {
  color: #eef3f7;
  border: 1px solid rgba(79, 104, 129, 0.44);
  border-bottom-left-radius: 6px;
  background: linear-gradient(165deg, rgba(33, 45, 57, 0.97), rgba(29, 39, 51, 0.96));
}

.chat-bubble--assistant::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -1px;
  width: 10px;
  height: 12px;
  background: rgba(29, 39, 51, 0.96);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.chat-turn--assistant-root .chat-bubble--assistant,
.chat-turn--clarification .chat-bubble--assistant {
  width: 100%;
  max-width: 100%;
}

.chat-role {
  color: #9ab5d4;
  font-size: 0.68rem;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-cards-strip {
  margin-top: 12px;
  display: grid;
  width: 100%;
  gap: 12px;
  align-items: start;
}

.chat-cards-strip--single {
  grid-template-columns: minmax(240px, 320px);
  justify-content: center;
}

.chat-cards-strip--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chat-cards-strip--many {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.chat-card-thumb {
  --card-reveal-delay: 0ms;
  --card-float-delay: 0s;
  --card-float-duration: 7.4s;
  --card-float-tilt: 1.2deg;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(79, 104, 129, 0.44);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% -20%, rgba(232, 198, 120, 0.2), transparent 52%),
    linear-gradient(180deg, rgba(22, 31, 42, 0.96), rgba(14, 20, 30, 0.96));
  padding: 8px;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
  min-width: 0;
}

.chat-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 232, 177, 0.18) 48%, transparent 78%);
  opacity: 0;
  transform: translateX(-135%);
  pointer-events: none;
}

.chat-card-thumb__figure {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1536;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 13, 19, 0.92);
  display: block;
  line-height: 0;
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(212, 175, 55, 0.16);
  transform-origin: center 82%;
}

.chat-card-thumb__figure::before,
.chat-card-thumb__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chat-card-thumb__figure::before {
  inset: -10%;
  background: radial-gradient(circle at 50% 40%, rgba(237, 205, 132, 0.34), transparent 58%);
  opacity: 0;
  transform: scale(0.88);
}

.chat-card-thumb__figure::after {
  inset: 5px;
  border-radius: 8px;
  border: 1px solid rgba(240, 216, 154, 0.34);
  opacity: 0.68;
}

.chat-card-thumb__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transform-origin: center center;
}

.chat-card-thumb__meta strong {
  display: block;
  font-size: 0.8rem;
  color: #f3e8c7;
  line-height: 1.2;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: var(--font-display-spacing);
}

.chat-card-thumb__meta span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #a7bbd2;
  line-height: 1.25;
  text-align: center;
}

.chat-card-thumb.is-revealed,
.mini-card.is-revealed {
  animation: chatCardManifest 0.92s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--card-reveal-delay, 0ms);
}

.chat-card-thumb.is-revealed::before {
  animation: chatCardSheen 1.35s ease-out both;
  animation-delay: calc(var(--card-reveal-delay, 0ms) + 120ms);
}

.chat-card-thumb.is-revealed .chat-card-thumb__figure,
.mini-card.is-revealed .mini-card-figure {
  animation: chatCardFloat var(--card-float-duration, 7.4s) ease-in-out infinite;
  animation-delay: calc(var(--card-reveal-delay, 0ms) + var(--card-float-delay, 0s));
}

.chat-card-thumb.is-revealed .chat-card-thumb__figure::before,
.mini-card.is-revealed .mini-card-figure::before {
  animation: chatCardAura calc(var(--card-float-duration, 7.4s) + 1.6s) ease-in-out infinite;
  animation-delay: calc(var(--card-reveal-delay, 0ms) + var(--card-float-delay, 0s));
}

.chat-card-thumb.is-revealed .chat-card-thumb__figure img,
.mini-card.is-revealed .mini-card-figure img {
  animation: chatCardBreath var(--card-float-duration, 7.4s) ease-in-out infinite;
  animation-delay: calc(var(--card-reveal-delay, 0ms) + var(--card-float-delay, 0s));
}

.chat-card-thumb:hover,
.mini-card:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(212, 175, 55, 0.18);
}

.chat-turn--pending {
  pointer-events: none;
}

.chat-bubble--pending {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding-block: 11px;
  border-color: rgba(107, 125, 149, 0.34);
  background:
    radial-gradient(circle at 14% 20%, rgba(212, 175, 55, 0.08), transparent 32%),
    linear-gradient(165deg, rgba(28, 38, 49, 0.94), rgba(24, 32, 43, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.chat-pending-spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 30px;
}

.chat-pending-label {
  margin: 0;
  color: #ddd7cb;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
}

.chat-pending-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff4d8 0%, #e7c877 45%, #caa04a 100%);
  box-shadow:
    0 0 0 1px rgba(244, 220, 169, 0.1),
    0 0 12px rgba(212, 175, 55, 0.24);
  opacity: 0.28;
  transform: translateY(0) scale(0.88);
  animation: pendingDotGlow 1.35s ease-in-out infinite;
  animation-delay: var(--pending-dot-delay, 0s);
}

.chat-support ul {
  margin: 6px 0 0 16px;
  color: var(--muted);
}

.clarify-spread-form {
  margin-top: 8px;
}

.oracle-insight-details {
  margin-top: 8px;
}

.oracle-insight-details summary {
  cursor: pointer;
  color: #f4deaa;
}

.mini-spread-board {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  width: 100%;
  align-items: start;
}

.mini-spread-board--single {
  grid-template-columns: minmax(190px, 250px);
  justify-content: center;
}

.mini-spread-board--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-spread-board--many {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  --card-reveal-delay: 0ms;
  --card-float-delay: 0s;
  --card-float-duration: 7s;
  --card-float-tilt: 1deg;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -16%, rgba(232, 198, 120, 0.18), transparent 52%),
    rgba(14, 14, 22, 0.88);
  cursor: zoom-in;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.mini-card-figure {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1536;
  background: rgba(8, 13, 19, 0.92);
  display: block;
  line-height: 0;
  transform-origin: center 82%;
}

.mini-card-figure::before,
.mini-card-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mini-card-figure::before {
  inset: -12%;
  background: radial-gradient(circle at 50% 40%, rgba(237, 205, 132, 0.28), transparent 58%);
  opacity: 0;
  transform: scale(0.88);
}

.mini-card-figure::after {
  inset: 5px;
  border-radius: 8px;
  border: 1px solid rgba(240, 216, 154, 0.28);
  opacity: 0.65;
}

.mini-card-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
}

.mini-card-meta {
  padding: 7px;
}

.mini-card-meta strong {
  font-size: 0.75rem;
  display: block;
}

.mini-card-meta span {
  color: var(--muted);
  font-size: 0.7rem;
}

.chat-card-viewer {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(215, 184, 120, 0.12), transparent 52%),
    rgba(8, 11, 16, 0.9);
  backdrop-filter: blur(2px);
}

.chat-card-viewer.is-open {
  display: grid;
}

.chat-card-viewer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.44);
  background: rgba(17, 23, 34, 0.9);
  color: #f3ddb0;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-card-viewer__stage {
  width: min(92%, 360px);
  max-height: 92%;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.chat-card-viewer__image {
  width: 100%;
  max-height: min(72vh, 520px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(7, 9, 14, 0.96);
}

.chat-card-viewer__caption {
  margin: 0;
  text-align: center;
  color: #d7c79e;
  font-size: 0.82rem;
  line-height: 1.25;
}

.follow-up-form {
  padding: 8px;
  display: grid;
  gap: 8px;
  border-top: 0;
  background: #111b21;
}

.chat-entry-form {
  margin: 0;
}

.follow-up-form--chat {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.follow-up-form--chat textarea {
  min-height: 44px;
  max-height: 180px;
  margin: 0;
  border-radius: 22px;
  border: 1px solid rgba(79, 104, 129, 0.5);
  background: #0d161e;
  color: #edf3fb;
  padding: 10px 14px;
}

.follow-up-form--chat .form-bar {
  display: flex;
  align-items: end;
}

.follow-up-form--chat .submit-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.62);
  padding: 0;
  white-space: nowrap;
  background: linear-gradient(150deg, #f2d37a 0%, #d4af37 52%, #b48922 100%);
  box-shadow:
    0 8px 18px rgba(93, 66, 12, 0.4),
    inset 0 1px 0 rgba(255, 245, 210, 0.62);
  color: transparent;
  font-size: 0;
  position: relative;
}

.follow-up-form--chat .submit-button::before {
  content: "➤";
  font-size: 17px;
  color: #231702;
  transform: translateX(1px);
}

.follow-up-form--chat .submit-button:hover {
  background: linear-gradient(150deg, #f7dc8f 0%, #ddb74a 52%, #be952c 100%);
  box-shadow:
    0 10px 22px rgba(101, 73, 16, 0.5),
    inset 0 1px 0 rgba(255, 247, 220, 0.74);
}

.discussion-context {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(79, 104, 129, 0.5);
  border-radius: 12px;
  padding: 7px 9px;
  background: #0d161e;
}

.discussion-context span {
  color: #c9ddf5;
  font-size: 0.81rem;
}

.chat-error {
  margin: 8px 12px 0;
}

.chat-turn.is-fresh {
  animation: chatTurnIn 0.32s ease;
}


.nested-chat-thread {
  display: grid;
  gap: 8px;
}

.oracle-v2__example {
  padding: 18px;
  margin-bottom: 18px;
}

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

.oracle-v2__example-grid article {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(17, 17, 26, 0.62);
  padding: 12px;
}

.oracle-v2__example-grid h3 {
  margin: 0 0 7px;
  color: #f8e0a0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: var(--font-display-spacing);
}

.oracle-v2__example-grid p {
  margin: 0;
  color: #dbd9e5;
}

.account-grid--embedded {
  margin-top: 18px;
}

body.oracle-ui .account-grid {
  align-items: start;
  gap: 18px;
}

body.oracle-ui .account-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 18, 28, 0.94), rgba(11, 11, 18, 0.96));
  backdrop-filter: none;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.oracle-ui .account-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 188, 0.34), transparent);
  pointer-events: none;
}

body.oracle-ui .account-card > * {
  position: relative;
  z-index: 1;
}

body.oracle-ui .account-card h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

body.oracle-ui .account-card h3 {
  margin: 0 0 12px;
  color: #f5deb0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-card__lead {
  margin-bottom: 14px;
  color: #b9b9ca;
  line-height: 1.45;
}

.account-card--feature {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(19, 19, 29, 0.94), rgba(11, 11, 18, 0.96));
}

.account-card--wallet {
  border-color: rgba(212, 175, 55, 0.22);
}

.account-card--topup {
  border-color: rgba(212, 175, 55, 0.28);
}

.account-card--topup .account-topup-button {
  margin-top: 6px;
}

.account-balance-main {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(11, 12, 20, 0.56);
}

.account-balance-label {
  color: #cabd9a;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-balance-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: #fff1c8;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.3rem);
  letter-spacing: 0.03em;
}

.account-balance-value em {
  color: #d6c18a;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.oracle-ui .metric-grid {
  gap: 10px;
}

body.oracle-ui .metric-card {
  background:
    linear-gradient(180deg, rgba(15, 17, 27, 0.88), rgba(11, 12, 20, 0.92));
  border-color: rgba(212, 175, 55, 0.14);
}

body.oracle-ui .metric-card span {
  color: #c4c0cf;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.oracle-ui .metric-card strong {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

body.oracle-ui .metric-card:not(.metric-card--compact) strong {
  font-family: var(--font-display);
  font-size: 1.36rem;
  letter-spacing: 0.04em;
}

.stack-form--panel {
  gap: 10px;
}

.stack-form--panel label {
  color: #dccb9f;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.stack-form--panel input,
.stack-form--panel select,
.stack-form--panel textarea {
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(212, 175, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 12, 19, 0.96), rgba(13, 16, 25, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stack-form--panel textarea {
  min-height: 118px;
  resize: vertical;
}

.stack-form--panel input::placeholder,
.stack-form--panel textarea::placeholder {
  color: rgba(192, 196, 210, 0.52);
}

.stack-form--panel input:focus,
.stack-form--panel select:focus,
.stack-form--panel textarea:focus {
  border-color: rgba(212, 175, 55, 0.46);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stack-form--panel .submit-button {
  justify-self: flex-start;
  min-height: 44px;
  margin-top: 4px;
}

.account-card--journal {
  background:
    radial-gradient(circle at 14% 0%, rgba(212, 175, 55, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(82, 63, 126, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(18, 18, 28, 0.94), rgba(12, 12, 20, 0.96));
}

.account-journal-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.account-journal-head h2 {
  margin-bottom: 0;
}

.oracle-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(22, 22, 34, 0.92), rgba(14, 14, 22, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.oracle-archive-search-wrap {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.oracle-archive-label {
  color: #f2ddb0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-archive-search {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 12, 19, 0.96), rgba(12, 15, 24, 0.96));
  color: var(--txt);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.oracle-archive-search::placeholder {
  color: rgba(191, 196, 211, 0.52);
}

.oracle-archive-search:focus {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.oracle-archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.oracle-filter-chip {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(16, 19, 30, 0.86);
  color: #ddd8e4;
  font: inherit;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.oracle-filter-chip:hover,
.oracle-filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(21, 25, 37, 0.96);
  color: #f3e8c7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.oracle-filter-chip.is-active {
  border-color: rgba(240, 214, 154, 0.45);
  background:
    linear-gradient(150deg, rgba(249, 230, 168, 0.92), rgba(212, 175, 55, 0.92));
  color: #2a1c05;
  box-shadow:
    0 12px 22px rgba(102, 75, 17, 0.28),
    inset 0 1px 0 rgba(255, 245, 212, 0.65);
}

.oracle-archive-list {
  display: grid;
  gap: 14px;
}

.history-row.oracle-journal-entry {
  position: relative;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(19, 20, 31, 0.95), rgba(12, 13, 22, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.history-row.oracle-journal-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(245, 225, 166, 0.9), rgba(212, 175, 55, 0.15));
}

.history-row.oracle-journal-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 36px rgba(0, 0, 0, 0.24);
}

.oracle-journal-entry .history-copy {
  gap: 10px;
}

.oracle-journal-entry .history-copy strong {
  color: #f7ecd1;
  font-size: 1.04rem;
  line-height: 1.42;
}

.oracle-journal-entry .history-meta {
  gap: 8px;
}

.oracle-journal-entry .history-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  background: rgba(15, 18, 29, 0.76);
  color: #bfc6d6;
  font-size: 0.82rem;
  line-height: 1.2;
}

.oracle-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: max-content;
}

.oracle-entry-actions .language-link {
  min-height: 40px;
  padding-inline: 14px;
  border-color: rgba(212, 175, 55, 0.28);
  background:
    linear-gradient(165deg, rgba(27, 24, 38, 0.92), rgba(17, 17, 26, 0.94));
  color: #f2ddb0;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.oracle-entry-actions .language-link:hover,
.oracle-entry-actions .language-link:focus-visible {
  border-color: rgba(240, 214, 154, 0.44);
  background:
    linear-gradient(165deg, rgba(34, 30, 46, 0.96), rgba(21, 20, 32, 0.98));
  color: #fff2cc;
}

.table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(11, 12, 19, 0.42);
}

.admin-collapsible {
  border-radius: 16px;
  border-color: rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 18, 29, 0.92), rgba(11, 11, 19, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.admin-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.admin-filter-form {
  gap: 14px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-subgrid {
  margin-top: 1rem;
}

.admin-collapsible__summary {
  padding: 13px 16px;
  background: rgba(14, 15, 24, 0.56);
}

.admin-collapsible__summary:hover {
  background: rgba(20, 22, 33, 0.72);
}

.admin-collapsible[open] > .admin-collapsible__summary {
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.admin-collapsible__content {
  padding: 14px;
}

.admin-collapsible--section > .admin-collapsible__summary {
  padding: 16px 18px;
}

.admin-collapsible__title {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.admin-collapsible__count {
  background: rgba(212, 175, 55, 0.09);
  border-color: rgba(212, 175, 55, 0.24);
}

.metric-card--accent {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(11, 12, 19, 0.28);
  border-color: rgba(212, 175, 55, 0.26);
}

.admin-collapsible .table-wrap {
  margin: 0 14px 14px;
  max-height: 420px;
  border-top: 0;
}

.data-table {
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 17, 27, 0.96);
  backdrop-filter: none;
}

.data-table td {
  color: #e8e6ef;
}

.data-table tbody tr:hover td {
  background: rgba(212, 175, 55, 0.045);
}

@media (max-width: 720px) {
  .admin-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-actions .language-link,
  .admin-filter-actions .submit-button {
    width: 100%;
    justify-content: center;
  }
}

.legal-nav-card,
.legal-document {
  border-color: rgba(212, 175, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 18, 28, 0.92), rgba(12, 12, 20, 0.94));
  backdrop-filter: none;
}

.legal-nav-link {
  border-radius: 14px;
  border-color: rgba(212, 175, 55, 0.16);
  background: rgba(15, 17, 26, 0.76);
}

.legal-nav-link:hover,
.legal-nav-link.is-active {
  border-color: rgba(212, 175, 55, 0.34);
}

.legal-document h2 {
  letter-spacing: 0.05em;
}

.archive.oracle-archive-cta {
  padding: 18px;
  margin-bottom: 18px;
}

.oracle-archive-cta p {
  color: var(--muted);
  margin-top: 0;
}

.site-footer {
  padding: 14px 16px;
}

.site-footer-copy p {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer-meta {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  background: rgba(16, 15, 24, 0.64);
  display: grid;
  gap: 5px;
}

.site-footer-meta p {
  margin: 0;
  color: #d8d6e4;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer-meta strong {
  color: #f2ddb0;
}

.site-footer-meta a {
  color: #f2ddb0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(242, 221, 176, 0.55);
}

.site-footer-meta a:hover {
  color: #f8e6bf;
  border-bottom-color: rgba(248, 230, 191, 0.85);
}

.site-footer-actions,
.site-footer-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-actions {
  align-items: stretch;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--txt);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
}

.site-footer-link--softfill {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.26);
}

.site-footer-link--softfill:hover,
.site-footer-link--softfill:focus-visible {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.34);
}

.pwa-install-card {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pwa-install-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pwa-install-card__copy strong {
  color: #e7e2d4;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.pwa-install-card__copy span {
  color: #9fa6b6;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pwa-install-card__button {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 12px;
  cursor: pointer;
  font: inherit;
}

.pwa-install-modal__dialog {
  width: min(560px, calc(100vw - 28px));
}

.pwa-install-steps {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: #ebe6d8;
}

.pwa-install-steps li {
  line-height: 1.45;
}

.pwa-install-modal__hint {
  margin: 14px 0 0;
  color: #f0d9a6;
}

.pwa-install-modal__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.alert {
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px 12px;
}

body.oracle-ui .alert {
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.form-error {
  border: 1px solid rgba(255, 90, 106, 0.45);
  background: rgba(75, 16, 26, 0.4);
  color: #ffd8de;
}

.success-alert {
  border: 1px solid rgba(78, 229, 154, 0.45);
  background: rgba(22, 74, 50, 0.35);
  color: #d5ffeb;
}

.system-note {
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: rgba(69, 56, 19, 0.28);
  color: #f4e7be;
}

.oracle-pending-stage {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.oracle-pending-spinner {
  width: 116px;
  height: 170px;
  perspective: 900px;
}

.oracle-pending-ritual-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: pendingSpin 2.1s ease-in-out infinite;
}

.oracle-pending-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: linear-gradient(180deg, #261f3b, #11111a);
}

.oracle-pending-face::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.oracle-pending-face--front {
  transform: rotateY(180deg);
}

.oracle-pending-label {
  margin: 0;
  color: #f0deb4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.submit-button.is-loading,
.oracle-v2__quick-card.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

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

.topup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.72);
}

.topup-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 28px));
  margin: 4vh auto 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(17, 16, 26, 0.97), rgba(12, 12, 20, 0.97));
  box-shadow: var(--shadow);
  padding: 18px;
  max-height: 92vh;
  overflow: auto;
}

.topup-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: rgba(10, 10, 16, 0.85);
  color: #f5e5ba;
  font-size: 20px;
  cursor: pointer;
}

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

.topup-package-card {
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(18, 18, 28, 0.78);
}

.topup-package-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: var(--font-display-spacing);
}

html[lang="ru"] .oracle-v2__hero h1,
html[lang="ru"] .oracle-v2__question h2,
html[lang="ru"] .oracle-v2__example h2,
html[lang="ru"] .oracle-archive-cta h2,
html[lang="ru"] .oracle-v2__quick-card strong,
html[lang="ru"] .oracle-card-slot__meta strong,
html[lang="ru"] .oracle-block h3,
html[lang="ru"] .oracle-block h4,
html[lang="ru"] .oracle-chat-head__meta strong,
html[lang="ru"] .chat-card-thumb__meta strong,
html[lang="ru"] .oracle-v2__example-grid h3,
html[lang="ru"] .topup-package-card h3 {
  font-weight: 600;
}

html[lang="ru"] .oracle-v2__kicker,
html[lang="ru"] .oracle-v2__trust,
html[lang="ru"] .oracle-v2__hero-how p,
html[lang="ru"] .oracle-more-dropdown__label {
  font-family: var(--font-ui);
}

.topup-package-coins {
  font-size: 1.24rem;
  font-weight: 700;
  color: #f7df9f;
}

.topup-package-price {
  margin: 4px 0 10px;
  color: #dcd9e6;
}

.oracle-horoscope-entry {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero--horoscope {
  overflow: visible;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.08), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(72, 95, 164, 0.08), transparent 32%),
    transparent;
}

.horoscope-hero-banner {
  position: relative;
  width: 100%;
  margin-top: 18px;
  margin-left: 0;
  margin-right: 0;
  background: #0d1119;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
}

.horoscope-hero-banner::after {
  content: none;
}

.horoscope-hero-banner__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(1.2) saturate(1.08) contrast(1.01);
}

.horoscope-hero-banner__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 3.8vw, 38px);
  width: min(100%, 860px);
}

.horoscope-hero-banner__content h1 {
  margin: 0;
  color: #f5f1e7;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: var(--font-display-spacing);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
}

.horoscope-hero-banner__content p {
  margin: 0;
  max-width: 54ch;
  color: rgba(235, 232, 240, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.26rem);
  line-height: 1.45;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.horoscope-hero-banner__content .subpage-header__meta {
  margin-top: 4px;
}

.hero--horoscope .subpage-header--horoscope-copy {
  margin-top: 22px;
  max-width: 920px;
}

.hero--horoscope .subpage-header--horoscope-copy::before {
  content: none;
}

.horoscope-shell {
  display: grid;
  gap: 18px;
}

.horoscope-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.horoscope-form-card,
.horoscope-info-card,
.horoscope-profile-card,
.horoscope-tabs-card,
.horoscope-empty-state {
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(165deg, rgba(20, 20, 32, 0.92), rgba(12, 12, 20, 0.9));
}

.horoscope-form-card h2,
.horoscope-info-card h2,
.horoscope-profile-card h2,
.horoscope-empty-state h2 {
  margin: 0 0 8px;
}

.horoscope-loading-card {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(13, 15, 23, 0.9);
  color: #ddd8e6;
}

.horoscope-loading-card[hidden] {
  display: none !important;
}

.pending-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pending-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.78);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.26);
  animation: horoscopePulse 1.1s ease-in-out infinite;
}

.pending-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.pending-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.horoscope-how-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.horoscope-how-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(12, 14, 22, 0.74);
}

.horoscope-how-item span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: #f1d68f;
  font-size: 0.8rem;
  font-weight: 700;
}

.horoscope-how-item p,
.horoscope-empty-state p {
  margin: 0;
  color: #dedce9;
}

.horoscope-discussion-guest {
  display: grid;
  gap: 12px;
}

.horoscope-discussion-guest p {
  margin: 0;
  color: #d9d7e3;
}

.horoscope-discussion-block {
  overflow: hidden;
}

.horoscope-chat-context {
  display: grid;
  gap: 10px;
}

.horoscope-chat-context:not(.is-active) {
  display: none;
}

.horoscope-chat-context p {
  margin: 0;
}

.chat-turn-period {
  margin: 0 0 6px;
  color: #f0d897;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-suggestions--inline {
  margin-top: 10px;
}

.horoscope-results {
  display: grid;
  gap: 18px;
}

.horoscope-profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.horoscope-profile-card__media {
  position: relative;
  aspect-ratio: 1024 / 1536;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(10, 11, 18, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.horoscope-profile-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.horoscope-profile-card__content {
  display: grid;
  gap: 12px;
}

.horoscope-profile-card__content p {
  margin: 0;
}

.horoscope-tabs-card {
  overflow: hidden;
}

.horoscope-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.horoscope-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(15, 17, 27, 0.84);
  color: #d9d7e2;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.horoscope-tab:hover,
.horoscope-tab:focus-visible,
.horoscope-tab.is-active {
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(37, 31, 19, 0.86);
  color: #f5ddb1;
  transform: translateY(-1px);
}

.horoscope-panel {
  display: none;
}

.horoscope-panel.is-active {
  display: block;
}

.horoscope-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.horoscope-panel__head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  letter-spacing: var(--font-display-spacing);
  font-size: clamp(1.22rem, 2vw, 1.7rem);
}

.horoscope-period-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.horoscope-cards {
  display: grid;
  gap: 12px;
}

.horoscope-card-display {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(12, 14, 22, 0.76);
}

.horoscope-card-display__figure {
  position: relative;
  width: 88px;
  aspect-ratio: 1024 / 1536;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(8, 10, 15, 0.9);
}

.horoscope-card-display__figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.horoscope-card-display__meta {
  display: grid;
  gap: 4px;
}

.horoscope-card-display__meta small {
  color: #9fa9bb;
}

.horoscope-card-display__meta strong {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-spacing);
}

.horoscope-card-display__meta span {
  color: #decf9d;
  font-size: 0.82rem;
}

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

.horoscope-copy-grid__wide {
  grid-column: 1 / -1;
}

.horoscope-keywords {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.horoscope-keyword {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(18, 20, 29, 0.78);
  color: #e8e3d6;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .oracle-v2__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .oracle-v2__topbar-actions {
    justify-content: flex-end;
    align-items: stretch;
    width: 100%;
  }

  .oracle-v2__hero {
    min-height: auto;
  }

  .oracle-v2__hero-how,
  .oracle-v2__quick-grid,
  .oracle-v2__example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-reading__spread.layout-five_card,
  .oracle-reading__spread.layout-relationship_spread,
  .oracle-reading__spread.layout-deep_spread {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-cards-strip--many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-spread-board--many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topup-package-grid {
    grid-template-columns: 1fr;
  }

  .pwa-install-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .pwa-install-card__button {
    width: auto;
  }

  .oracle-archive-toolbar {
    grid-template-columns: 1fr;
  }

  .oracle-archive-filters {
    justify-content: flex-start;
  }

  .auth-card {
    max-width: 100%;
  }

  .oracle-action-group--primary,
  .oracle-action-group--locale {
    margin-left: 0;
  }

  body.oracle-ui .topbar-actions--compact .topbar-actions-inline--compact,
  body.oracle-ui .topbar-actions--compact .topbar-action-group--menu-duplicate {
    display: none !important;
  }

  .oracle-action-group--meta,
  .oracle-action-group--primary,
  .oracle-action-group--locale,
  .topbar-action-group--locale,
  .topbar-menu-mobile {
    width: auto;
    max-width: 100%;
    margin-left: auto;
  }

  .oracle-action-group--primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .oracle-action-group--primary > .language-link,
  .oracle-action-group--primary > .language-link--button {
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }

  .topbar-actions--compact {
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .oracle-action-group--locale,
  .topbar-action-group--locale {
    width: auto;
    max-width: 100%;
  }

  .language-switcher--dropdown,
  .language-dropdown,
  .topbar-menu-mobile,
  .topbar-menu-mobile__trigger {
    width: auto;
    max-width: 100%;
    margin-left: auto;
  }

  .language-dropdown__trigger {
    width: auto;
    min-width: min(220px, calc(100vw - 24px));
    justify-content: space-between;
  }

  .language-dropdown__value {
    min-width: 0;
    margin-left: auto;
    text-align: right;
  }

  .topbar-actions--compact .language-dropdown__label {
    display: none;
  }

  .language-dropdown__menu {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
  }

  .topbar-menu-mobile__trigger {
    width: fit-content;
    min-width: 0;
    max-width: calc(100vw - 24px);
    justify-content: space-between;
    margin-left: auto;
    flex-shrink: 1;
  }

  .language-switcher--compact,
  .topbar-actions-inline--compact {
    width: 100%;
  }

  .topbar-menu-mobile__panel {
    justify-items: stretch;
    text-align: right;
  }

  .topbar-menu-mobile__panel .language-link,
  .topbar-menu-mobile__panel .language-link--button,
  .topbar-menu-mobile__balance {
    justify-content: flex-end;
    text-align: right;
    padding-inline: 10px 14px;
  }

  .topbar-menu-mobile__group {
    justify-items: end;
    text-align: right;
  }

  .topbar-menu-mobile__langs {
    width: 100%;
  }

  .topbar-menu-mobile__langs .language-link {
    width: 100%;
  }

  .subpage-header__meta {
    gap: 8px;
  }

  .subpage-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .horoscope-shell__grid,
  .horoscope-period-layout,
  .horoscope-profile-card {
    grid-template-columns: 1fr;
  }

  .horoscope-profile-card__media {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .oracle-v2__app {
    padding: 14px 12px 34px;
  }

  .hero--horoscope .horoscope-hero-banner,
  .hero--horoscope .subpage-header--horoscope-copy {
    display: none;
  }

  .copy-mobile-full {
    display: none;
  }

  .copy-mobile-short {
    display: block;
  }

  .hero--subpage .subpage-header p,
  .oracle-v2__trust,
  .oracle-v2__hero-how {
    display: none;
  }

  .language-link,
  .oracle-v2__balance,
  .language-dropdown__trigger,
  .oracle-more-dropdown__trigger,
  .topbar-menu-mobile__trigger,
  .subpage-pill,
  .submit-button,
  .chat-suggestion-button,
  .horoscope-keyword,
  .oracle-filter-chip {
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .language-link,
  .oracle-v2__balance,
  .language-dropdown__trigger,
  .oracle-more-dropdown__trigger,
  .topbar-menu-mobile__trigger,
  .subpage-pill,
  .submit-button {
    min-height: 32px;
    padding: 6px 10px;
  }

  .oracle-v2__question h2,
  .oracle-v2__example h2,
  body.oracle-ui .account-card h2,
  .horoscope-form-card h2,
  .horoscope-info-card h2,
  .horoscope-profile-card h2,
  .horoscope-tabs-card h2,
  .horoscope-empty-state h2,
  .oracle-block h3,
  .oracle-block h4 {
    font-size: 1.08rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .chat-suggestions-label,
  .topbar-menu-mobile__label,
  .oracle-more-dropdown__label {
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }

  .horoscope-hero-banner__content {
    gap: 8px;
    width: 100%;
    max-width: min(100%, 100%);
    padding: 12px 12px 14px;
  }

  .horoscope-hero-banner__content h1 {
    max-width: 9ch;
    font-size: clamp(1.34rem, 6vw, 1.96rem);
    line-height: 0.94;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html[lang="ru"] .horoscope-hero-banner__content h1,
  html[lang="de"] .horoscope-hero-banner__content h1,
  html[lang="th"] .horoscope-hero-banner__content h1,
  html[lang="zh"] .horoscope-hero-banner__content h1 {
    font-size: clamp(1.18rem, 5.4vw, 1.72rem);
    line-height: 0.92;
    letter-spacing: 0;
  }

  .horoscope-hero-banner__content p {
    max-width: 30ch;
    font-size: 0.88rem;
    line-height: 1.3;
  }

  body.oracle-ui .subpage-header h1,
  .subpage-header h1,
  .oracle-v2__hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    line-height: 1;
    letter-spacing: 0.01em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html[lang="ru"] .oracle-v2__sub,
  html[lang="de"] .oracle-v2__sub,
  html[lang="th"] .oracle-v2__sub,
  html[lang="zh"] .oracle-v2__sub {
    font-size: 1rem;
    line-height: 1.42;
  }

  html[lang="ru"] .oracle-v2__quick-card strong,
  html[lang="ru"] .oracle-card-slot__meta strong,
  html[lang="ru"] .oracle-chat-head__meta strong,
  html[lang="ru"] .chat-card-thumb__meta strong {
    letter-spacing: 0.01em;
  }

  .oracle-horoscope-entry {
    align-items: stretch;
    flex-direction: column;
  }

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

  .horoscope-copy-grid {
    grid-template-columns: 1fr;
  }

  .horoscope-card-display {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .horoscope-card-display__figure {
    width: 76px;
  }

  .oracle-v2__hero-how,
  .oracle-v2__quick-grid,
  .oracle-v2__example-grid,
  .oracle-reading__spread.layout-three_card,
  .oracle-reading__spread.layout-path_spread,
  .oracle-reading__spread.layout-day_pulse_spread,
  .oracle-reading__spread.layout-yes_no_spread,
  .oracle-reading__spread.layout-timing_window_spread,
  .oracle-reading__spread.layout-clarification_spread {
    grid-template-columns: 1fr;
  }

  .oracle-reading__spread.layout-five_card,
  .oracle-reading__spread.layout-relationship_spread,
  .oracle-reading__spread.layout-deep_spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-cards-strip--single {
    grid-template-columns: minmax(210px, 260px);
  }

  .chat-cards-strip--three,
  .chat-cards-strip--many,
  .mini-spread-board--three,
  .mini-spread-board--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-cards-strip--three > .chat-card-thumb:last-child:nth-child(odd),
  .chat-cards-strip--many > .chat-card-thumb:last-child:nth-child(odd),
  .mini-spread-board--three > .mini-card:last-child:nth-child(odd),
  .mini-spread-board--many > .mini-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: center;
  }

  .mini-spread-board {
    gap: 6px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-card-thumb {
    gap: 6px;
    padding: 6px;
  }

  .chat-card-thumb__figure {
    width: 100%;
  }

  .chat-card-thumb__meta strong {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .chat-card-thumb__meta span {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .mini-card-meta {
    padding: 5px;
  }

  .mini-card-meta strong {
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mini-card-meta span {
    display: none;
  }

  .chat-card-viewer {
    padding: 10px;
  }

  .chat-card-viewer__stage {
    width: min(96%, 300px);
  }

  .chat-card-viewer__image {
    max-height: min(64vh, 430px);
  }

  .follow-up-form--chat {
    grid-template-columns: 1fr;
  }

  .follow-up-form--chat .form-bar {
    justify-content: flex-end;
  }

  .account-card--journal {
    padding: 18px;
  }

  .oracle-archive-toolbar {
    padding: 12px;
  }

  .oracle-archive-filters {
    gap: 6px;
  }

  .oracle-filter-chip {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .history-row.oracle-journal-entry {
    gap: 12px;
    padding: 16px;
  }

  .oracle-journal-entry .history-copy strong {
    font-size: 0.95rem;
  }

  .oracle-journal-entry .history-meta span {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .oracle-entry-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .oracle-entry-actions .language-link {
    width: 100%;
  }

  .auth-card {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .auth-card__head {
    gap: 10px;
  }

  .auth-mode-switch {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .auth-mode-switch__item {
    border-radius: 12px;
  }

  .auth-switch--compact {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .auth-switch--compact .language-link {
    width: 100%;
  }

  .stack-form--panel .submit-button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .language-dropdown__label {
    display: none;
  }

  .language-link,
  .oracle-v2__balance,
  .language-dropdown__trigger,
  .oracle-more-dropdown__trigger,
  .topbar-menu-mobile__trigger,
  .subpage-pill,
  .submit-button,
  .chat-suggestion-button,
  .horoscope-keyword,
  .oracle-filter-chip {
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .language-dropdown__trigger,
  .topbar-menu-mobile__trigger {
    gap: 8px;
    padding-inline: 11px;
    width: fit-content;
    max-width: calc(100vw - 24px);
  }

  .oracle-action-group--primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    gap: 6px;
  }

  .oracle-action-group--primary > .language-link,
  .oracle-action-group--primary > .language-link--button,
  .language-dropdown__trigger,
  .topbar-menu-mobile__trigger {
    width: auto;
    min-width: 0;
  }

  .oracle-action-group--primary > .language-link,
  .oracle-action-group--primary > .language-link--button {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .horoscope-hero-banner__content {
    padding: 10px 10px 12px;
  }

  .horoscope-hero-banner__content h1 {
    max-width: 8ch;
    font-size: clamp(1.08rem, 5.4vw, 1.42rem);
    line-height: 0.9;
  }

  html[lang="ru"] .horoscope-hero-banner__content h1,
  html[lang="de"] .horoscope-hero-banner__content h1,
  html[lang="th"] .horoscope-hero-banner__content h1,
  html[lang="zh"] .horoscope-hero-banner__content h1 {
    font-size: clamp(1rem, 5vw, 1.28rem);
  }

  body.oracle-ui .subpage-header h1,
  .subpage-header h1,
  .oracle-v2__hero h1 {
    font-size: clamp(1.42rem, 6.8vw, 1.9rem);
    line-height: 0.98;
  }

  .horoscope-hero-banner__content p,
  .oracle-v2__sub,
  .subpage-header p {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .oracle-v2__question h2,
  .oracle-v2__example h2,
  body.oracle-ui .account-card h2,
  .horoscope-form-card h2,
  .horoscope-info-card h2,
  .horoscope-profile-card h2,
  .horoscope-tabs-card h2,
  .horoscope-empty-state h2,
  .oracle-block h3,
  .oracle-block h4 {
    font-size: 0.98rem;
    line-height: 1.12;
  }
}

@media (max-width: 760px) {
  body.oracle-ui,
  body.oracle-v2,
  .page-shell,
  .oracle-shell,
  .oracle-v2__app,
  .hero,
  .hero--subpage,
  .account-card,
  .reading-block,
  .reading-summary,
  .spread-board,
  .oracle-form,
  .horoscope-shell,
  .horoscope-shell__grid,
  .horoscope-tabs-card,
  .horoscope-profile-card,
  .horoscope-form-card,
  .horoscope-info-card {
    min-width: 0;
    overflow-x: clip;
  }

  .language-link,
  .language-link--button,
  .locale-link,
  .submit-button,
  .chat-suggestion-button,
  .precision-pill,
  .oracle-filter-chip,
  .subpage-pill,
  .horoscope-keyword,
  .oracle-more-dropdown__link,
  .oracle-more-dropdown__example p,
  .form-note,
  .muted-copy,
  .reading-block p,
  .position-reading h4,
  .position-reading small,
  .oracle-journal-entry .history-copy strong,
  .oracle-journal-entry .history-meta span,
  .oracle-archive-label,
  .admin-collapsible__title,
  .admin-collapsible__count {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .language-switcher--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .locale-link {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.18;
    min-height: 30px;
  }

  .oracle-entry-actions {
    min-width: 0;
  }

  .table-wrap,
  .admin-collapsible .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 560px;
  }

  .chat-stream {
    padding: 12px;
  }

  .chat-bubble {
    max-width: 100%;
  }
}

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

@keyframes oraclePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 247, 221, 0.55); }
  50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.56), inset 0 1px 0 rgba(255, 247, 221, 0.8); }
}

@keyframes chatTurnIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatCardManifest {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.9) rotate(calc(var(--card-float-tilt, 1.2deg) * -1));
    filter: blur(8px);
  }
  55% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02) rotate(calc(var(--card-float-tilt, 1.2deg) * 0.55));
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes chatCardSheen {
  0% {
    opacity: 0;
    transform: translateX(-135%);
  }
  16% {
    opacity: 0.5;
  }
  72% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateX(145%);
  }
}

@keyframes chatCardFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(calc(var(--card-float-tilt, 1.2deg) * -0.55));
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(var(--card-float-tilt, 1.2deg));
  }
}

@keyframes chatCardAura {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.02);
  }
}

@keyframes chatCardBreath {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: scale(1);
    filter: saturate(1.08) brightness(1.04);
  }
}

@keyframes deckShuffle1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  30% { transform: translate(-14px, -2px) rotate(-7deg); }
  60% { transform: translate(11px, 1px) rotate(6deg); }
}

@keyframes deckShuffle2 {
  0%, 100% { transform: translateY(3px) rotate(1deg); }
  35% { transform: translate(15px, -1px) rotate(5deg); }
  70% { transform: translate(-12px, 2px) rotate(-5deg); }
}

@keyframes deckShuffle3 {
  0%, 100% { transform: translateY(6px) rotate(-1deg); }
  40% { transform: translate(-10px, -1px) rotate(-4deg); }
  72% { transform: translate(12px, 1px) rotate(4deg); }
}

@keyframes deckShuffle4 {
  0%, 100% { transform: translateY(10px) rotate(0.5deg); }
  50% { transform: translateY(12px) rotate(-0.8deg); }
}

@keyframes horoscopePulse {
  0%, 80%, 100% {
    opacity: 0.36;
    transform: translateY(0) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
}

@keyframes pendingDotGlow {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.88);
    box-shadow:
      0 0 0 1px rgba(244, 220, 169, 0.08),
      0 0 8px rgba(212, 175, 55, 0.16);
  }

  45% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
    box-shadow:
      0 0 0 1px rgba(244, 220, 169, 0.22),
      0 0 18px rgba(212, 175, 55, 0.34);
  }
}
