:root {
  --bg: #120826;
  --bg-deep: #05020b;
  --panel: rgba(22, 12, 40, 0.56);
  --panel-strong: rgba(24, 13, 44, 0.72);
  --line: rgba(255, 195, 228, 0.1);
  --text: #fbf8ff;
  --muted: rgba(239, 229, 255, 0.68);
  --primary: #9e67ff;
  --pink: #ff6dbb;
  --gold: #f0cc73;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(120, 147, 255, 0.2), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(160, 132, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 108%, rgba(41, 79, 156, 0.24), transparent 34%),
    linear-gradient(180deg, #08111f 0%, #050915 46%, #02040b 100%);
}

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

body::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(181, 212, 255, 0.82) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.46) 0 0.8px, transparent 1.4px);
  background-size: 220px 220px, 320px 320px, 160px 160px;
  background-position: 0 0, 48px 92px, 118px 32px;
  opacity: 0.92;
  animation: star-drift 90s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 3px),
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.86) 0 1.2px, transparent 3px),
    radial-gradient(circle at 42% 26%, rgba(196, 220, 255, 0.76) 0 1.8px, transparent 3.2px),
    radial-gradient(circle at 58% 84%, rgba(255, 255, 255, 0.82) 0 1.3px, transparent 3px),
    radial-gradient(circle at 76% 22%, rgba(201, 220, 255, 0.74) 0 1.4px, transparent 3px),
    radial-gradient(circle at 88% 64%, rgba(255, 255, 255, 0.84) 0 1.6px, transparent 3.2px),
    radial-gradient(circle at 20% 22%, rgba(83, 110, 207, 0.12), transparent 22%),
    radial-gradient(circle at 72% 20%, rgba(111, 75, 188, 0.12), transparent 24%),
    radial-gradient(circle at 56% 62%, rgba(75, 119, 210, 0.1), transparent 28%);
  animation: aura-drift 20s ease-in-out infinite alternate;
}

body.is-auth-pending .app-shell {
  visibility: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.1;
}

p {
  margin: 0;
}

.eyebrow,
.daily-card__label,
.tarot-reading__tag,
.playlist-track__tag {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(244, 222, 254, 0.86);
}

.app-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 108px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 10px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  gap: 2px;
  padding: 11px 22px 13px;
  border: 1px solid rgba(203, 221, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 19, 38, 0.92), rgba(5, 11, 24, 0.76)),
    radial-gradient(circle at top, rgba(193, 214, 255, 0.12), transparent 62%);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 72%);
  opacity: 0.88;
}

.brand-mark::before {
  top: 8px;
  left: 14px;
}

.brand-mark::after {
  right: 12px;
  bottom: 8px;
}

.brand-mark__word {
  position: relative;
  z-index: 1;
  display: block;
  text-shadow: 0 0 16px rgba(181, 213, 255, 0.16);
}

.brand-mark__word--top {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  font-size: clamp(0.74rem, 1.35vw, 0.84rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, 0.9);
  padding-left: 0.42em;
}

.brand-mark__word--bottom {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 0.96;
  color: transparent;
  background: linear-gradient(180deg, #fffdfa 0%, #f7e7ba 42%, #d7ad45 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.topbar-badge {
  position: relative;
  display: inline-grid;
  gap: 2px;
  justify-items: end;
  min-width: 112px;
  padding: 11px 18px 13px;
  border: 1px solid rgba(240, 204, 115, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 78% 20%, rgba(240, 204, 115, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(10, 19, 38, 0.92), rgba(5, 11, 24, 0.76)),
    radial-gradient(circle at top, rgba(193, 214, 255, 0.12), transparent 62%);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 24px rgba(240, 204, 115, 0.06);
  overflow: hidden;
}

.topbar-badge--interactive {
  appearance: none;
  align-items: end;
  text-align: right;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.topbar-badge--interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 204, 115, 0.4);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 28px rgba(240, 204, 115, 0.1);
}

.topbar-badge--interactive:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(240, 204, 115, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.36),
    inset 0 0 28px rgba(240, 204, 115, 0.1);
}

.topbar-badge.is-empty {
  border-color: rgba(255, 109, 187, 0.34);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(255, 109, 187, 0.1);
}

.topbar-badge::before,
.topbar-badge::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 72%);
  opacity: 0.8;
}

.topbar-badge::before {
  top: 8px;
  left: 12px;
}

.topbar-badge::after {
  right: 10px;
  bottom: 8px;
}

.topbar-badge__label,
.topbar-badge__summary,
.topbar-badge__value,
.topbar-badge__plus {
  position: relative;
  z-index: 1;
}

.topbar-badge__summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-badge__label {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 231, 186, 0.92);
  padding-left: 0.28em;
}

.topbar-badge__value {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  background: linear-gradient(180deg, #fffdfa 0%, #f7e7ba 42%, #d7ad45 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.topbar-badge__plus {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.28), rgba(255, 109, 187, 0.34));
  box-shadow: inset 0 0 0 1px rgba(255, 245, 214, 0.2);
  color: rgba(255, 251, 239, 0.96);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark__word--bottom::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 218, 255, 0.88), transparent);
}

.auth-screen {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 109, 187, 0.16), transparent 28%),
    rgba(5, 2, 11, 0.8);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.auth-screen.is-visible {
  display: grid;
}

.push-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.16), transparent 26%),
    rgba(5, 2, 11, 0.78);
  backdrop-filter: blur(16px);
  z-index: 34;
}

.push-prompt[hidden] {
  display: none;
}

