/* Orakelia mobile UI v4 — mystical, warm and thumb-friendly. */
:root {
  --bg: #120e18;
  --surface: #1d1725;
  --surface-2: #271e30;
  --ink: #fff8f0;
  --muted: #c7b9c9;
  --line: rgba(245, 220, 198, 0.14);
  --accent: #f3a56d;
  --accent-dark: #ffc596;
  --accent-soft: rgba(243, 165, 109, 0.13);
  --green: #68d6aa;
  --green-soft: rgba(67, 174, 133, .15);
  --danger: #ff919e;
  --shadow: 0 22px 60px rgba(4, 2, 8, 0.28);
  --shadow-soft: 0 10px 28px rgba(4, 2, 8, 0.2);
  --radius: 22px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-padding-top: 82px; }
body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(123, 58, 139, .22), transparent 29%),
    radial-gradient(circle at 91% 34%, rgba(225, 112, 101, .12), transparent 28%),
    linear-gradient(155deg, #120e18 0%, #18101e 52%, #100c16 100%);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block !important;
  content: "";
  opacity: .18;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 235, 202, .8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(230, 191, 255, .55) 0 1px, transparent 1.5px);
  background-position: 0 0, 17px 23px;
  background-size: 47px 47px, 71px 71px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.32) 72%, transparent 100%);
}
.scene-glow {
  position: fixed;
  z-index: 0;
  inset: -20vh -10vw auto;
  height: 68vh;
  display: block !important;
  opacity: .72;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(124, 58, 143, .18), transparent 68%);
}
body.nav-open { overflow: hidden; }
body.home-mystic {
  --bg: #120e18;
  --surface: #1d1725;
  --surface-2: #271e30;
  --ink: #fff8f0;
  --muted: #c7b9c9;
  --line: rgba(245, 220, 198, 0.14);
  --accent: #f3a56d;
  --accent-dark: #ffc596;
  --accent-soft: rgba(243, 165, 109, 0.13);
  color-scheme: dark;
  background:
    radial-gradient(circle at 12% 12%, rgba(123, 58, 139, .22), transparent 29%),
    radial-gradient(circle at 91% 34%, rgba(225, 112, 101, .12), transparent 28%),
    linear-gradient(155deg, #120e18 0%, #18101e 52%, #100c16 100%);
}
body.home-mystic::before {
  position: fixed;
  inset: 0;
  display: block !important;
  content: "";
  opacity: .22;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 235, 202, .8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(230, 191, 255, .55) 0 1px, transparent 1.5px);
  background-position: 0 0, 17px 23px;
  background-size: 47px 47px, 71px 71px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 70%, transparent 100%);
}
.home-mystic .scene-glow {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 68vh;
  display: block !important;
  opacity: .8;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(124, 58, 143, .18), transparent 68%);
}
.home-mystic .navbar {
  border-bottom-color: rgba(255, 235, 217, .1);
  background: rgba(18, 14, 24, .86);
  box-shadow: 0 14px 40px rgba(4, 2, 8, .2);
}
.home-mystic .brand-logo {
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.93);
}
.home-mystic .nav-toggle,
.home-mystic .quick-btn { border-color: var(--line); background: rgba(255,255,255,.06); }
.home-mystic .quick-btn-primary { border-color: var(--accent); color: #211624; background: var(--accent); }
.home-mystic .install-strip { border-color: var(--line); background: rgba(255,255,255,.055); backdrop-filter: blur(14px); }
.home-mystic .site-footer { border-top-color: var(--line); }
.home-mystic .app-tabbar { border-top-color: var(--line); background: rgba(18,14,24,.96); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, label, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(255, 101, 93, 0.3); outline-offset: 3px; }

.container {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 90px) 0 calc(env(safe-area-inset-bottom, 0px) + 106px);
}