.treatment-prompt {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(158, 103, 255, 0.18), transparent 26%),
    rgba(5, 2, 11, 0.82);
  backdrop-filter: blur(16px);
  z-index: 35;
}

.treatment-prompt[hidden] {
  display: none;
}

.push-prompt__card {
  width: min(460px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(240, 204, 115, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(28, 15, 49, 0.97), rgba(11, 6, 20, 0.97));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.treatment-prompt__card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(158, 103, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(28, 15, 49, 0.97), rgba(11, 6, 20, 0.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.push-prompt__copy,
.push-prompt__note,
.push-prompt__feedback,
.treatment-prompt__copy,
.treatment-form__feedback,
.treatment-option__copy {
  color: var(--muted);
  line-height: 1.68;
}

.push-prompt__copy {
  margin-top: 14px;
}

.treatment-prompt__copy {
  margin-top: 14px;
}

.push-prompt__note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.push-prompt__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.push-prompt__button {
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(158, 103, 255, 0.22);
}

.push-prompt__button--ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.push-prompt__feedback {
  min-height: 24px;
  margin-top: 14px;
}

.treatment-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.treatment-option {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(158, 103, 255, 0.08), transparent 40%);
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.treatment-option:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 204, 115, 0.22);
}

.treatment-option:focus-within {
  border-color: rgba(240, 204, 115, 0.34);
  box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08);
}

.treatment-option:has(input:checked) {
  border-color: rgba(240, 204, 115, 0.34);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(240, 204, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(240, 204, 115, 0.12), rgba(158, 103, 255, 0.12)),
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.1), transparent 40%);
}

.treatment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.treatment-option__label {
  font-weight: 700;
  color: var(--text);
}

.treatment-form button {
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 204, 115, 0.92), rgba(216, 142, 255, 0.88) 46%, rgba(255, 109, 187, 0.92));
  color: white;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 245, 214, 0.32);
}

.treatment-form__feedback {
  min-height: 24px;
}

.auth-screen__panel,
.hero-panel,
.panel,
.music-player,
.playlist-track,
.prayer-display,
.daily-card,
.tabbar {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-screen__panel {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(240, 204, 115, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(28, 15, 49, 0.96), rgba(11, 6, 20, 0.96));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 204, 115, 0.08);
}

.auth-screen__tag {
  margin-bottom: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: rgba(247, 231, 186, 0.9);
}

.auth-screen__copy,
.hero-panel__text,
.direction-panel__lead,
.direction-panel__prayer,
.prayer-display p,
.music-player__description,
.daily-card p,
.auth-form__feedback,
.prayer-card__focus,
.playlist-track__duration,
.playlist-track__state {
  color: var(--muted);
  line-height: 1.72;
}

.auth-screen__copy {
  margin-top: 14px;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 204, 115, 0.12);
}

.auth-switch__button {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
}

.auth-switch__button.is-active {
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.14), rgba(158, 103, 255, 0.22));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.12);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(240, 204, 115, 0.04), transparent 38%);
  color: var(--text);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(240, 204, 115, 0.38);
  box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08);
}

.auth-form button,
.hero-actions__button,
.prayer-card,
.playlist-track,
.tabbar__item,
.tarot-flip {
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    opacity 240ms ease;
}

.auth-form button {
  padding: 14px 18px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 204, 115, 0.92), rgba(216, 142, 255, 0.88) 46%, rgba(255, 109, 187, 0.92));
  color: white;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 245, 214, 0.32);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.hero-panel,
.panel {
  animation: rise-fade 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: 430px;
  padding: 44px;
  border-radius: 32px;
  background:
    radial-gradient(circle at right, rgba(255, 109, 187, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(22, 12, 40, 0.84), rgba(9, 5, 17, 0.82));
  overflow: hidden;
}

.hero-panel__text {
  max-width: 470px;
  margin-top: 16px;
}

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

.hero-actions__button {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-panel__motivation {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 4px 0 0 0;
  color: transparent;
  background: linear-gradient(180deg, #fffdfa 0%, #f7e7ba 42%, #d7ad45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(215, 173, 69, 0.4);
}

.home-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .home-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nav-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 24px;
  border: 2px solid rgba(158, 103, 255, 0.3);
  background: var(--bg-deep);
  background-image: linear-gradient(to top, rgba(18, 8, 38, 0.9), rgba(18, 8, 38, 0.2)), var(--bg-url);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px;
  box-shadow: 0 0 20px rgba(158, 103, 255, 0.15);
  transition: all 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(158, 103, 255, 0.4);
}

.nav-card__icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.18), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
  color: rgba(255, 248, 231, 0.96);
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.14);
}

.nav-card__label {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions__button:hover,
.prayer-card:hover,
.playlist-track:hover,
.tabbar__item:hover,
.tarot-flip:hover {
  transform: translateY(-2px);
}

.hero-panel__sigil {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.orbit,
.orbit-star,
.sigil-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid rgba(255, 240, 204, 0.14);
  box-shadow: inset 0 0 16px rgba(240, 204, 115, 0.04);
}

.orbit--outer {
  width: 310px;
  height: 310px;
  animation: spin 18s linear infinite;
}

.orbit--middle {
  width: 228px;
  height: 228px;
  animation: spin-reverse 13s linear infinite;
}

.orbit--inner {
  width: 118px;
  height: 118px;
  animation: spin 9s linear infinite;
}

.orbit-stars-ring-1,
.orbit-stars-ring-2 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit-stars-ring-1 {
  animation: spin 18s linear infinite;
}

.orbit-stars-ring-2 {
  animation: spin-reverse 13s linear infinite;
}

.orbit-star {
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.8);
}

.orbit-star--top {
  top: 30px;
}

.orbit-star--right {
  right: 68px;
  background: #fff6d8;
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.88);
}

.orbit-star--bottom {
  bottom: 36px;
}

.orbit-star--left {
  left: 68px;
  background: #fff6d8;
  box-shadow: 0 0 18px rgba(240, 204, 115, 0.88);
}

.sigil-core {
  width: 82px;
  height: 82px;
  background:
    radial-gradient(circle, rgba(255, 248, 231, 0.98) 0 18%, rgba(240, 204, 115, 0.9) 32%, rgba(167, 115, 255, 0.28) 54%, transparent 74%);
  box-shadow:
    0 0 22px rgba(240, 204, 115, 0.58),
    0 0 46px rgba(167, 115, 255, 0.26);
  animation: glow-pulse 4.8s ease-in-out infinite;
}

.hero-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.68);
  animation: twinkle 3s ease-in-out infinite;
}

.hero-stars span:nth-child(1) {
  top: 40px;
  left: 58px;
}

.hero-stars span:nth-child(2) {
  top: 88px;
  right: 54px;
  animation-delay: 0.5s;
}

.hero-stars span:nth-child(3) {
  bottom: 64px;
  right: 84px;
  animation-delay: 1s;
}

.hero-stars span:nth-child(4) {
  bottom: 40px;
  left: 86px;
  animation-delay: 1.5s;
}

.hero-stars span:nth-child(5) {
  top: 146px;
  left: 50%;
  animation-delay: 2s;
}

.panel {
  padding: 26px;
  border-radius: 28px;
  background: var(--panel);
}

.panel--wide {
  padding: 30px;
}

.panel--tarot {
  background: var(--panel-strong);
}

.direction-panel {
  margin-top: 30px;
}

.direction-panel__lead {
  margin-top: 16px;
  font-size: 1.04rem;
  color: rgba(251, 248, 255, 0.92);
}

.direction-panel__prayer {
  max-width: 760px;
  margin-top: 14px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.screen-head--center {
  justify-content: center;
  text-align: center;
}

.music-intro {
  max-width: 540px;
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(244, 222, 254, 0.84);
}

.tarot-status {
  max-width: 420px;
  margin: 10px auto 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(244, 222, 254, 0.84);
}

.prayer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
}

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

.prayer-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-align: left;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
}

.prayer-card.is-active {
  background: linear-gradient(135deg, rgba(158, 103, 255, 0.18), rgba(255, 109, 187, 0.08));
  border-color: rgba(255, 109, 187, 0.16);
}

.prayer-card__title {
  font-size: 1.06rem;
}

.prayer-card__focus {
  font-size: 0.84rem;
}

.prayer-display {
  position: relative;
  min-height: 360px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
}

.prayer-display::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.prayer-display__header {
  margin-bottom: 16px;
}

.prayer-display__focus {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 109, 187, 0.12);
  color: rgba(251, 248, 255, 0.9);
  font-size: 0.82rem;
}

.prayer-display__title {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.prayer-display p+p {
  margin-top: 14px;
}

.prayer-display__closing {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.music-player {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(29, 15, 52, 0.96), rgba(12, 7, 22, 0.96));
}

.music-player__description {
  margin-top: 12px;
  max-width: 300px;
}

.music-progress {
  position: relative;
  height: 6px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.music-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--primary));
  transition: width 280ms ease, opacity 280ms ease;
}

.music-player__visual {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 128px;
  margin-top: 24px;
}

.music-player__visual span {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 109, 187, 0.76));
  animation: equalize 1.8s ease-in-out infinite;
  transform-origin: bottom;
  opacity: 0.38;
}

.music-player.is-playing .music-player__visual span {
  opacity: 1;
}

.music-player__visual span:nth-child(1) {
  height: 36%;
  animation-delay: 0.1s;
}

.music-player__visual span:nth-child(2) {
  height: 72%;
  animation-delay: 0.5s;
}

.music-player__visual span:nth-child(3) {
  height: 52%;
  animation-delay: 1s;
}

.music-player__visual span:nth-child(4) {
  height: 88%;
  animation-delay: 0.3s;
}

.music-player__visual span:nth-child(5) {
  height: 58%;
  animation-delay: 1.2s;
}

.music-player__visual span:nth-child(6) {
  height: 82%;
  animation-delay: 0.8s;
}

.music-player__visual span:nth-child(7) {
  height: 46%;
  animation-delay: 1.5s;
}

.music-player__embed {
  display: none;
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.music-player__embed.is-visible {
  display: block;
}

.music-player__embed iframe {
  display: block;
  width: 100%;
  min-height: 188px;
  border: 0;
}

.playlist {
  display: grid;
  gap: 10px;
}

.playlist-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: all 200ms ease;
}

.playlist-track.is-active {
  background: linear-gradient(135deg, rgba(158, 103, 255, 0.16), rgba(255, 109, 187, 0.08));
  border-color: rgba(255, 109, 187, 0.16);
}

.playlist-track__meta {
  display: grid;
  gap: 4px;
}

.playlist-track__title {
  font-size: 1rem;
}

.playlist-track__duration {
  min-width: 44px;
  text-align: center;
}

.playlist-track__duration.is-empty {
  visibility: hidden;
}

.playlist-track__state {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.playlist-track__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.playlist-track__icon--pause {
  display: none;
}

.playlist-track.is-active .playlist-track__state {
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.22), rgba(255, 109, 187, 0.28));
  color: rgba(255, 248, 231, 0.98);
}

.playlist-track.is-active .playlist-track__icon--play {
  display: none;
}