/* Header */
.topbar,
.navbar {
  position: fixed;
  z-index: 1004;
  inset: 0 0 auto;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 9px) max(18px, calc((100vw - 1080px) / 2)) 9px;
  border: 0;
  border-bottom: 1px solid rgba(255, 235, 217, .1);
  border-radius: 0;
  background: rgba(18, 14, 24, .9);
  box-shadow: 0 14px 40px rgba(4, 2, 8, .2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand::after { content: "Orakelia"; }
.brand-logo,
.brand-mark {
  content: url("/static/assets/orakelia-mark-v4.svg?v=20260818-ui6");
  width: 38px;
  height: 38px;
  max-height: none;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,.94);
  box-shadow: none;
}
.nav-quick { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.quick-btn,
.nav-links > a,
.lang-toggle-btn,
.nav-links .nav-logout {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.quick-btn-primary,
.nav-links a.menu-cta,
.nav-links .nav-logout {
  border-color: var(--accent);
  color: #241624;
  background: linear-gradient(135deg, #ffb47a, #f1cb96);
  box-shadow: none;
}
.nav-toggle {
  position: relative;
  z-index: 1007;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 13px 10px;
  background: linear-gradient(var(--ink) 0 0) top / 21px 2px no-repeat,
              linear-gradient(var(--ink) 0 0) center / 15px 2px no-repeat,
              linear-gradient(var(--ink) 0 0) bottom / 21px 2px no-repeat;
}
.nav-toggle::after { display: none; }
.menu-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(36, 29, 39, 0.35);
  backdrop-filter: blur(3px);
  transition: opacity 0.2s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-links {
  position: fixed;
  z-index: 1006;
  top: 0;
  right: -105vw;
  width: min(390px, 92vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: calc(env(safe-area-inset-top, 0px) + 82px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto;
  border: 0;
  border-radius: 26px 0 0 26px;
  background: var(--surface);
  box-shadow: -24px 0 64px rgba(36, 29, 39, 0.2);
  transition: right 0.22s ease;
}
.nav-links.is-open { right: 0; }
.nav-links > a { min-height: 52px; justify-content: flex-start; border-radius: 16px; font-size: 0.9rem; }
.nav-links > a::before { width: 22px; text-align: center; }
.nav-logout-form { margin-top: auto; }
.nav-links .nav-logout { width: 100%; min-height: 52px; border-radius: 16px; cursor: pointer; }
.lang-switch { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lang-toggle-btn { width: 100%; min-height: 50px; justify-content: space-between; border-radius: 16px; cursor: pointer; }
.lang-switch-list { display: grid; gap: 7px; }
.lang-switch-list[hidden] { display: none !important; }
.lang-switch-list a { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }

/* Mystic side drawer — branded, focused and thumb-friendly. */
.menu-overlay {
  z-index: 1005;
  background: rgba(7, 4, 11, .76);
  backdrop-filter: blur(8px) saturate(.78);
  -webkit-backdrop-filter: blur(8px) saturate(.78);
  transition: opacity .28s ease;
}
body.nav-open .container { z-index: auto; }
body.nav-open .navbar { z-index: 1007; }
.nav-links {
  right: 0;
  width: min(370px, calc(100vw - 18px));
  max-width: 100%;
  gap: 0;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 18px);
  overscroll-behavior: contain;
  border-left: 1px solid rgba(255, 218, 181, .18);
  border-radius: 30px 0 0 30px;
  isolation: isolate;
  color: #fff8f0;
  background:
    radial-gradient(circle at 92% 4%, rgba(243,165,109,.17), transparent 25%),
    radial-gradient(circle at 4% 42%, rgba(128,61,149,.21), transparent 35%),
    linear-gradient(160deg, #25192d 0%, #18101f 50%, #100b17 100%);
  box-shadow: -32px 0 90px rgba(2, 1, 5, .62);
  transform: translateX(calc(100% + 32px));
  transition: transform .34s cubic-bezier(.2,.82,.24,1), visibility .34s;
  visibility: hidden;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: .24;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,239,214,.92) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(219,171,238,.75) 0 1px, transparent 1.5px);
  background-position: 9px 13px, 31px 42px;
  background-size: 53px 53px, 79px 79px;
  mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.42) 58%, transparent 100%);
}
.nav-links::after {
  position: absolute;
  z-index: -1;
  right: -38px;
  top: 84px;
  width: 132px;
  height: 132px;
  content: "";
  opacity: .2;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: -31px 12px 0 0 #efc88f;
  transform: rotate(-19deg);
}
.nav-links.is-open {
  right: 0;
  transform: translateX(0);
  visibility: visible;
}
.nav-drawer-head {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 17px) 68px 17px 19px;
  border-bottom: 1px solid rgba(255,225,194,.12);
  background: linear-gradient(180deg, rgba(29,19,37,.98), rgba(25,16,32,.9));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-drawer-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(5,2,8,.28);
}
.nav-drawer-brand { min-width: 0; display: grid; gap: 2px; }
.nav-drawer-brand strong {
  color: #fff9f2;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -.045em;
  line-height: 1;
}
.nav-drawer-brand span {
  max-width: 190px;
  overflow: hidden;
  color: #cdbed0;
  font-size: .68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-drawer-section-label {
  margin: 0;
  padding: 17px 22px 8px;
  color: #d7a879;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-drawer-account-label { padding-top: 12px; }
.nav-links > a {
  position: relative;
  width: auto;
  min-height: 56px;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 11px;
  margin: 0 17px 7px;
  padding: 8px 47px 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(255,225,194,.12);
  border-radius: 17px;
  color: #f8eff8;
  background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  font-size: .86rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links > a::before {
  width: 38px !important;
  height: 38px;
  flex: 0 0 38px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(243,165,109,.2);
  border-radius: 12px;
  color: #f1bd86;
  background: rgba(243,165,109,.1);
  font-size: .95rem !important;
  line-height: 1;
}
.nav-links > a::after {
  position: absolute;
  right: 17px;
  top: 50%;
  content: "›";
  color: rgba(255,225,194,.48);
  font-size: 1.25rem;
  transform: translateY(-52%);
}
.nav-links > a[href*="/coffee"]::before { content: "☕"; }
.nav-links > a[href*="/katina"]::before { content: "♥"; }
.nav-links > a[href*="/tarot"]::before { content: "✦"; }
.nav-links > a[href*="/yildizname"]::before { content: "☾"; }
.nav-links > a[href*="/palm"]::before { content: "✋"; }
.nav-links > a[href*="/login"]::before { content: "♙"; }
.nav-links > a[href*="/register"]::before { content: "✎"; }
.nav-links > a[href*="/dashboard"]::before { content: "◈"; }
.nav-links > a.is-current {
  border-color: rgba(243,165,109,.6);
  background: linear-gradient(135deg, rgba(243,165,109,.19), rgba(128,61,149,.11));
  box-shadow: inset 3px 0 #f3a56d, 0 10px 24px rgba(5,2,8,.13);
}
.nav-links > a.is-current::after { color: #f5bc87; }
.nav-links > a:active { transform: scale(.985); }
.nav-links a.menu-cta {
  border-color: rgba(255,202,145,.7);
  color: #271826;
  background: linear-gradient(135deg, #ffb47a, #f1cb96);
  box-shadow: 0 10px 26px rgba(215,126,77,.16);
}
.nav-links a.menu-cta::before {
  border-color: rgba(46,24,40,.14);
  color: #4b263a;
  background: rgba(54,28,47,.09);
}
.nav-links a.menu-cta::after { color: rgba(52,27,45,.6); }
.nav-logout-form {
  order: initial;
  margin: 0 17px 8px;
  padding: 0;
}
.nav-links .nav-logout {
  min-height: 52px;
  border-color: rgba(255,145,158,.28);
  border-radius: 17px;
  color: #ffd8de;
  background: rgba(168,56,81,.14);
}
.lang-switch {
  order: initial;
  width: auto;
  margin: 5px 17px 0;
  padding: 13px 0 0;
  border-top-color: rgba(255,225,194,.12);
}
.lang-toggle-btn {
  min-height: 50px;
  justify-content: space-between;
  padding: 10px 14px;
  border-color: rgba(255,225,194,.12);
  border-radius: 16px;
  color: #f6eef6;
  background: rgba(255,255,255,.045);
}
.lang-toggle-btn::after { color: #e4b381; }
.lang-switch-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.lang-switch-list a {
  min-width: 0;
  min-height: 43px;
  justify-content: center;
  padding: 8px 5px;
  overflow: hidden;
  border-color: rgba(255,225,194,.12);
  border-radius: 13px;
  color: #d8cbd9;
  background: rgba(255,255,255,.035);
  font-size: .68rem;
  text-align: center;
}
.nav-drawer-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 17px 0;
}
.nav-links .nav-drawer-install {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(243,165,109,.27);
  border-radius: 16px;
  color: #ffd2a7;
  background: rgba(243,165,109,.08);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.nav-links .nav-drawer-install::before { content: "✦"; }
.nav-drawer-legal { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }
.nav-links .nav-drawer-legal a {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #8f8193;
  background: transparent;
  font-size: .61rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-toggle[aria-expanded="true"] {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 13px);
  right: 13px;
  border-color: rgba(243,165,109,.52);
  background: rgba(44,28,51,.96);
  box-shadow: 0 10px 30px rgba(2,1,5,.34);
}
.nav-toggle[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::after {
  position: absolute;
  left: 10px;
  top: 19px;
  width: 20px;
  height: 2px;
  display: block;
  content: "";
  background: #f5c28e;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .nav-links > a:hover {
    border-color: rgba(243,165,109,.38);
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(243,165,109,.055));
    transform: translateX(-3px);
  }
  .nav-links .nav-drawer-install:hover { border-color: rgba(243,165,109,.5); background: rgba(243,165,109,.13); }
}

@media (max-width: 380px) {
  .nav-links { width: calc(100vw - 10px); border-radius: 24px 0 0 24px; }
  .nav-drawer-head { padding-left: 15px; }
  .nav-links > a,
  .nav-logout-form,
  .lang-switch { margin-inline: 13px; }
  .nav-drawer-footer { padding-inline: 13px; }
}

/* Type and surfaces */
h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Sora", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { margin-bottom: 13px; font-size: clamp(2rem, 5vw, 4.3rem); }
h2 { margin-bottom: 11px; font-size: clamp(1.45rem, 3.3vw, 2.25rem); }
h3 { margin-bottom: 7px; font-size: 1.08rem; }
p { color: var(--muted); }
.card,
.hero,
.seo-section,
.seo-landing-hero,
.seo-landing-cta,
.reading-focus-card,
.notifications-card {
  margin-bottom: 18px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}
.hero { overflow: hidden; }
.hero.slim { min-height: auto; }
.hero-cover { background: var(--ink); }
.hero-side::before { background: var(--surface-2); filter: none; }
.kicker,
.category,
.app-eyebrow,
.reader-kind {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Install row */
.install-strip {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  text-decoration: none;
}
.install-strip img {
  content: url("/static/icons/orakelia-app-192-v5.png?v=20260827-icon5");
  width: 46px;
  height: 46px;
  border-radius: 13px;
}
.install-strip span { min-width: 0; display: grid; gap: 1px; }
.install-strip strong { color: var(--ink); font-size: 0.86rem; }
.install-strip small { overflow: hidden; color: var(--muted); font-size: 0.71rem; text-overflow: ellipsis; white-space: nowrap; }
.install-strip b { margin-left: auto; color: var(--accent); font-size: 1.55rem; }

/* New home */
.app-home { display: grid; gap: 20px; }
.app-hero-v4 {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid rgba(255, 218, 177, .2);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 28%, rgba(210, 131, 231, .22), transparent 25%),
    radial-gradient(circle at 14% 86%, rgba(238, 128, 94, .18), transparent 31%),
    linear-gradient(145deg, #201326 0%, #321b39 54%, #18101f 100%);
  box-shadow: 0 30px 90px rgba(2, 0, 8, .34), inset 0 1px 0 rgba(255,255,255,.08);
}
.app-hero-v4::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .42;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 240, 205, .9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(225, 188, 255, .7) 0 1px, transparent 1.4px);
  background-position: 3px 5px, 21px 31px;
  background-size: 53px 53px, 83px 83px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,.9), transparent 78%);
}
.app-hero-v4::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -260px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 222, 185, .1);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(214, 127, 226, .08);
  pointer-events: none;
}
.hero-celestial {
  position: absolute;
  z-index: 0;
  right: clamp(12px, 5vw, 58px);
  top: clamp(18px, 5vw, 48px);
  width: min(38vw, 350px);
  aspect-ratio: 1;
  opacity: .94;
  filter: drop-shadow(0 0 32px rgba(244, 193, 129, .12));
}
.hero-celestial svg { width: 100%; height: 100%; overflow: visible; }
.celestial-orbit { fill: none; stroke: rgba(255, 226, 187, .24); stroke-width: 1; stroke-dasharray: 3 9; transform-origin: center; }
.orbit-outer { animation: celestialSpin 36s linear infinite; }
.orbit-inner { stroke: rgba(226, 184, 248, .2); stroke-dasharray: 2 7; animation: celestialSpinReverse 28s linear infinite; }
.celestial-moon { fill: #f5c995; filter: drop-shadow(0 0 24px rgba(245,201,149,.25)); }
.celestial-star { fill: #ffe0a8; filter: drop-shadow(0 0 8px rgba(255,224,168,.45)); animation: celestialPulse 3.8s ease-in-out infinite; transform-origin: center; }
.star-small { animation-delay: -1.8s; }
.celestial-dot { fill: #ead1f7; }
.hero-brand-mark {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid rgba(255, 228, 194, .25);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(4,2,8,.25), 0 0 0 7px rgba(255,255,255,.035);
}
.hero-brand-mark img { width: 54px; height: 54px; }
.app-hero-v4 .app-eyebrow { position: relative; z-index: 2; color: #ffc896; text-shadow: 0 2px 14px rgba(0,0,0,.28); }
.app-hero-v4 h1 { position: relative; z-index: 2; max-width: 700px; margin-bottom: 16px; color: #fff9f4; font-size: clamp(2.7rem, 7vw, 5.4rem); text-shadow: 0 8px 36px rgba(4,2,8,.35); }
.app-hero-copy { position: relative; z-index: 2; max-width: 650px; margin: 0; color: rgba(255,247,241,.73); font-size: clamp(1rem, 2vw, 1.16rem); }
.app-hero-badges { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.app-hero-badges span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,226,190,.18); border-radius: 999px; color: rgba(255,248,241,.8); background: rgba(255,255,255,.045); backdrop-filter: blur(9px); font-size: .74rem; font-weight: 700; }
.app-hero-badges i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #29182e; background: #f4c691; font-size: .65rem; font-style: normal; }
.app-primary-action { position: relative; z-index: 2; min-height: 56px; display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 13px 18px; border: 1px solid rgba(255,242,223,.32); border-radius: 17px; color: #261729; background: linear-gradient(135deg, #ffb87e, #f1cf9b); box-shadow: 0 13px 30px rgba(7,3,10,.24); font-weight: 800; text-decoration: none; }
.app-primary-action i { font-style: normal; }
.app-primary-action b { font-size: 1.1rem; }
.reading-types-v4,
.how-v4 { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.045); box-shadow: 0 24px 70px rgba(2,0,8,.18); backdrop-filter: blur(16px); }
.section-heading-v4 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-heading-v4 p { margin: 0; color: var(--accent-dark); font-size: .72rem; font-weight: 800; }
.section-heading-v4 h2 { margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin: 0; }
.choice-card {
  position: relative;
  grid-column: span 2;
  min-height: 310px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 191, .16);
  border-radius: 24px;
  color: #fff;
  background: #1c1322;
  box-shadow: 0 15px 40px rgba(3,1,7,.2);
  text-decoration: none;
}
.choice-card.card-yildizname,
.choice-card.card-palm { grid-column: span 3; min-height: 280px; }
.choice-card::before { position: absolute; z-index: 2; inset: 0; display: block !important; content: ""; pointer-events: none; background: linear-gradient(to bottom, transparent 34%, rgba(11,6,14,.22) 54%, rgba(11,6,14,.94) 100%); }
.choice-card::after { position: absolute; z-index: 3; inset: 9px; display: block !important; content: ""; pointer-events: none; border: 1px solid rgba(255,233,207,.16); border-radius: 17px; }
.choice-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.choice-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.choice-content {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 24px 20px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.choice-content small { color: #f4c38f; font-weight: 800; }
.choice-content strong { color: #fffaf5; font-size: .98rem; text-shadow: 0 3px 18px rgba(0,0,0,.4); }
.choice-content b { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,235,213,.22); border-radius: 50%; color: #2b1930; background: #f5c692; }
.how-grid-v4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how-grid-v4 article { min-height: 146px; display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid rgba(255,226,192,.08); border-radius: 20px; background: rgba(255,255,255,.04); }
.how-grid-v4 article > span { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 50%; color: #251629; background: #f2bd88; font-size: .76rem; font-weight: 800; }
.how-grid-v4 h3 { margin: 2px 0 6px; }
.how-grid-v4 p { margin: 0; font-size: .82rem; }
@keyframes celestialSpin { to { transform: rotate(360deg); } }
@keyframes celestialSpinReverse { to { transform: rotate(-360deg); } }
@keyframes celestialPulse { 50% { opacity: .55; transform: scale(.82); } }

/* Reader picker */
.reader-picker-shell { display: grid; gap: 16px; }
.reader-picker-head { position: relative; padding: 10px 4px 2px 58px; }
.reader-picker-head h1 { margin-bottom: 9px; font-size: clamp(2.3rem, 6vw, 4.5rem); }
.reader-picker-head > p:last-child { max-width: 620px; margin: 0; }
.page-back { position: absolute; left: 0; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.reader-list-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.reader-list-summary span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.reader-list-summary strong { padding: 7px 10px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: .72rem; }
.reader-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reader-card { min-width: 0; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: none; text-decoration: none; }
.reader-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.reader-photo img,
.reader-card > img { width: 100%; height: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); transition: transform .25s ease; }
.reader-availability { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; color: #fff; background: rgba(36,29,39,.82); backdrop-filter: blur(8px); font-size: .64rem; font-weight: 800; }
.reader-availability i { width: 7px; height: 7px; border-radius: 50%; background: #58d69e; box-shadow: 0 0 0 3px rgba(88,214,158,.15); }
.popular-badge { position: absolute; top: 9px; left: 9px; padding: 6px 8px; border: 0; border-radius: 999px; color: var(--ink); background: var(--accent); font-size: .62rem; font-weight: 800; }
.reader-card-body { padding: 14px; }
.reader-card-title { display: flex; align-items: center; gap: 8px; }
.reader-card-title h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.reader-rating { margin-left: auto; color: #9b6c00; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.reader-focus { min-height: 38px; margin: 7px 0 5px; color: var(--ink); font-size: .76rem; font-weight: 700; }
.reader-tone { min-height: 34px; margin: 0 0 11px; font-size: .7rem; line-height: 1.45; }
.reader-select-action { min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: .74rem; font-weight: 800; }
.reader-select-action b { font-size: 1rem; }
.reader-tooltip,
.reader-card > span,
.reader-meta { display: none; }
.reader-focus-profile { padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.reader-focus-profile img { width: 72px !important; height: 72px !important; border: 3px solid var(--surface) !important; box-shadow: none; }

/* Forms */
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-size: .8rem; font-weight: 750; }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
  box-shadow: none;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #8f8094; }
input:focus,
select:focus,
textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px rgba(243,165,109,.12); }
input[readonly] { color: var(--muted); background: var(--surface-2); }
.personal-context-note { display:flex; align-items:flex-start; gap:9px; margin:0; padding:11px 13px; border:1px solid var(--line); border-radius:14px; color:var(--muted); background:rgba(255,255,255,.035); font-size:.69rem; line-height:1.5; }
.personal-context-note span { color:var(--accent-dark); font-size:1rem; }
.personal-context-saved { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:12px 14px; border:1px solid rgba(96,178,139,.3); border-radius:16px; background:rgba(96,178,139,.08); }
.personal-context-saved-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; color:#15271f; background:#83d4ad; font-size:.8rem; font-weight:900; }
.personal-context-saved div { display:grid; gap:2px; min-width:0; }
.personal-context-saved strong { color:var(--ink); font-size:.76rem; }
.personal-context-saved small { overflow:hidden; color:var(--muted); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.personal-context-saved a { min-height:38px; display:inline-flex; align-items:center; padding:8px 11px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface-2); font-size:.68rem; font-weight:800; text-decoration:none; }
button[type="submit"],
.cta-btn,
.hero-btn,
.payment-link,
.install-primary-button,
.install-open-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 0;
  border-radius: 16px;
  color: #241624;
  background: linear-gradient(135deg, #ffb47a, #f1cb96);
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.payment-link.secondary { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.inline-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-dark); font-weight: 700; }
.selection,
.upload-hint { padding: 12px 13px; border-radius: 14px; color: var(--muted); background: var(--surface-2); }
.photo-status:empty { display: none; }
.username-status,
.password-status { min-height: 22px; font-size: .75rem; }
.username-status.ok,
.password-status.ok { color: var(--green); }
.username-status.bad,
.password-status.bad { color: var(--danger); }
.photo-grid { display: grid; gap: 10px; }
.photo-slot { min-height: 150px; border: 2px dashed rgba(255,213,177,.3); border-radius: 20px; color: var(--accent-dark); background: rgba(255,255,255,.045); }
.photo-slot.has-image { border-style: solid; border-color: var(--accent); }

/* Cards, alerts and account */
.deck { gap: 7px; padding: 17px 9px; border: 0; border-radius: 22px; background: linear-gradient(145deg,#150d1d,#2a1832); box-shadow: none; }
.card-back { border-radius: 9px; box-shadow: none; }
.card-back.picked { outline: 3px solid var(--accent); outline-offset: 2px; transform: translateY(-4px); }
.alerts { margin: 0 0 14px; }
.alert { padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: none; }
.alert.ok { color: #8fe2bf; border-color: rgba(104,214,170,.26); background: var(--green-soft); }
.alert.error { color: #ffb1b9; border-color: rgba(255,145,158,.28); background: rgba(185,64,75,.13); }
.notifications-head { align-items: center; gap: 12px; }
.notification-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:9px;flex-wrap:wrap}.notification-actions form{margin:0}.push-notification-control{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.push-toggle[aria-pressed="true"]{border-color:rgba(110,220,175,.5);color:#c9ffe7}.push-status{max-width:260px;color:var(--muted);font-size:.69rem;line-height:1.3;text-align:right}
.notif-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; color: #fff; background: var(--accent); }
.notification-item { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.notification-item.is-unread { border-color: rgba(255,101,93,.35); background: var(--accent-soft); }
.notification-link { min-height: 44px; color: var(--ink); }
.profile-toggle { min-height: 52px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface-2); cursor: pointer; }
.table-wrap { overflow: visible; }
table { border-collapse: separate; border-spacing: 0 9px; }
thead th { padding: 8px 11px; border: 0; color: var(--muted); font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr { background: var(--surface); box-shadow: none; }
tbody td { padding: 13px 11px; border-block: 1px solid var(--line); }
tbody td:first-child { border-left: 1px solid var(--line); border-radius: 15px 0 0 15px; }
tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 15px 15px 0; }
.order-timeline { gap: 8px; }
.order-timeline-dot { border-color: rgba(255,232,211,.22); background: var(--surface-2); }
.order-timeline-step.is-done .order-timeline-dot,
.order-timeline-step.is-current .order-timeline-dot { border-color: var(--accent); background: var(--accent); }
.order-timeline-label { color: var(--muted); font-size: .68rem; }
.reading-focus-text,
.ai-reading { padding: clamp(20px,4vw,38px); border: 1px solid rgba(255,220,184,.16); border-radius: 22px; color: #f6eaf2; background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.025)); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.02rem,2vw,1.16rem); line-height: 1.8; white-space: pre-wrap; }

/* Install, SEO, legal */
.install-page { max-width: 900px; }
.install-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; background: var(--surface); }
.install-app-icon { content: url("/static/icons/orakelia-app-192-v5.png?v=20260827-icon5"); width: 108px; height: 108px; border-radius: 27px; box-shadow: var(--shadow-soft); }
.install-device-grid { gap: 16px; }
.install-device-icon { color: var(--accent-dark); background: var(--accent-soft); }
.install-steps span { color: #241624; background: var(--accent); }
.install-account-note { border-color: rgba(104,214,170,.24); border-radius: 17px; background: var(--green-soft); }
.seo-landing-hero,
.seo-section,
.seo-landing-cta { margin-bottom: 16px; padding: clamp(21px,4vw,38px); }
.seo-faq-item { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.seo-list li::marker { color: var(--accent); }

/* Footer and mobile tab bar */
.site-footer { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); background: rgba(255,255,255,.035); }
.footer-brand { color: var(--ink); font-weight: 800; }
.footer-links,
.footer-social { gap: 7px; }
.footer-links a,
.social-link { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.045); text-decoration: none; }

/* Mystical home footer */
.home-mystic .site-footer.home-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 225, 194, .14);
  border-radius: 28px;
  color: #d8c9dc;
  background:
    radial-gradient(circle at 88% 16%, rgba(222, 166, 117, .13), transparent 25%),
    radial-gradient(circle at 12% 120%, rgba(115, 57, 141, .2), transparent 46%),
    linear-gradient(145deg, rgba(30, 21, 38, .98), rgba(12, 8, 18, .99));
  box-shadow: 0 24px 58px rgba(4, 2, 8, .24);
}
.home-mystic .site-footer.home-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .42;
  background-image: radial-gradient(circle, rgba(255, 231, 200, .75) 0 1px, transparent 1.3px);
  background-position: 8px 6px;
  background-size: 47px 47px;
  mask-image: linear-gradient(110deg, transparent 10%, #000 64%, transparent 100%);
}
.home-footer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.home-footer-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.home-footer-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(4,2,8,.28), 0 0 0 5px rgba(255,255,255,.035);
}
.home-footer-mark img { width: 38px; height: 38px; }
.home-mystic .home-footer .footer-brand { margin: 0; color: #fff9f3; font-size: 1.06rem; letter-spacing: -.015em; }
.home-footer-tagline { margin: 3px 0 0; color: #cbb8ce; font-size: .8rem; }
.home-footer-celestial {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #f2c58e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(242,197,142,.25));
  transform: rotate(-12deg);
}
.home-mystic .home-footer .footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 231, 205, .1);
}
.home-mystic .home-footer .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.home-mystic .home-footer .footer-links a {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 231, 205, .1);
  border-radius: 999px;
  color: #e7dbe9;
  background: rgba(255,255,255,.045);
  font-size: .78rem;
  text-decoration: none;
}
.home-mystic .home-footer .footer-reading-links { grid-column: 1; }
.home-mystic .home-footer .footer-legal-links { grid-column: 1; }
.home-mystic .home-footer .footer-legal-links a {
  min-height: 32px;
  padding: 5px 4px;
  border: 0;
  border-radius: 0;
  color: #ad99b3;
  background: transparent;
}
.home-mystic .home-footer .footer-legal-links a + a::before { margin-right: 10px; color: #7a647f; content: "•"; }
.home-mystic .home-footer .footer-social {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}
.home-mystic .home-footer .social-link {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 231, 205, .12);
  border-radius: 12px;
  color: #d8c9dc;
  background: rgba(255,255,255,.05);
}
.home-mystic .home-footer .social-icon { color: #efc28e; }
.home-mystic .home-footer > .footer-copy {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #806e87;
  font-size: .73rem;
  letter-spacing: .02em;
}

@media (max-width: 820px) {
  .home-mystic .site-footer.home-footer { padding: 20px 18px 22px; border-radius: 24px; }
  .home-footer-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }
  .home-footer-mark img { width: 35px; height: 35px; }
  .home-footer-celestial { width: 42px; height: 42px; flex-basis: 42px; font-size: 2.15rem; }
  .home-mystic .home-footer .footer-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; padding-top: 14px; }
  .home-mystic .home-footer .footer-reading-links { display: none; }
  .home-mystic .home-footer .footer-legal-links {
    grid-column: 1;
    display: grid;
    overflow: hidden;
    gap: 0;
    border: 1px solid rgba(255, 231, 205, .1);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
  }
  .home-mystic .home-footer .footer-legal-links a {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    padding: 10px 13px;
    color: #d8c9dc;
    font-size: .8rem;
  }
  .home-mystic .home-footer .footer-legal-links a:not(:last-child) { border-bottom: 1px solid rgba(255, 231, 205, .08); }
  .home-mystic .home-footer .footer-legal-links a::after { color: #dba66f; font-size: 1.1rem; content: "›"; }
  .home-mystic .home-footer .footer-legal-links a + a::before { display: none; }
  .home-mystic .home-footer .footer-social { grid-column: 1; grid-row: auto; justify-self: start; justify-content: flex-start; }
  .home-mystic .home-footer > .footer-copy { margin-top: 14px; text-align: center; }
}
.app-tabbar {
  position: fixed;
  z-index: 980;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(68px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(18,14,24,.96);
  box-shadow: 0 -12px 36px rgba(4,2,8,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: none;
}
.app-tabbar a { min-width: 0; min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 14px; color: #96889a; font-size: .6rem; font-weight: 700; line-height: 1; text-decoration: none; }
.app-tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabbar a.is-active { color: var(--accent-dark); background: var(--accent-soft); }

.registration-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.registration-security { display: grid; justify-items: center; overflow: hidden; }
.registration-security .cf-turnstile { width: min(100%, 300px); }
.registration-note { margin: -2px 0 2px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

@media (hover: hover) {
  .reader-card,
  .choice-card { transition: transform .2s ease, border-color .2s ease; }
  .reader-card:hover,
  .choice-card:hover { transform: translateY(-4px); border-color: rgba(255,220,180,.38); }
  .reader-card:hover .reader-photo img { transform: scale(1.025); }
  .choice-card:hover .choice-art img { transform: scale(1.045); filter: saturate(1.08) brightness(1.03); }
}

@media (min-width: 821px) {
  .app-tabbar { display: none; }
  .container { padding-bottom: 58px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 26px, 680px); }
  .reader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid,
  .how-grid-v4 { grid-template-columns: 1fr; }
  .choice-card,
  .choice-card.card-yildizname,
  .choice-card.card-palm { grid-column: 1; min-height: 210px; display: block; }
  .choice-art { min-height: 0; }
  .choice-art img { height: 100%; }
  .choice-content { grid-template-columns: auto 1fr auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { width: min(100% - 22px, 520px); padding-top: calc(env(safe-area-inset-top, 0px) + 78px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
  .topbar,
  .navbar { min-height: 62px; padding: calc(env(safe-area-inset-top, 0px) + 7px) 11px 7px; }
  .brand { gap: 7px; font-size: 1.04rem; }
  .brand-logo,
  .brand-mark { width: 35px; height: 35px; }
  .nav-quick .quick-btn:not(.quick-btn-primary) { display: none; }
  .quick-btn { min-height: 39px; padding: 8px 10px; font-size: .7rem; }
  .nav-toggle { width: 39px; height: 39px; flex-basis: 39px; }
  .nav-toggle::before { inset: 12px 9px; }
  .card,
  .hero,
  .seo-section,
  .seo-landing-hero,
  .seo-landing-cta { padding: 18px; border-radius: 22px; }
  h1 { font-size: clamp(1.9rem,9vw,2.65rem); }
  h2 { font-size: 1.35rem; }
  .install-strip { min-height: 58px; margin-bottom: 11px; border-radius: 16px; }
  .install-strip img { width: 42px; height: 42px; }
  .app-home { gap: 12px; }
  .app-hero-v4 { min-height: 520px; padding: 24px 20px; border-radius: 28px; }
  .app-hero-v4::after { right: -230px; bottom: -300px; }
  .hero-celestial { width: 235px; right: -24px; top: 10px; opacity: .72; }
  .hero-brand-mark { width: 62px; height: 62px; border-radius: 19px; }
  .hero-brand-mark img { width: 48px; height: 48px; }
  .app-hero-v4 h1 { max-width: 330px; font-size: clamp(2.45rem,12vw,3.45rem); }
  .app-hero-copy { font-size: .92rem; }
  .app-primary-action { width: 100%; justify-content: space-between; }
  .reading-types-v4,
  .how-v4 { padding: 18px; border-radius: 24px; }
  .section-heading-v4 { margin-bottom: 14px; }
  .choice-grid { gap: 9px; }
  .choice-card,
  .choice-card.card-yildizname,
  .choice-card.card-palm { min-height: 190px; border-radius: 20px; }
  .choice-art img { width: 100%; height: 100%; }
  .choice-content { min-height: 82px; padding: 21px 16px 15px; }
  .choice-content strong { font-size: .94rem; }
  .how-grid-v4 { gap: 8px; }
  .how-grid-v4 article { min-height: 110px; padding: 15px; }
  .reader-picker-head { padding-left: 51px; }
  .reader-picker-head h1 { font-size: 2.3rem; }
  .page-back { width: 41px; height: 41px; }
  .reader-filter { top: calc(env(safe-area-inset-top, 0px) + 62px); margin-inline: -2px; border-radius: 16px; }
  .reader-grid { gap: 9px; }
  .reader-card { border-radius: 19px; }
  .reader-card-body { padding: 11px; }
  .reader-card-title h2 { font-size: 1rem; }
  .reader-focus { min-height: 36px; font-size: .71rem; }
  .reader-tone { min-height: 32px; font-size: .66rem; }
  .reader-select-action { font-size: .69rem; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid > * { grid-column: 1 / -1; }
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  button[type="submit"],
  .payment-link { min-height: 52px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-slot { min-height: 136px; }
  .deck { max-height: 420px; overflow-y: auto; border-radius: 20px; }
  table,
  tbody,
  tr,
  td { display: block; width: 100%; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { padding: 14px; border: 1px solid var(--line); border-radius: 18px; }
  tbody td,
  tbody td:first-child,
  tbody td:last-child { padding: 5px 0; border: 0; border-radius: 0; }
  .panel-open-btn { width: 100%; margin-top: 7px; }
  .install-hero { grid-template-columns: 68px 1fr; gap: 14px; }
  .install-app-icon { width: 68px; height: 68px; border-radius: 19px; }
  .install-device-grid { grid-template-columns: 1fr; }
  .reading-focus-text,
  .ai-reading { padding: 18px; border-radius: 18px; line-height: 1.7; }
  .site-footer { padding-bottom: 20px; }
}

@media (max-width: 380px) {
  .nav-quick .quick-btn-primary { display: none; }
  .reader-grid { gap: 7px; }
  .reader-card-body { padding: 9px; }
  .reader-rating { font-size: .64rem; }
  .app-tabbar { padding-inline: 4px; }
  .app-tabbar a { font-size: .5rem; }
  .app-tabbar svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.social-link[href=""] {
  display: none !important;
}

.consent-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent-check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.account-danger-zone {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(190, 24, 93, 0.2);
}

.account-danger-zone > summary {
  color: #be185d;
  font-weight: 800;
  cursor: pointer;
}

.danger-button {
  background: #be185d !important;
  color: #fff !important;
}

.reader-new {
  color: #6d28d9;
  font-weight: 700;
}

/* Dashboard v5 */
.dashboard-hero-v5 {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 107, 97, .3), transparent 28%),
    linear-gradient(135deg, #211827 0%, #34203d 58%, #211827 100%);
}
.dashboard-hero-v5 .kicker { color: #ff928a; }
.dashboard-hero-v5 h1 { max-width: 680px; margin-bottom: 12px; color: #fff; }
.dashboard-hero-v5 p { max-width: 560px; margin: 0; color: rgba(255,255,255,.76); }
.dashboard-hero-copy { position: relative; z-index: 2; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.dashboard-hero-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 800;
  text-decoration: none;
}
.dashboard-hero-actions a:first-child { color: #241624; border-color: var(--accent); background: var(--accent); }
.dashboard-hero-orbit { position: relative; width: 220px; height: 220px; justify-self: end; }
.dashboard-hero-orbit::before,
.dashboard-hero-orbit::after,
.dashboard-hero-orbit i,
.dashboard-hero-orbit b { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.dashboard-hero-orbit::before { inset: 10px; }
.dashboard-hero-orbit::after { inset: 46px; }
.dashboard-hero-orbit i { inset: 78px; background: var(--accent); box-shadow: 0 0 44px rgba(255,107,97,.35); }
.dashboard-hero-orbit b { width: 18px; height: 18px; right: 25px; top: 74px; border: 0; background: #f8eafa; }
.dashboard-hero-orbit span { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #241624; font-size: 2rem; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dashboard-stats article { min-height: 100px; display: grid; align-content: center; gap: 3px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.dashboard-stats span { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.dashboard-stats small { color: var(--muted); font-size: .74rem; font-weight: 750; }

.loyalty-card {
  margin-bottom: 14px;
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(105,52,124,.09));
}
.loyalty-card.has-reward { border-color: rgba(243,165,109,.42); background: linear-gradient(145deg, rgba(243,165,109,.11), rgba(115,57,141,.13)); box-shadow: 0 18px 55px rgba(4,2,8,.2); }
.loyalty-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 22px; }
.loyalty-card-head h2 { margin-bottom: 8px; }
.loyalty-card-head p { max-width: 660px; margin: 0; }
.loyalty-credit { min-width: 116px; display: grid; justify-items: center; gap: 3px; padding: 15px; border: 1px solid rgba(255,222,189,.14); border-radius: 22px; color: #fff; background: linear-gradient(145deg,#25182c,#3b2445); text-align: center; }
.loyalty-credit strong { font-family: "Space Grotesk", sans-serif; font-size: 2rem; line-height: 1; }
.loyalty-credit span { color: rgba(255,255,255,.72); font-size: .66rem; font-weight: 750; }
.loyalty-progress-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.loyalty-progress-row strong { color: var(--ink); }
.loyalty-progress { height: 12px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.loyalty-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #a755b4); transition: width .4s ease; }
.loyalty-remaining { margin: 10px 0 0; font-size: .75rem; }
.loyalty-ready-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.045); }
.loyalty-ready-row p { margin: 0; color: var(--ink); font-size: .78rem; font-weight: 750; }
.loyalty-ready-row a { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 13px; color: #241624; background: var(--accent); font-size: .74rem; font-weight: 800; text-decoration: none; white-space: nowrap; }

.dashboard-quick { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.dashboard-section-title .kicker { margin-bottom: 12px; }
.dashboard-quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.dashboard-quick-grid a { min-height: 78px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 13px; border-radius: 18px; color: var(--ink); background: var(--surface-2); text-decoration: none; }
.dashboard-quick-grid span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #241624; background: var(--accent); font-size: 1.05rem; }
.dashboard-quick-grid strong { font-size: .83rem; }
.dashboard-quick-grid b { color: var(--accent-dark); font-size: 1rem; }
.dashboard-profile-card { padding: 10px; }

/* Dashboard language and simplified reading history */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.dashboard-language-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.dashboard-language-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: #241624; background: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: .9rem; font-weight: 800; }
.dashboard-language-card h2 { margin: 0 0 3px; font-size: 1rem; }
.dashboard-language-card p { margin: 0; color: var(--muted); font-size: .73rem; }
.dashboard-language-card form { margin: 0; }
.dashboard-language-card select { min-width: 132px; min-height: 46px; margin: 0; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background-color: var(--surface-2); font-weight: 800; cursor: pointer; }
.dashboard-reading-profile { margin-bottom:14px; padding:19px; border:1px solid rgba(243,165,109,.26); border-radius:24px; background:linear-gradient(145deg,rgba(243,165,109,.08),rgba(115,57,141,.08)),var(--surface); }
.dashboard-reading-profile-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; }
.dashboard-reading-profile-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:15px; color:#241624; background:linear-gradient(145deg,var(--accent),#e6c1f0); font-size:1rem; }
.dashboard-reading-profile h2 { margin:0 0 3px; font-size:1rem; }
.dashboard-reading-profile p { margin:0; color:var(--muted); font-size:.73rem; line-height:1.5; }
.dashboard-reading-profile-state { padding:7px 10px; border:1px solid rgba(96,178,139,.28); border-radius:999px; color:#83d4ad; background:rgba(96,178,139,.08); font-size:.66rem; font-weight:800; white-space:nowrap; }
.dashboard-reading-profile form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:end; gap:10px; margin-top:16px; }
.dashboard-reading-profile label { display:grid; gap:6px; color:var(--ink); font-size:.72rem; font-weight:750; }
.dashboard-reading-profile select { min-height:48px; }
.dashboard-reading-profile button { min-height:48px; padding-inline:17px; white-space:nowrap; }
.dashboard-reading-profile .dashboard-reading-profile-note { margin-top:10px; font-size:.66rem; }

/* Yildizname */
.card-yildizname { background: #24182c; }
.card-palm { background: #2a1922; }
.yildizname-shell { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg,#1b1422 0%,#25182d 100%); }
.yildizname-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 25px clamp(20px,4vw,36px); color: #fff; background: radial-gradient(circle at 82% 12%,rgba(224,173,242,.2),transparent 31%),linear-gradient(135deg,#201625,#3d2548); }
.yildizname-head h1 { max-width: 700px; margin: 3px 0 7px; color: #fff; font-size: clamp(2rem,5vw,3.2rem); }
.yildizname-head p { margin: 0; color: rgba(255,255,255,.72); }
.yildizname-head .kicker { color: #edc9f7; }
.yildizname-head .card-reader-change { position: static; color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.yildizname-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(20px,4vw,42px); align-items: center; padding: clamp(20px,4vw,38px); }
.star-ritual { position: relative; width: min(100%,380px); aspect-ratio: 1; place-self: center; overflow: hidden; border: 1px solid rgba(118,69,135,.2); border-radius: 50%; background: radial-gradient(circle at center,#35223d 0 17%,#25192b 18% 44%,#eadff0 45% 46%,#f7f1f8 47% 62%,#281b30 63% 100%); box-shadow: 0 25px 65px rgba(57,33,69,.2),inset 0 0 0 9px rgba(255,255,255,.05); }
.star-ritual::before,.star-ritual::after { content:""; position:absolute; inset:9%; border:1px solid rgba(245,215,151,.35); border-radius:50%; }
.star-ritual::after { inset:27%; border-color:rgba(255,255,255,.22); box-shadow:0 0 35px rgba(227,184,242,.18); }
.star-orbit { position:absolute; inset:0; animation:starOrbit 38s linear infinite; }
.star-orbit i { position:absolute; left:calc(50% - 16px); top:calc(50% - 16px); width:32px; height:32px; display:grid; place-items:center; color:#f2d79d; font-size:1.05rem; font-style:normal; transform:rotate(calc(var(--star-index) * 30deg)) translateY(-154px) rotate(calc(var(--star-index) * -30deg)); }
.star-orbit i:nth-child(1){--star-index:0}.star-orbit i:nth-child(2){--star-index:1}.star-orbit i:nth-child(3){--star-index:2}.star-orbit i:nth-child(4){--star-index:3}.star-orbit i:nth-child(5){--star-index:4}.star-orbit i:nth-child(6){--star-index:5}.star-orbit i:nth-child(7){--star-index:6}.star-orbit i:nth-child(8){--star-index:7}.star-orbit i:nth-child(9){--star-index:8}.star-orbit i:nth-child(10){--star-index:9}.star-orbit i:nth-child(11){--star-index:10}.star-orbit i:nth-child(12){--star-index:11}
.star-orbit-inner { inset:23%; border:1px dashed rgba(255,255,255,.3); border-radius:50%; animation-direction:reverse; animation-duration:24s; }
.star-core { position:absolute; inset:34%; display:grid; place-items:center; align-content:center; gap:4px; z-index:2; color:#fff; text-align:center; }
.star-core span { color:#f1d795; font-size:2.2rem; animation:starPulse 2.8s ease-in-out infinite; }
.star-core small { max-width:100px; overflow:hidden; font-size:.7rem; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.yildizname-form-wrap { min-width:0; }
.yildizname-intro { margin:0 0 18px; color:var(--muted); line-height:1.65; }
.yildizname-form label { color:var(--ink); font-size:.75rem; font-weight:800; }
.yildizname-form label small { display:block; margin-top:2px; color:var(--muted); font-size:.62rem; font-weight:600; }
.yildizname-privacy { display:flex; align-items:flex-start; gap:9px; margin:1px 0; padding:12px 14px; border:1px solid var(--line); border-radius:15px; color:var(--muted); background:rgba(255,255,255,.045); font-size:.7rem; line-height:1.5; }
.yildizname-privacy span { color:var(--accent-dark); font-size:1.1rem; }
.yildizname-submit { display:flex; align-items:center; justify-content:space-between; padding-inline:18px; }
@keyframes starOrbit { to { transform:rotate(360deg); } }
@keyframes starPulse { 50% { transform:scale(1.18); text-shadow:0 0 24px rgba(241,215,149,.65); } }

/* Palm reading */
.palm-shell { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg,#1c141b 0%,#291820 100%); }
.palm-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 25px clamp(20px,4vw,36px); color: #fff; background: radial-gradient(circle at 82% 12%,rgba(255,171,141,.23),transparent 31%),linear-gradient(135deg,#24161f,#553036); }
.palm-head h1 { max-width: 720px; margin: 3px 0 7px; color: #fff; font-size: clamp(2rem,5vw,3.2rem); }
.palm-head p { margin: 0; color: rgba(255,255,255,.74); }
.palm-head .kicker { color: #ffc5ae; }
.palm-head .card-reader-change { position: static; color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.palm-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(20px,4vw,42px); align-items: center; padding: clamp(20px,4vw,38px); }
.palm-ritual { position: relative; isolation: isolate; width: min(100%,380px); aspect-ratio: .83; place-self: center; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(119,65,73,.2); border-radius: 48% 48% 28% 28% / 35% 35% 19% 19%; background: radial-gradient(circle at 50% 43%,rgba(255,198,165,.3),transparent 35%),linear-gradient(155deg,#20141c,#42242e 68%,#28151e); box-shadow: 0 26px 65px rgba(67,31,42,.22),inset 0 0 0 8px rgba(255,255,255,.035); }
.palm-ritual::before { position:absolute; inset:7%; content:""; border:1px solid rgba(255,219,183,.24); border-radius:inherit; }
.palm-ritual svg { position:relative; z-index:2; width:72%; max-height:82%; overflow:visible; filter:drop-shadow(0 18px 26px rgba(0,0,0,.28)); }
.palm-outline { fill:rgba(255,228,207,.12); stroke:#f0c4ab; stroke-width:2.5; }
.palm-line { fill:none; stroke:#ffb69f; stroke-width:2.3; stroke-linecap:round; opacity:.8; animation:palmTrace 3.6s ease-in-out infinite alternate; }
.palm-heart { animation-delay:.35s; }.palm-head-line { animation-delay:.7s; }.palm-fate { animation-delay:1s; }
.palm-aura { position:absolute; z-index:1; width:68%; aspect-ratio:1; border:1px solid rgba(255,196,151,.25); border-radius:50%; box-shadow:0 0 70px rgba(255,130,103,.2),inset 0 0 45px rgba(246,186,142,.08); animation:palmAura 3.4s ease-in-out infinite; }
.palm-star { position:absolute; z-index:3; color:#f9d7a1; animation:palmSpark 2.6s ease-in-out infinite; }
.palm-star-one { left:15%; top:18%; }.palm-star-two { right:17%; top:32%; animation-delay:.8s; }.palm-star-three { left:21%; bottom:17%; animation-delay:1.4s; }
.palm-form-wrap { min-width:0; }
.palm-intro { margin:0 0 18px; color:var(--muted); line-height:1.65; }
.palm-form label,.palm-dominant legend { color:var(--ink); font-size:.75rem; font-weight:800; }
.palm-dominant { margin:0; padding:0; border:0; }
.palm-dominant legend { margin-bottom:9px; }
.palm-hand-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.palm-hand-options label { position:relative; min-width:0; cursor:pointer; }
.palm-hand-options input { position:absolute; opacity:0; pointer-events:none; }
.palm-hand-options span { min-height:50px; display:flex; align-items:center; justify-content:center; padding:10px; border:1px solid var(--line); border-radius:15px; color:var(--muted); background:rgba(255,255,255,.045); text-align:center; transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease; }
.palm-hand-options input:checked + span { color:#fff; border-color:#6d3542; background:linear-gradient(135deg,#47252f,#7d3e45); box-shadow:0 9px 24px rgba(95,45,57,.18); transform:translateY(-1px); }
.palm-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.palm-photo-slot { position:relative; height:190px; min-height:190px; place-items:center; align-content:center; gap:6px; padding:18px; border:2px dashed rgba(255,195,160,.28); border-radius:22px; color:#f0c4ab; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(125,62,69,.08)); text-align:center; }
.palm-photo-slot::after { position:absolute; inset:8px; content:""; border:1px solid rgba(108,56,65,.08); border-radius:15px; pointer-events:none; }
.palm-photo-slot .palm-photo-icon { width:42px; height:42px; display:grid; place-items:center; padding:0; border:1px solid rgba(93,47,55,.17); border-radius:50%; color:#fff; background:#512b36; }
.palm-photo-slot strong { position:relative; z-index:1; font-size:.82rem; }
.palm-photo-slot small { position:relative; z-index:1; max-width:190px; color:#bba0a4; font-size:.65rem; font-weight:650; line-height:1.4; }
.palm-photo-slot b { position:absolute; z-index:2; right:12px; bottom:12px; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#61333c; font-size:1rem; }
.palm-photo-slot.has-image { border-style:solid; border-color:#ff9c82; color:#fff; }
.palm-photo-slot.has-image strong,.palm-photo-slot.has-image small { color:#fff; text-shadow:0 1px 5px rgba(0,0,0,.65); }
.palm-photo-slot.has-image .palm-photo-icon { background:rgba(29,17,21,.72); }
.palm-privacy { display:flex; align-items:flex-start; gap:9px; margin:1px 0; padding:12px 14px; border:1px solid var(--line); border-radius:15px; color:var(--muted); background:rgba(255,255,255,.045); font-size:.7rem; line-height:1.5; }
.palm-privacy span { color:#a54b50; font-size:1.1rem; }
.palm-submit { display:flex; align-items:center; justify-content:space-between; padding-inline:18px; color:#fff; background:linear-gradient(135deg,#5a2e39,#8f494c); box-shadow:0 12px 28px rgba(95,45,57,.2); }
@keyframes palmTrace { from { opacity:.42; stroke-dasharray:8 6; } to { opacity:1; stroke-dasharray:42 4; } }
@keyframes palmAura { 50% { transform:scale(1.08); opacity:.65; } }
@keyframes palmSpark { 50% { transform:scale(1.45) rotate(20deg); text-shadow:0 0 18px rgba(255,215,161,.8); } }

.dashboard-history-card { margin-top: 14px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.dashboard-history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.dashboard-history-head h2 { margin: 0 0 5px; }
.dashboard-history-head p { margin: 0; }
.reading-filter-chips { max-width: 100%; display: flex; gap: 6px; padding: 4px; overflow-x: auto; border-radius: 16px; background: var(--surface-2); scrollbar-width: none; }
.reading-filter-chips::-webkit-scrollbar { display: none; }
.reading-filter-chips a { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: .7rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.reading-filter-chips a.is-active { color: #241624; background: var(--accent); }
.reading-history-list { display: grid; gap: 8px; }
.reading-history-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(145px, auto); align-items: center; gap: 14px; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035); }
.reading-history-item.status-completed { border-color: rgba(104,214,170,.24); }
.reading-history-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #2c2132, #4c3158); font-size: 1.12rem; }
.reading-history-main { min-width: 0; }
.reading-history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; }
.reading-history-meta strong { color: var(--accent-dark); font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; }
.reading-history-meta span::before { content: "•"; margin-right: 8px; color: #b7adb4; }
.reading-history-main h3 { margin: 5px 0 3px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: .96rem; }
.reading-history-main p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .72rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.reading-history-side { display: grid; justify-items: end; gap: 9px; }
.reading-status-pill { min-height: 28px; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: #cbbdcd; background: rgba(255,255,255,.07); font-size: .63rem; font-weight: 800; white-space: nowrap; }
.status-in_progress .reading-status-pill { color: #ffd49d; background: rgba(243,165,109,.13); }
.status-completed .reading-status-pill { color: #91e1bf; background: var(--green-soft); }
.reading-history-action { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 13px; color: #241624; background: var(--accent); font-size: .7rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.reading-history-action b { color: var(--accent); font-size: .9rem; }
.reading-history-empty { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 1px dashed #d9cfd5; border-radius: 20px; background: var(--surface-2); text-align: center; }
.reading-history-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #241624; background: var(--accent); }
.reading-history-empty h3 { margin: 0; font-size: .92rem; }
.reading-history-empty a { color: var(--accent-dark); font-size: .75rem; font-weight: 800; text-decoration: none; }

/* Loyalty at payment */
.loyalty-payment-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 14px; padding: 20px; border: 1px solid rgba(243,165,109,.32); border-radius: 26px; background: linear-gradient(135deg, rgba(243,165,109,.1), rgba(115,57,141,.13)); }
.loyalty-payment-card h2 { margin-bottom: 6px; }
.loyalty-payment-card p { margin: 0; }
.loyalty-gift-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: #241624; background: var(--accent); font-size: 1.4rem; }
.loyalty-redeem-button { min-height: 48px; padding: 11px 16px; border: 0; border-radius: 15px; color: #241624; background: var(--accent); font-weight: 800; cursor: pointer; }

/* One-hand Tarot / Katina picker */
.card-reading-shell { padding: 0; overflow: hidden; background: var(--surface); }
.card-reading-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: clamp(22px,4vw,38px); }
.card-reading-head h1 { margin-bottom: 9px; font-size: clamp(2rem, 5vw, 3.6rem); }
.card-reading-head p { margin: 0; }
.card-reader-change { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.055); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.mobile-card-picker { position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px,4vw,34px); color: #fff; background: radial-gradient(circle at 50% 47%, rgba(190,123,205,.25), transparent 30%), radial-gradient(circle at 14% 12%, rgba(255,119,109,.18), transparent 26%), linear-gradient(155deg, #150d1d 0%, #28152f 58%, #160d1d 100%); }
.mobile-card-picker::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .3; pointer-events: none; background-image: radial-gradient(circle, rgba(255,236,196,.8) 0 1px, transparent 1.5px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.card-ritual-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; max-width: 690px; margin: 0 auto 18px; }
.card-ritual-head > div { min-width: 0; display: grid; gap: 3px; }
.card-ritual-head span:not(.card-ritual-symbol) { color: #e7bddf; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-ritual-head strong { font-size: clamp(.96rem,2.4vw,1.18rem); line-height: 1.35; }
.card-ritual-symbol { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,226,177,.35); border-radius: 50%; color: #ffe2a8; background: rgba(255,255,255,.07); box-shadow: 0 0 28px rgba(241,194,112,.13); font-size: 1.2rem; }
.selection-pulse .card-ritual-symbol { animation: ritualPulse .7s ease; }
.deck-toolbar { max-width: 690px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 auto; padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,.09); }
.deck-toolbar > div { min-width: 0; display: grid; gap: 3px; }
.deck-toolbar span { color: rgba(255,255,255,.62); font-size: .7rem; font-weight: 750; }
.deck-toolbar .selection { margin: 0; padding: 0; color: #fff; background: transparent; font-size: 1rem; }
.deck-shuffle { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: .7rem; font-weight: 800; cursor: pointer; }
.deck-shuffle > span { color: #ffe2a8; font-size: 1rem; }
.deck-shuffle:disabled { opacity: .45; cursor: default; }
.deck-overview { margin: 2px auto 10px; color: rgba(255,255,255,.55); font-size: .66rem; line-height: 1.45; text-align: center; }
.selected-card-tray { position: relative; width: min(100%, 460px); display: grid; justify-items: center; margin: 2px auto 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 21px; background: radial-gradient(circle at 50% 42%, rgba(164,89,177,.16), transparent 62%), rgba(5,2,8,.2); }
.selected-card-tray[data-spread="katina"] { min-height: 116px; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: start; gap: 4px; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(1),
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(7) { transform: translateY(32px) rotate(var(--arc-r,0deg)); }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(1) { --arc-r: -9deg; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(7) { --arc-r: 9deg; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(2),
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(6) { transform: translateY(16px) rotate(var(--arc-r,0deg)); }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(2) { --arc-r: -6deg; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(6) { --arc-r: 6deg; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(3),
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(5) { transform: translateY(5px) rotate(var(--arc-r,0deg)); }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(3) { --arc-r: -3deg; }
.selected-card-tray[data-spread="katina"] .selected-card-slot:nth-child(5) { --arc-r: 3deg; }
.selected-card-tray[data-spread="tarot"] { width: min(100%,360px); min-height: 220px; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(4,46px); align-items: center; gap: 1px 4px; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(1) { grid-column: 2; grid-row: 2; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(2) { z-index: 3; grid-column: 2; grid-row: 2; transform: rotate(90deg); }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(3) { grid-column: 2; grid-row: 1; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(4) { grid-column: 2; grid-row: 4; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(5) { grid-column: 1; grid-row: 2; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(6) { grid-column: 3; grid-row: 2; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(7) { grid-column: 6; grid-row: 4; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(8) { grid-column: 6; grid-row: 3; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(9) { grid-column: 6; grid-row: 2; }
.selected-card-tray[data-spread="tarot"] .selected-card-slot:nth-child(10) { grid-column: 6; grid-row: 1; }
.selected-card-slot { position: relative; width: clamp(38px,6vw,50px); aspect-ratio: 2/3; display: grid; place-items: end center; padding: 4px; overflow: hidden; border-radius: 8px; }
.selected-card-slot > span { position: relative; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(18,10,22,.78); font-size: .59rem; font-weight: 800; }
.selected-card-slot.is-empty { border: 1px dashed rgba(255,255,255,.22); color: rgba(255,255,255,.45); background: rgba(255,255,255,.025); }
.selected-card-slot.is-filled { border: 1px solid rgba(255,226,168,.42); background-position: center; background-size: cover; box-shadow: 0 5px 14px rgba(0,0,0,.28); }
.selected-card-slot.katina-back { background-image: url('/static/assets/katina-back.svg?v=20260512'); }
.selected-card-slot.tarot-back { background-image: url('/static/assets/tarot-back.svg?v=20260512'); }
.selected-card-slot.is-newest { animation: slotArrive .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 2px rgba(255,226,168,.3), 0 0 22px rgba(255,185,116,.28); }
.deck-stage { position: relative; min-height: 190px; max-width: 860px; margin: 0 auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; background: rgba(4,2,7,.18); scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.deck-stage::-webkit-scrollbar { display: none; }
.deck-aura { position: sticky; z-index: 0; left: 10%; top: 108px; width: 80%; height: 66px; display: block; border: 1px solid rgba(255,221,168,.18); border-radius: 50%; background: radial-gradient(ellipse, rgba(183,99,197,.26), transparent 68%); box-shadow: 0 0 50px rgba(164,79,181,.12); pointer-events: none; }
.mobile-card-picker .deck { position: relative; z-index: 1; width: max-content; min-width: 100%; display: flex; align-items: center; gap: 8px; max-height: none; margin: -52px 0 0; padding: 22px 28px 30px; overflow: visible; border: 0; background: transparent; transition: opacity .24s ease, transform .34s ease, filter .24s ease; }
.mobile-card-picker .card-back { --fan-y: 0px; --fan-r: 0deg; width: 78px; flex: 0 0 78px; min-width: 0; border-radius: 12px; transform: translateY(var(--fan-y)) rotate(var(--fan-r)); transform-origin: 50% 115%; scroll-snap-align: center; box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 0 1px rgba(255,224,170,.1); transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.mobile-card-picker .card-back:nth-child(6n+1) { --fan-y: 8px; --fan-r: -2.5deg; }
.mobile-card-picker .card-back:nth-child(6n+2) { --fan-y: 3px; --fan-r: -1deg; }
.mobile-card-picker .card-back:nth-child(6n+4) { --fan-y: 4px; --fan-r: 1.2deg; }
.mobile-card-picker .card-back:nth-child(6n+5) { --fan-y: 8px; --fan-r: 2.5deg; }
.mobile-card-picker .card-back:nth-child(6n) { --fan-y: 5px; --fan-r: .8deg; }
.mobile-card-picker .card-back:hover { z-index: 4; transform: translateY(calc(var(--fan-y) - 10px)) rotate(var(--fan-r)) scale(1.04); filter: brightness(1.09); }
.mobile-card-picker .card-back:active { transform: translateY(calc(var(--fan-y) - 3px)) rotate(var(--fan-r)) scale(.96); }
.mobile-card-picker .card-back.is-picking { z-index: 5; pointer-events: none; animation: cardChoose .24s ease forwards; }
.mobile-card-picker .card-back.picked,
.mobile-card-picker .card-back.picked:hover,
.mobile-card-picker .card-back.picked:active { z-index: 3; opacity: .48; pointer-events: none; cursor: not-allowed; transform: translateY(calc(var(--fan-y) - 7px)) rotate(var(--fan-r)) scale(.96); filter: grayscale(.18) brightness(.82); box-shadow: 0 0 0 2px rgba(255,226,168,.7), 0 0 22px rgba(255,190,118,.2); }
.mobile-card-picker .card-back.picked::after { top: 8px; min-width: 28px; height: 28px; background: linear-gradient(135deg,#ff796e,#f5c478); box-shadow: 0 3px 14px rgba(255,121,110,.35); }
.mobile-card-picker.just-shuffled .card-back { animation: ritualDeckIn .42s cubic-bezier(.22,.8,.24,1) both; animation-delay: var(--deal-delay,0ms); }
.mobile-card-picker.is-shuffling .deck { opacity: .12; transform: scale(.9); filter: blur(2px); }
.mobile-card-picker.is-complete .deck { opacity: .2; filter: blur(1px); pointer-events: none; }
.mobile-card-picker.is-complete .deck-aura { opacity: .4; }
.deck-actions { min-height: 48px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.deck-undo, .deck-continue { min-height: 44px; padding: 10px 15px; border-radius: 999px; font-size: .7rem; font-weight: 800; cursor: pointer; }
.deck-undo { border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); background: transparent; }
.deck-continue { border: 0; color: var(--ink); background: linear-gradient(135deg, #ff796e, #f6c07a); box-shadow: 0 9px 24px rgba(255,121,110,.2); }
.deck-hint { max-width: 580px; margin: 10px auto 0; color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.55; text-align: center; }
.card-reading-form { padding: clamp(20px,4vw,34px); }
.card-reading-form button[data-card-submit]:disabled { color: #746878; background: rgba(255,255,255,.08); cursor: not-allowed; }
.card-reading-form button[data-card-submit]:not(:disabled) { background: linear-gradient(135deg, var(--accent-dark), #7d3a89); box-shadow: 0 10px 26px rgba(125,58,137,.18); }
@keyframes ritualDeckIn { from { opacity: 0; transform: translateY(calc(var(--fan-y) + 18px)) rotate(0) scale(.8); } to { opacity: 1; transform: translateY(var(--fan-y)) rotate(var(--fan-r)) scale(1); } }
@keyframes cardChoose { 55% { opacity: 1; transform: translateY(-36px) rotate(0) scale(1.1); filter: brightness(1.35); } to { opacity: .48; transform: translateY(calc(var(--fan-y) - 7px)) rotate(var(--fan-r)) scale(.96); filter: brightness(.82); } }
@keyframes slotArrive { from { opacity: 0; transform: translateY(-13px) scale(.78); } to { opacity: 1; transform: none; } }
@keyframes ritualPulse { 50% { color: #fff2ca; transform: scale(1.08); box-shadow: 0 0 34px rgba(241,194,112,.3); } }

@media (max-width: 700px) {
  .notifications-head { align-items: stretch; flex-direction: column; }
  .notification-actions { align-items: stretch; justify-content: stretch; flex-direction: column; }
  .notification-actions form, .notification-actions .menu-cta { width: 100%; }
  .push-notification-control { align-items: stretch; }
  .push-status { max-width: none; text-align: left; }
  .dashboard-hero-v5 { min-height: 280px; grid-template-columns: 1fr; padding: 24px 20px; border-radius: 28px; }
  .dashboard-hero-orbit { position: absolute; right: -65px; top: -48px; width: 210px; height: 210px; opacity: .55; }
  .dashboard-hero-actions { padding-right: 34px; }
  .dashboard-hero-actions a { flex: 1 1 145px; }
  .dashboard-stats { gap: 7px; }
  .dashboard-stats article { min-height: 86px; padding: 13px 10px; border-radius: 18px; }
  .dashboard-stats span { font-size: 1.45rem; }
  .dashboard-stats small { font-size: .63rem; }
  .loyalty-card { padding: 19px; border-radius: 24px; }
  .loyalty-card-head { grid-template-columns: 1fr 88px; gap: 12px; }
  .loyalty-credit { min-width: 88px; padding: 12px 8px; border-radius: 18px; }
  .loyalty-credit strong { font-size: 1.65rem; }
  .loyalty-ready-row { align-items: stretch; flex-direction: column; }
  .loyalty-ready-row a { justify-content: center; }
  .dashboard-quick { padding: 15px; border-radius: 22px; }
  .dashboard-quick-grid { grid-template-columns: 1fr; gap: 7px; }
  .dashboard-quick-grid a { min-height: 62px; }
  .palm-layout { grid-template-columns:1fr; padding:18px 15px 24px; }
  .palm-ritual { width:min(72vw,280px); max-height:330px; }
  .palm-head { padding:22px 18px; }
  .palm-photo-slot { height:170px; min-height:170px; padding:12px; }
  .palm-hand-options { grid-template-columns:1fr; }
  .palm-hand-options span { min-height:48px; justify-content:flex-start; padding-inline:16px; }
  .dashboard-language-card { grid-template-columns: auto minmax(0, 1fr); padding: 14px; border-radius: 19px; }
  .dashboard-language-card form { grid-column: 1 / -1; }
  .dashboard-language-card select { width: 100%; min-height: 50px; }
  .dashboard-reading-profile { padding:15px; border-radius:20px; }
  .dashboard-reading-profile-head { grid-template-columns:auto minmax(0,1fr); }
  .dashboard-reading-profile-state { grid-column:1 / -1; justify-self:start; }
  .dashboard-reading-profile form { grid-template-columns:1fr; }
  .dashboard-reading-profile button { width:100%; }
  .personal-context-saved { grid-template-columns:auto minmax(0,1fr); }
  .personal-context-saved a { grid-column:2; justify-self:start; }
  .dashboard-history-card { padding: 16px 12px; border-radius: 23px; }
  .dashboard-history-head { align-items: stretch; flex-direction: column; gap: 13px; }
  .reading-filter-chips { margin-inline: -1px; }
  .reading-filter-chips a { flex: 1 0 auto; min-height: 42px; }
  .reading-history-item { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 12px; border-radius: 18px; }
  .reading-history-icon { width: 46px; height: 46px; border-radius: 15px; }
  .reading-history-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; justify-items: stretch; gap: 8px; }
  .reading-history-action { min-height: 44px; flex: 0 0 auto; }
  .reading-history-meta { gap: 6px; }
  .reading-history-main h3 { margin-top: 4px; }
  .loyalty-payment-card { grid-template-columns: auto 1fr; padding: 17px; border-radius: 22px; }
  .loyalty-payment-card form { grid-column: 1 / -1; }
  .loyalty-redeem-button { width: 100%; }
  .card-reading-shell { margin-inline: -2px; border-radius: 24px; }
  .card-reading-head { padding: 19px 16px; }
  .card-reading-head h1 { font-size: 2rem; }
  .mobile-card-picker { padding: 18px 11px 17px; }
  .card-ritual-head { gap: 10px; margin-bottom: 12px; }
  .card-ritual-symbol { width: 42px; height: 42px; }
  .deck-toolbar { position: static; margin: 0 3px; padding: 9px 0 10px; background: transparent; backdrop-filter: none; }
  .deck-shuffle { min-height: 42px; padding-inline: 11px; }
  .deck-overview { padding-inline: 14px; }
  .selected-card-tray { width: calc(100% - 6px); padding: 10px 7px; border-radius: 18px; }
  .selected-card-tray[data-spread="katina"] { min-height: 100px; gap: 2px; }
  .selected-card-tray[data-spread="tarot"] { width: min(100%,320px); min-height: 192px; grid-template-rows: repeat(4,40px); }
  .selected-card-slot { width: clamp(31px,9vw,39px); border-radius: 7px; }
  .deck-stage { min-height: 167px; border-radius: 22px; }
  .deck-aura { top: 97px; height: 53px; }
  .mobile-card-picker .deck { gap: 6px; margin-top: -44px; padding: 18px 18px 26px; }
  .mobile-card-picker .card-back { width: 64px; flex-basis: 64px; border-radius: 9px; }
  .deck-actions { margin-top: 2px; }
  .deck-undo, .deck-continue { min-height: 43px; padding-inline: 13px; }
  .card-reading-form { padding: 18px 15px 22px; }
  .card-identity-field:has(input[readonly]) { display: none; }
  .yildizname-shell { margin-inline:-2px; border-radius:24px; }
  .yildizname-head { grid-template-columns:auto 1fr; padding:19px 16px; }
  .yildizname-head h1 { font-size:2rem; }
  .yildizname-layout { grid-template-columns:1fr; gap:18px; padding:18px 15px 22px; }
  .star-ritual { width:min(76vw,300px); }
  .star-orbit i { transform:rotate(calc(var(--star-index) * 30deg)) translateY(-121px) rotate(calc(var(--star-index) * -30deg)); }
  .yildizname-account-field:has(input[readonly]) { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card-picker .card-back,
  .mobile-card-picker.just-shuffled .card-back,
  .selected-card-slot.is-newest,
  .selection-pulse .card-ritual-symbol,
  .celestial-orbit,
  .celestial-star { animation: none; transition: none; }
}

/* Site-wide visual continuity with the mystical home */
.hero:not(.app-hero-v4) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 220, 184, .16);
  color: #fff8f0;
  background:
    radial-gradient(circle at 88% 8%, rgba(235, 172, 114, .14), transparent 23%),
    radial-gradient(circle at 10% 116%, rgba(123, 58, 139, .2), transparent 43%),
    linear-gradient(145deg, rgba(35, 23, 43, .97), rgba(20, 13, 27, .98));
  box-shadow: 0 24px 70px rgba(3, 1, 7, .2);
}
.hero:not(.app-hero-v4)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .32;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 231, 200, .8) 0 1px, transparent 1.4px);
  background-position: 4px 7px;
  background-size: 49px 49px;
  mask-image: linear-gradient(105deg, transparent 18%, #000 74%, transparent 100%);
}
.hero:not(.app-hero-v4)::after {
  position: absolute;
  z-index: -1;
  right: clamp(20px, 7vw, 74px);
  top: 22px;
  width: 58px;
  height: 58px;
  content: "";
  opacity: .72;
  border-radius: 50%;
  box-shadow: -15px 7px 0 0 #efc78f;
  transform: rotate(-18deg);
}
.hero:not(.app-hero-v4) h1 { color: #fff9f3; }
.hero:not(.app-hero-v4) > p:not(.kicker) { max-width: 720px; color: #cbbdcd; }
.hero:not(.app-hero-v4) .kicker { color: #f1bd86; }
.card,
.reading-focus-card,
.notifications-card,
.dashboard-quick,
.dashboard-language-card,
.dashboard-history-card,
.dashboard-stats article {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: 0 18px 52px rgba(3,1,7,.12);
  backdrop-filter: blur(12px);
}
.reader-picker-head::after {
  position: absolute;
  right: 2px;
  top: 0;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  content: "✦";
  color: rgba(242,197,142,.48);
  font-size: 1.5rem;
  pointer-events: none;
}
.reader-card {
  border-color: rgba(255,220,184,.13);
  background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 14px 36px rgba(3,1,7,.15);
}
.reader-rating { color: #eec389; }
.popular-badge,
.notif-badge { color: #241624; }
.reader-focus-profile { background: rgba(255,255,255,.045); }
.payment-summary,
.payment-summary-card,
.install-device-card,
.legal-content { background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.025)); }
.install-hero { background: radial-gradient(circle at 90% 5%, rgba(243,165,109,.14), transparent 30%), linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); }
.install-app-icon { border: 1px solid rgba(255,255,255,.2); }
.seo-faq-item summary { color: var(--ink); }
.seo-guides-mini-links a { border-color: var(--line); color: var(--accent-dark); background: rgba(255,255,255,.04); }
.upload-hint[style] { color: var(--muted) !important; }
.reading-focus-profile img { border-color: rgba(255,255,255,.2) !important; }
.site-footer:not(.home-footer) {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 15%, rgba(243,165,109,.1), transparent 25%),
    linear-gradient(145deg, rgba(30,21,38,.96), rgba(13,9,18,.98));
  box-shadow: 0 20px 55px rgba(3,1,7,.16);
}
.site-footer:not(.home-footer)::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,231,200,.8) 0 1px, transparent 1.4px);
  background-size: 53px 53px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
}
.site-footer:not(.home-footer) .footer-grid { position: relative; z-index: 1; }
.site-footer:not(.home-footer) .footer-brand { margin-top: 0; color: #fff9f3; }
.site-footer:not(.home-footer) .footer-links a,
.site-footer:not(.home-footer) .social-link {
  border-color: rgba(255,225,194,.12);
  color: #cdbed0;
  background: rgba(255,255,255,.045);
}
.site-footer:not(.home-footer) .social-icon { color: #efc28e; }
.account-danger-zone > summary { color: #ff919e; }
.danger-button { background: linear-gradient(135deg,#b83d58,#7f2945) !important; }
.reader-new { color: #d9a8ee; }
.registration-note,
.consent-check { color: var(--muted); }
.consent-check a { color: var(--accent-dark); }
.card-reading-form button[data-card-submit]:not(:disabled) { color: #241624; background: linear-gradient(135deg,#ffb47a,#f1cb96); }

@media (max-width: 820px) {
  .hero:not(.app-hero-v4)::after { right: 22px; top: 18px; width: 48px; height: 48px; box-shadow: -12px 6px 0 0 #efc78f; }
  .reader-picker-head::after { width: 44px; height: 44px; font-size: 1.1rem; }
  .site-footer:not(.home-footer) { padding: 20px 18px; }
  .site-footer:not(.home-footer) .footer-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .site-footer:not(.home-footer) .footer-links { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
  .site-footer:not(.home-footer) .footer-links a:nth-child(-n+5) { display: none; }
  .site-footer:not(.home-footer) .footer-links:not(:has(a:nth-child(6))) { display: none; }
  .site-footer:not(.home-footer) .footer-links a {
    min-height: 44px;
    justify-content: space-between;
    padding: 10px 13px;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.03);
  }
  .site-footer:not(.home-footer) .footer-links a:not(:last-child) { border-bottom: 1px solid var(--line); }
  .site-footer:not(.home-footer) .footer-links a::after { color: var(--accent-dark); content: "›"; }
  .site-footer:not(.home-footer) .footer-links:empty { display: none; }
  .site-footer:not(.home-footer) .footer-social { position: relative; z-index: 1; margin-top: 0; }
}