.playlist-track.is-active .playlist-track__icon--pause {
  display: block;
}

.tarot-stack {
  display: grid;
  gap: 24px;
  padding-top: 12px;
  justify-items: center;
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

.tarot-flip {
  width: 100%;
  max-width: 358px;
  margin-top: -18px;
  padding: 0;
  background: transparent;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  perspective-origin: center;
  -webkit-perspective-origin: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, filter;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 280ms ease, filter 280ms ease;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
}

.tarot-flip:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.42));
}

.tarot-flip:focus-visible {
  outline: none;
}

.tarot-flip.is-busy {
  pointer-events: none;
  opacity: 0.84;
}

.tarot-flip__inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.66;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tarot-flip.is-revealed .tarot-flip__inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Dedicated Player Screen */
.player-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #0f071e;
  overflow: hidden;
}

.tarot-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 32px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  overflow: hidden;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tarot-face--back {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  background:
    radial-gradient(circle at 50% 14%, rgba(140, 57, 214, 0.34), transparent 24%),
    radial-gradient(circle at 50% 76%, rgba(90, 20, 162, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(8, 2, 18, 0.98), rgba(32, 4, 59, 0.98) 48%, rgba(4, 1, 12, 1));
  border: 1px solid rgba(229, 196, 106, 0.34);
}

.tarot-face--back::before,
.tarot-face--back::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
}

.tarot-face--back::before {
  border: 1px solid rgba(233, 203, 116, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(50, 10, 93, 0.68),
    inset 0 0 42px rgba(118, 21, 192, 0.22);
}

.tarot-face--back::after {
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(148, 53, 212, 0.08), transparent 46%),
    radial-gradient(circle at 50% 16%, rgba(255, 229, 160, 0.09), transparent 14%);
  animation: tarot-aura 7s ease-in-out infinite alternate;
}

.tarot-back__glow {
  position: absolute;
  inset: 8%;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(158, 82, 255, 0.3), transparent 62%);
  filter: blur(18px);
  opacity: 0.88;
}

.tarot-back__image {
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  background-image: url("carta.png");
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 179, 0.18),
    0 0 24px rgba(116, 26, 190, 0.34);
}

.tarot-face--front {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  justify-content: space-between;
  padding: 24px 24px 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 248, 218, 0.95), rgba(255, 248, 218, 0.2) 26%, transparent 27%),
    linear-gradient(180deg, #fffaf0 0%, #f7ebcc 42%, #ecd29d 100%);
  border: 2px solid rgba(229, 196, 106, 0.8);
  color: #2c1741;
}

.tarot-face--front::before,
.tarot-face--front::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
}

.tarot-face--front::before {
  border: 1px solid rgba(170, 118, 24, 0.38);
  box-shadow:
    inset 0 0 0 6px rgba(255, 251, 239, 0.42),
    inset 0 0 0 7px rgba(216, 174, 71, 0.18);
}

.tarot-face--front::after {
  inset: -35% -10%;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.38) 48%, transparent 72%);
  opacity: 0.45;
  transform: translateX(-48%) rotate(8deg);
  animation: tarot-shine 5.2s ease-in-out infinite;
}

.tarot-face__halo {
  position: absolute;
  top: 88px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 196, 106, 0.28), rgba(229, 196, 106, 0.06) 46%, transparent 72%);
  filter: blur(10px);
  animation: tarot-halo 4.6s ease-in-out infinite alternate;
}

.tarot-card__frame,
.tarot-card__eyebrow,
.tarot-card__symbol,
.tarot-card__name,
.tarot-card__quote,
.tarot-card__subtitle {
  position: relative;
  z-index: 1;
}

.tarot-card__frame {
  position: absolute;
  inset: 28px;
  border-radius: 24px;
  border: 1px solid rgba(173, 122, 27, 0.26);
  pointer-events: none;
}

.tarot-card__frame::before,
.tarot-card__frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(173, 122, 27, 0.48);
  border-radius: 50%;
  opacity: 0.6;
}

.tarot-card__frame::before {
  top: 22px;
  left: 22px;
}

.tarot-card__frame::after {
  right: 22px;
  bottom: 22px;
}

.tarot-card__eyebrow {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(126, 82, 12, 0.78);
}

.tarot-card__symbol {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(164, 116, 26, 0.36);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.12) 26%, transparent 30%),
    radial-gradient(circle, rgba(255, 244, 208, 0.86), rgba(232, 202, 113, 0.9) 58%, rgba(160, 110, 19, 0.94) 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 240, 0.32),
    0 12px 28px rgba(188, 134, 31, 0.16);
  font-size: clamp(2rem, 6vw, 3rem);
  color: #7a4b00;
  letter-spacing: 0.04em;
}

.tarot-card__name {
  padding: 0 18px;
  text-align: center;
  color: #30153f;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  line-height: 1.04;
  text-shadow: 0 3px 16px rgba(255, 255, 255, 0.3);
}

.tarot-card__quote {
  max-width: 250px;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(67, 39, 90, 0.92);
  font-style: italic;
}

.tarot-card__subtitle {
  max-width: 220px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.46);
  border: 1px solid rgba(164, 116, 26, 0.18);
  color: #9b7b2e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.68rem;
}

.daily-card {
  width: min(100%, 760px);
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.daily-card--ornate {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 204, 115, 0.18);
  background:
    radial-gradient(circle at 50% 0, rgba(240, 204, 115, 0.1), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(162, 79, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(20, 8, 39, 0.96), rgba(9, 3, 18, 0.98));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.daily-card--ornate::before,
.daily-card--ornate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.daily-card--ornate::before {
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(240, 204, 115, 0.12);
}

.daily-card--ornate::after {
  top: -120px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 204, 115, 0.12), transparent 70%);
  filter: blur(4px);
}

.daily-card--ornate h3 {
  position: relative;
  z-index: 1;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.daily-card.is-hidden {
  display: none;
}

.daily-card__divider {
  width: 92px;
  height: 1px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.tarot-reading__grid {
  display: grid;
  gap: 14px;
}

.tarot-reading__block {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 195, 228, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tarot-reading__block p:last-child {
  line-height: 1.7;
  color: rgba(248, 242, 255, 0.92);
}

.tarot-reading__tag {
  margin-bottom: 8px;
  color: var(--gold);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(720px, calc(100% - 24px));
  padding: 8px;
  border-radius: 22px;
  background: rgba(11, 5, 22, 0.8);
  z-index: 10;
}

.tabbar__item {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
}

.tabbar__item.is-active {
  background: rgba(158, 103, 255, 0.14);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 109, 187, 0.12);
}

.tabbar__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.tabbar__icon-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel.is-refreshing,
.hero-panel.is-refreshing,
.music-player.is-refreshing,
.playlist-track.is-refreshing,
.daily-card.is-refreshing,
.prayer-display.is-refreshing {
  animation: rise-fade 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.988);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tarot-aura {
  from {
    opacity: 0.5;
    transform: scale(0.98);
  }

  to {
    opacity: 0.88;
    transform: scale(1.03);
  }
}

@keyframes tarot-halo {
  from {
    opacity: 0.56;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes tarot-shine {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-56%) rotate(8deg);
  }

  36%,
  58% {
    opacity: 0.55;
    transform: translateX(12%) rotate(8deg);
  }

  100% {
    opacity: 0;
    transform: translateX(62%) rotate(8deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes equalize {

  0%,
  100% {
    transform: scaleY(0.38);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes aura-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -12px, 0) scale(1.03);
  }
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-80px, 36px, 0);
  }
}

@media (max-width: 900px) {

  .hero-panel,
  .prayer-layout,
  .music-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 16px, 1040px);
    padding-top: 14px;
  }

  .topbar {
    gap: 10px;
  }

  .brand-mark {
    padding: 10px 16px 12px;
  }

  .brand-mark__word--top {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
  }

  .topbar-badge {
    min-width: 88px;
    padding: 10px 14px 12px;
  }

  .topbar-badge__label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .auth-screen__panel,
  .hero-panel,
  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-panel__sigil {
    min-height: 250px;
  }

  .orbit--outer {
    width: 250px;
    height: 250px;
  }

  .orbit--middle {
    width: 180px;
    height: 180px;
  }

  .orbit--inner {
    width: 96px;
    height: 96px;
  }

  .tabbar__item {
    min-height: 52px;
  }

  .tabbar__icon {
    width: 22px;
    height: 22px;
  }

  .tabbar__icon-svg {
    width: 22px;
    height: 22px;
  }
}

/* Dedicated Player Screen */
.player-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0f071e;
  overflow: hidden;
}

.player-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(58, 28, 113, 0.8), rgba(215, 109, 119, 0.2), rgba(255, 175, 123, 0.1));
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.player-topbar,
.player-main,
.player-controls {
  position: relative;
  z-index: 1;
}

.player-topbar {
  padding: 24px;
  display: flex;
  align-items: center;
}

.player-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.player-icon-btn--small {
  color: rgba(255, 255, 255, 0.6);
}

.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.player-title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.player-center-btn {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  margin-bottom: 30px;
  transition: transform 0.2s, text-shadow 0.2s;
  filter: drop-shadow(0 0 15px rgba(158, 103, 255, 0.4));
}

.player-center-btn:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(158, 103, 255, 0.8));
}

.player-center-btn svg {
  width: 48px;
  height: 48px;
}

.player-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.player-visualizer span {
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
  height: 10%;
  animation: equalize 1.2s ease-in-out infinite alternate;
  transform-origin: center;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--primary);
}

.player-visualizer.is-paused span {
  animation-play-state: paused;
  height: 10% !important;
}

.player-visualizer span:nth-child(even) {
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation-delay: 0.3s;
}

.player-visualizer span:nth-child(3n) {
  animation-delay: 0.6s;
  animation-duration: 1.5s;
}

.player-actions-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  max-width: 320px;
}

.player-controls {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-circle-timer {
  position: relative;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.progress-ring__bar {
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 289;
  /* 2 * pi * r (46) approx 289 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 4px var(--primary));
}

.player-time-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Celestino Chat */

.panel--chat {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: calc(100vh - 170px);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 9, 30, 0.96), rgba(9, 4, 18, 0.96));
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 5, 20, 0.86);
}

.chat-contact__avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
}

.chat-contact__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(240, 204, 115, 0.32);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.chat-contact__status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6df7b0;
  box-shadow: 0 0 0 3px rgba(13, 8, 23, 0.9), 0 0 16px rgba(109, 247, 176, 0.55);
}

.chat-contact__meta {
  display: grid;
  gap: 4px;
}

.chat-contact__eyebrow,
.chat-message__label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(244, 222, 254, 0.72);
}

.chat-contact__name {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
}

.chat-contact__status {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at top, rgba(110, 142, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(11, 5, 22, 0.3), rgba(11, 5, 22, 0.04));
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: min(100%, 560px);
  animation: rise-fade 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-message--user {
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-message--user .chat-message__body {
  align-items: flex-end;
}

.chat-message--ai {
  align-self: flex-start;
}

.chat-message__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 204, 115, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

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

.chat-message__body {
  display: grid;
  gap: 6px;
}

.chat-message__bubble {
  padding: 14px 16px;
  border-radius: 20px;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--text);
  word-wrap: break-word;
}

.chat-message--user .chat-message__bubble {
  background: linear-gradient(135deg, rgba(158, 103, 255, 0.95), rgba(255, 109, 187, 0.92));
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 28px rgba(158, 103, 255, 0.22);
  color: #fff;
}

.chat-message--ai .chat-message__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 6px;
}

.chat-input-area {
  padding: 18px 20px 20px;
  background: rgba(12, 6, 22, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.chat-form__input {
  width: 100%;
  min-height: 54px;
  max-height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 15px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
  overflow-y: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form__input:focus {
  outline: none;
  border-color: rgba(240, 204, 115, 0.38);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(240, 204, 115, 0.08);
}

.chat-form__input:disabled {
  opacity: 0.65;
  cursor: wait;
}

.chat-form__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.chat-form__submit {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 12px 26px rgba(158, 103, 255, 0.22);
}

.chat-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255, 109, 187, 0.26);
}

.chat-form__submit:active {
  transform: translateY(1px);
}

.chat-form__submit:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.chat-credit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-credit-bar.is-low-balance {
  border-color: rgba(255, 109, 187, 0.2);
  background:
    radial-gradient(circle at right top, rgba(255, 109, 187, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.chat-credit-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 234, 255, 0.72);
}

.chat-credit-action {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.94), rgba(255, 109, 187, 0.86));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.icon-send {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-1px);
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

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

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

.credits-hub {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  min-height: calc(100vh - 188px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  border: 1px solid rgba(240, 204, 115, 0.14);
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(158, 103, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(16, 9, 29, 0.96), rgba(7, 4, 15, 0.98));
  box-shadow: var(--shadow);
}

.credits-hub__hero {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.credits-balance-card {
  width: min(100%, 620px);
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(240, 204, 115, 0.05);
}

.credits-balance-card__label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(247, 231, 186, 0.92);
}

.credits-balance-card__value {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.96;
  color: transparent;
  background: linear-gradient(180deg, #fffdfa 0%, #f7e7ba 42%, #d7ad45 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.credits-balance-card__copy {
  color: rgba(245, 236, 255, 0.76);
  line-height: 1.66;
}

.credits-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}

.credits-plan {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035)),
    rgba(11, 5, 21, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.credits-plan.is-featured {
  border-color: rgba(240, 204, 115, 0.26);
  background:
    radial-gradient(circle at top, rgba(240, 204, 115, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(11, 5, 21, 0.94);
  transform: translateY(-6px);
}

.credits-plan.is-best-value {
  border-color: rgba(255, 109, 187, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 187, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(11, 5, 21, 0.94);
}

.credits-plan__topline,
.credits-plan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-plan__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 231, 186, 0.96);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credits-plan__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.credits-plan__title {
  font-size: 1.55rem;
}

.credits-plan__credits {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  color: transparent;
  background: linear-gradient(180deg, #fffdfa 0%, #f7e7ba 42%, #d7ad45 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.credits-plan__meta,
.credits-plan__copy {
  color: rgba(244, 234, 255, 0.72);
  line-height: 1.6;
}

.credits-plan__features {
  display: grid;
  gap: 8px;
}

.credits-plan__feature,
.credits-plan__note {
  color: rgba(250, 244, 255, 0.84);
  line-height: 1.55;
}

.credits-plan__note {
  color: rgba(247, 231, 186, 0.92);
  font-weight: 700;
}

.credits-plan__button,
.credits-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.94), rgba(255, 109, 187, 0.9));
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.credits-back-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-hub__footer {
  display: flex;
  justify-content: center;
}

.credits-plan__foot {
  margin-top: auto;
}

.credits-plan__foot .credits-plan__button {
  width: 100%;
}

a.credits-plan__button {
  text-decoration: none;
}

body.is-credits-screen .tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

@media (max-width: 720px) {
  .panel--chat {
    min-height: calc(100vh - 156px);
  }

  .chat-contact {
    padding: 16px;
    gap: 14px;
  }

  .chat-contact__avatar-wrap {
    width: 58px;
    height: 58px;
  }

  .chat-feed {
    padding: 16px;
  }

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

  .chat-input-area {
    padding: 14px 14px 18px;
  }

  .chat-credit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-credit-action {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .credits-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .credits-hub {
    min-height: calc(100vh - 168px);
    padding: 20px;
    border-radius: 26px;
  }

  .credits-plans {
    grid-template-columns: 1fr;
  }

  .credits-plan.is-featured {
    transform: none;
  }

  .credits-plan__topline,
  .credits-plan__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .credits-plan__button,
  .credits-back-button {
    width: 100%;
  }
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.admin-shell {
  width: min(1440px, calc(100% - clamp(16px, 3vw, 32px)));
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px) 0 clamp(40px, 7vw, 72px);
  display: grid;
  grid-template-columns: clamp(240px, 24vw, 290px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 24px);
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  min-width: 0;
}

.admin-sidebar__brand,
.admin-sidebar__nav,
.admin-sidebar__group,
.admin-sidebar__footer,
.admin-content,
.admin-main {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.admin-content,
.admin-main,
.admin-view,
.admin-panel,
.admin-two-column,
.admin-toolbar,
.admin-screen-visual,
.admin-user-grid,
.admin-presets-grid,
.admin-table-wrap {
  min-width: 0;
}

.admin-sidebar__item {
  width: 100%;
  padding: clamp(12px, 1.4vw, 14px) clamp(14px, 1.8vw, 18px);
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: clamp(0.94rem, 1.1vw, 1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition:
    transform 220ms ease,
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.admin-sidebar__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(158, 103, 255, 0.28), rgba(255, 109, 187, 0.22));
  border-color: rgba(255, 109, 187, 0.3);
}

.admin-sidebar__footer {
  margin-top: 10px;
}

.admin-content__header {
  padding: clamp(20px, 2.8vw, 30px) clamp(18px, 3vw, 34px);
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  align-items: flex-start;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.admin-view {
  display: none;
  gap: clamp(20px, 2.8vw, 32px);
}

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

.admin-panel {
  padding: clamp(20px, 3vw, 38px);
}

.admin-panel__head {
  display: flex;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 22px);
  align-items: flex-start;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  flex-wrap: wrap;
}

.admin-panel__hint,
.admin-status,
.admin-warning,
.admin-empty-state,
.admin-user-card__meta,
.admin-activity-item span,
.admin-top-user-card span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-summary-grid,
.admin-micro-grid,
.admin-notification-summary {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.admin-stat-card,
.admin-metric-pill,
.admin-top-user-card,
.admin-user-card,
.admin-preset-card,
.admin-campaign-card,
.admin-activity-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-stat-card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 24px) clamp(16px, 2vw, 22px);
  min-height: clamp(98px, 14vw, 122px);
}

.admin-stat-card__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 222, 254, 0.82);
}

.admin-stat-card__value {
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-two-column {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-bar-list,
.admin-top-users,
.admin-activity-list,
.admin-campaign-list,
.admin-ranking-list {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.admin-ranking-card,
.admin-webhook-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-ranking-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.admin-ranking-card__head,
.admin-webhook-card__row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-ranking-card__head span,
.admin-webhook-card__row span,
.admin-webhook-card__url span {
  color: var(--muted);
}

.admin-webhook-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.admin-webhook-card__url {
  display: grid;
  gap: 8px;
}

.admin-webhook-card code {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 24, 0.48);
  color: rgba(255, 245, 214, 0.96);
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7df;
  background: rgba(255, 255, 255, 0.08);
}

.admin-status-pill--approved {
  background: rgba(80, 208, 140, 0.18);
  border-color: rgba(80, 208, 140, 0.36);
  color: #d8ffe9;
}

.admin-status-pill--pending {
  background: rgba(240, 204, 115, 0.18);
  border-color: rgba(240, 204, 115, 0.34);
  color: #fff4c3;
}

.admin-status-pill--rejected,
.admin-status-pill--refunded {
  background: rgba(255, 126, 183, 0.18);
  border-color: rgba(255, 126, 183, 0.34);
  color: #ffe0ee;
}

.admin-status-pill--unknown {
  background: rgba(158, 103, 255, 0.16);
  border-color: rgba(158, 103, 255, 0.32);
}

.admin-bar-list + .admin-top-users {
  margin-top: 28px;
}

.admin-top-user-list {
  display: grid;
  gap: 14px;
}

.admin-top-user-list__header {
  display: grid;
  gap: 6px;
}

.admin-top-user-list__header h4 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.admin-top-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at left top, rgba(158, 103, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.03);
}

.admin-top-user-row__rank {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 222, 254, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.admin-top-user-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-top-user-row__name,
.admin-top-user-row__email,
.admin-top-user-row__value {
  overflow-wrap: anywhere;
}

.admin-top-user-row__name {
  font-size: 0.98rem;
  line-height: 1.25;
}

.admin-top-user-row__email {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-top-user-row__value {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 204, 115, 0.18), rgba(255, 109, 187, 0.18));
  border: 1px solid rgba(240, 204, 115, 0.16);
  color: #fff7df;
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-screen-visual {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  align-items: center;
}

.admin-screen-donut-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
}

.admin-screen-donut {
  position: relative;
  width: clamp(160px, 20vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 5, 22, 0.98) 0 46%, transparent 47%),
    conic-gradient(var(--screen-donut));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.admin-screen-donut::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  filter: blur(10px);
}

.admin-screen-donut__center {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(18, 12, 38, 0.96), rgba(10, 6, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.admin-screen-donut__center span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-screen-donut__center strong {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1;
}

.admin-screen-legend {
  display: grid;
  gap: clamp(10px, 1.5vw, 14px);
}

.admin-screen-legend__item {
  display: grid;
  gap: 8px;
  padding: clamp(12px, 1.6vw, 14px) clamp(12px, 1.8vw, 16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.admin-screen-legend__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-screen-legend__head strong,
.admin-screen-legend__head span,
.admin-screen-legend__count {
  overflow-wrap: anywhere;
}

.admin-screen-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 12px var(--legend-color);
}

.admin-screen-legend__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.admin-screen-legend__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--legend-color), rgba(255, 255, 255, 0.92));
}

.admin-screen-legend__count {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-user-usage-chart {
  display: grid;
  gap: clamp(12px, 1.8vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  align-items: end;
}

.admin-user-usage-card {
  padding: clamp(14px, 1.8vw, 16px) clamp(12px, 1.6vw, 14px) clamp(16px, 1.9vw, 18px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top, rgba(158, 103, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
  min-height: clamp(220px, 28vw, 260px);
  min-width: 0;
}

.admin-user-usage-card__rank {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 222, 254, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.admin-user-usage-card__bar-shell {
  height: clamp(88px, 14vw, 118px);
  display: grid;
  align-items: end;
  padding: 0 10px;
}

.admin-user-usage-card__bar {
  display: block;
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(180deg, #f0cc73 0%, #ff7eb7 55%, #9e67ff 100%);
  box-shadow:
    0 10px 24px rgba(158, 103, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.admin-user-usage-card__name {
  font-size: clamp(0.94rem, 1.2vw, 1rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-user-usage-card__email,
.admin-user-usage-card__value {
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.84rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-bar-row__label,
.admin-bar-row__value {
  font-size: 0.92rem;
}

.admin-bar-row__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admin-bar-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--pink));
}

.admin-bar-row__fill--alt {
  background: linear-gradient(90deg, var(--gold), var(--pink));
}

.admin-metric-pill,
.admin-top-user-card,
.admin-activity-item,
.admin-campaign-card {
  padding: clamp(14px, 1.8vw, 18px) clamp(14px, 2vw, 20px);
}

.admin-metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-top-user-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-top-user-card strong,
.admin-top-user-card span {
  overflow-wrap: anywhere;
}

.admin-toolbar,
.admin-inline-form,
.admin-actions-row,
.admin-campaign-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 16px);
}

.admin-actions-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.admin-campaign-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.admin-inline-form {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: center;
}

.admin-toolbar {
  margin-bottom: 26px;
  grid-template-columns: minmax(0, 1fr);
}

.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea,
.admin-user-card input,
.admin-preset-card input,
.admin-preset-card textarea,
.admin-campaign-form input,
.admin-campaign-form select,
.admin-campaign-form textarea {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-user-card input:focus,
.admin-preset-card input:focus,
.admin-preset-card textarea:focus,
.admin-campaign-form input:focus,
.admin-campaign-form select:focus,
.admin-campaign-form textarea:focus {
  border-color: rgba(158, 103, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(158, 103, 255, 0.1);
}

.admin-inline-form--compact {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-grid,
.admin-presets-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.admin-user-card,
.admin-preset-card {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  min-width: 0;
}

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

.admin-user-card__meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-user-card .admin-actions-row {
  margin-top: 8px;
}

.admin-button {
  padding: clamp(12px, 1.6vw, 14px) clamp(16px, 2vw, 20px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  min-height: 48px;
  width: 100%;
  justify-content: center;
  text-align: center;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.admin-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.admin-button--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.admin-button--danger {
  background: linear-gradient(135deg, #9d2946, #ef5f8a);
}

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

.admin-campaign-form {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  margin-top: 18px;
}

.admin-campaign-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-activity-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-notification-summary {
  margin-bottom: 24px;
}

.admin-presets-grid {
  margin-top: 18px;
}

.admin-actions-row {
  margin-top: 18px;
}

.admin-campaign-list {
  margin-top: 26px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 14px;
}

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

.admin-table th,
.admin-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 222, 254, 0.82);
}

.admin-table td {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table__empty {
  text-align: center;
}

.admin-trend-chart {
  display: grid;
  gap: 22px;
  padding-top: 8px;
  min-width: 0;
}

.admin-trend-chart__surface {
  padding: 20px 20px 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(255, 109, 187, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.admin-trend-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-trend-chart__grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.admin-trend-chart__area {
  fill: url(#trend-area-fill);
}

.admin-trend-chart__line {
  fill: none;
  stroke: url(#trend-line-stroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(158, 103, 255, 0.22));
}

.admin-trend-chart__dot {
  fill: #fdf7ff;
  stroke: #ff8ec8;
  stroke-width: 3;
}

.admin-trend-chart__dot-halo {
  fill: rgba(255, 109, 187, 0.1);
}

.admin-trend-chart__label {
  fill: rgba(239, 229, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.admin-trend-chart__footer {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-top: 6px;
}

.admin-trend-stat {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 8px;
}

.admin-trend-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-trend-stat strong {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: anywhere;
}

.admin-status {
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  text-align: right;
}

.admin-view-title,
.admin-view-description,
.admin-panel h2,
.admin-panel h3,
.admin-content__header h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: 1fr;
  }

  .admin-sidebar__nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: start;
  }

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

@media (max-width: 960px) {
  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-screen-visual {
    grid-template-columns: 1fr;
  }

  .admin-content__header {
    align-items: stretch;
  }

  .admin-status {
    text-align: left;
  }

  .admin-user-usage-chart {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  }
}

@media (max-width: 720px) {
  .admin-panel {
    padding: 20px;
  }

  .admin-content__header,
  .admin-panel__head,
  .admin-campaign-card__head,
  .admin-ranking-card__head,
  .admin-webhook-card__row {
    flex-direction: column;
  }

  .admin-sidebar {
    padding: 18px 16px;
  }

  .admin-sidebar__nav,
  .admin-sidebar__footer,
  .admin-inline-form,
  .admin-inline-form--compact,
  .admin-actions-row,
  .admin-campaign-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-grid,
  .admin-presets-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .admin-table td {
    padding: 10px 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: rgba(244, 222, 254, 0.82);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .admin-table__empty {
    text-align: left;
  }

  .admin-button,
  .admin-inline-form input,
  .admin-inline-form select,
  .admin-campaign-form input,
  .admin-campaign-form select,
  .admin-campaign-form textarea {
    width: 100%;
  }

  .push-prompt__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-shell {
    width: min(100%, calc(100% - 12px));
  }

  .admin-content__header,
  .admin-panel {
    border-radius: 22px;
  }

  .admin-screen-donut {
    width: 152px;
  }

  .admin-screen-legend__head {
    grid-template-columns: auto 1fr;
  }

  .admin-screen-legend__head span:last-child {
    grid-column: 2;
  }

  .admin-top-user-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-top-user-row__value {
    justify-self: start;
  }
}
