/* =============================================================================
   ASTRONOIR UI SYSTEM v2
   - LUX navigation for profiles / connections / social dossier surfaces
   - CHIP navigation for horoscope / report / reading surfaces
   - shared tokens, spacing, surfaces, forms, buttons, states
   ============================================================================= */

:root {
  /* Brand */
  --an-gold: #d4af37;
  --an-gold-dark: #aa8a2e;
  --an-gold-soft: rgba(212, 175, 55, 0.12);
  --an-gold-line: rgba(212, 175, 55, 0.22);

  /* Backgrounds */
  --an-bg: #0f111a;
  --an-bg-deep: #090a0f;
  --an-bg-glow: #1b2735;

  /* Surfaces */
  --an-surface: rgba(255, 255, 255, 0.03);
  --an-surface-2: rgba(255, 255, 255, 0.05);
  --an-surface-3: rgba(10, 10, 15, 0.85);

  /* Borders */
  --an-border-soft: rgba(255, 255, 255, 0.08);
  --an-border-med: rgba(255, 255, 255, 0.14);
  --an-border-gold: rgba(212, 175, 55, 0.20);

  /* Text */
  --an-text: #ffffff;
  --an-text-strong: rgba(255, 255, 255, 0.92);
  --an-text-body: rgba(255, 255, 255, 0.85);
  --an-text-soft: rgba(255, 255, 255, 0.65);
  --an-text-muted: rgba(255, 255, 255, 0.42);

  /* Shadows */
  --an-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.18);
  --an-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.28);
  --an-shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.16);

  /* Radius */
  --an-radius-sm: 8px;
  --an-radius-md: 12px;
  --an-radius-lg: 18px;
  --an-radius-pill: 999px;

  /* Layout */
  --an-shell-max: 1180px;
  --an-reading-max: 720px;
  --an-dashboard-max: 900px;

  /* Spacing */
  --an-space-1: 6px;
  --an-space-2: 10px;
  --an-space-3: 14px;
  --an-space-4: 18px;
  --an-space-5: 24px;
  --an-space-6: 32px;
  --an-space-7: 40px;
  --an-space-8: 56px;

  /* Fonts */
  --an-font-ui: var(--font-body);  /* alias → typography.css SSOT */
  --an-font-display: var(--font-display);  /* alias → typography.css SSOT */
}

/* =============================================================================
   GLOBAL FOUNDATION
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background:
    radial-gradient(ellipse at bottom, var(--an-bg-glow) 0%, var(--an-bg-deep) 100%);
  color: var(--an-text);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--an-font-ui);
  color: var(--an-text);
  background:
    radial-gradient(ellipse at bottom, var(--an-bg-glow) 0%, var(--an-bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.7);
  outline-offset: 2px;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.an-shell {
  width: 100%;
  max-width: var(--an-shell-max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.an-reading-shell {
  width: 100%;
  max-width: var(--an-reading-max);
  margin: 0 auto;
}

.an-dashboard-wrapper {
  width: 100%;
  max-width: var(--an-dashboard-max);
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.sanctuary-container,
.report-canvas {
  width: 100%;
}

.an-page-head {
  text-align: center;
  margin-bottom: var(--an-space-6);
}

.an-page-head--left {
  text-align: left;
}

.an-stack-xs > * + * { margin-top: var(--an-space-1); }
.an-stack-sm > * + * { margin-top: var(--an-space-2); }
.an-stack-md > * + * { margin-top: var(--an-space-4); }
.an-stack-lg > * + * { margin-top: var(--an-space-6); }

.an-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--an-space-4);
}

.an-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--an-space-5);
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.an-page-kicker {
  color: var(--an-gold);
  letter-spacing: 4px;
  font-weight: 700;
  font-size: var(--fs-pill);
  text-transform: uppercase;
}

.an-page-title {
  margin: 0;
  color: var(--an-text);
  font-family: var(--an-font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.02;
  font-weight: 700;
  background: linear-gradient(to right, #fff, var(--an-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.an-section-title {
  margin: 0;
  color: var(--an-text-strong);
  font-family: var(--an-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.12;
  font-weight: 600;
}

.an-subtitle {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--an-text-soft);
}

.an-body-lg {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--an-text-body);
  font-weight: 300;
}

.an-body-md {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.an-body-sm {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--an-text-soft);
}

.an-meta {
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--an-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.an-label {
  font-size: var(--fs-pill);
  color: var(--an-gold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
}

.an-highlight {
  color: var(--an-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.34);
  font-weight: 600;
}

.an-satellite-text {
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  color: var(--an-gold);
  margin: 0 0 5px;
}

.an-connection-text {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.an-lock-text {
  color: var(--an-gold);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

/* Profile page typography */
.an-profile-header-box {
  text-align: center;
  margin: 20px 0 40px;
}

.an-profile-name {
  margin: 0 0 5px;
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  color: #fff;
}

.an-profile-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--an-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  transition: 0.3s;
}

.an-profile-username {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  letter-spacing: 1px;
}

.an-blueprint-desc {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: var(--fs-base);
}

.an-blueprint-desc h3 {
  color: var(--an-gold);
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 10px;
  margin: 35px 0 15px;
}

.an-blueprint-desc ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.an-blueprint-desc li {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  border-left: 3px solid var(--an-gold);
  font-size: var(--fs-body);
}

/* =============================================================================
   SURFACES
   ============================================================================= */

.an-surface {
  background: var(--an-surface);
  border: 1px solid var(--an-border-soft);
  border-radius: var(--an-radius-lg);
  box-shadow: var(--an-shadow-sm);
}

.an-surface-panel {
  background: var(--an-surface);
  border: 1px solid var(--an-border-gold);
  border-radius: var(--an-radius-lg);
  padding: 24px;
  box-shadow: var(--an-shadow-md);
}

.an-surface-canvas {
  background: transparent;
}

.an-surface-locked,
.an-restricted-access-box {
  background: rgba(10, 10, 10, 0.8);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--an-radius-sm);
  padding: 40px 20px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.an-empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--an-text-muted);
}

.an-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.18), transparent);
  margin: var(--an-space-6) 0;
}

.an-lock-icon {
  font-size: var(--fs-display);
  margin-bottom: 15px;
  opacity: 0.8;
  color: rgba(212, 175, 55, 0.5);
}

.an-restricted-title {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  color: var(--an-gold);
  letter-spacing: 2px;
  font-size: var(--fs-reading);
}

.an-restricted-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 auto 25px;
  max-width: 400px;
}

.an-cta-glow-btn {
  display: inline-block;
  margin-top: 15px;
  background: var(--an-gold);
  color: #000;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transition: 0.3s;
  text-decoration: none;
}

.an-cta-glow-btn:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

/* =============================================================================
   PROFILE / DOSSIER COMPONENTS
   ============================================================================= */

.an-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.an-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--an-gold);
  object-fit: cover;
  position: relative;
  z-index: 2;
  filter: grayscale(20%);
  transition: 0.5s;
}

.an-avatar-img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.an-avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  z-index: 1;
}

.an-blur-container {
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.an-blur-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(15, 17, 26, 0), rgba(15, 17, 26, 1) 85%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 20px;
}

.an-blur-overlay-content {
  opacity: 0.25;
  filter: blur(7px);
  user-select: none;
}

.an-dossier-part,
.an-section-dossier-part,
.content-display-area {
  display: none;
}

.an-dossier-part.active,
.an-section-dossier-part.active,
.content-display-area.active-tab {
  display: block;
}

/* =============================================================================
   NAVIGATION FOUNDATION
   ============================================================================= */

.an-nav-tabs,
.an-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.an-nav-tab,
.an-subtab,
.an-subpill-label {
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}

.an-nav-tab,
.an-subtab {
  border: none;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.26s ease,
    background 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    transform 0.26s ease,
    opacity 0.26s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.an-nav-tab:disabled,
.an-subtab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.an-nav-tab__icon {
  font-size: 0.82em;
  opacity: 0.85;
}

/* =============================================================================
   LUX NAVIGATION
   ============================================================================= */

.an-nav-tabs--lux {
  gap: 5px;
  padding: 5px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--an-border-gold);
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
  /* single-row horizontal swipe (like natal ntx-tabs) instead of wrapping */
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: safe center;
}

.an-nav-tabs--lux::-webkit-scrollbar {
  display: none;
}

.an-nav-tab--lux {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 40px;
  padding: 12px 18px;
  font-size: var(--fs-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.an-nav-tab--lux:hover {
  color: var(--an-text);
  background: rgba(255, 255, 255, 0.05);
}

.an-nav-tab--lux.is-active,
.an-nav-tab--lux[aria-selected="true"] {
  background: var(--an-gold);
  color: #000;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.26);
}

.an-nav-tab--lux.is-locked {
  color: rgba(212, 175, 55, 0.72);
}

.an-subnav-wrap--lux {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.an-subnav--lux {
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 12px;
}

.an-subpill-label--lux {
  color: var(--an-gold);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px 8px 12px;
  margin-right: 6px;
  font-size: var(--fs-pill);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
}

.an-subtab--lux {
  color: rgba(255, 255, 255, 0.42);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: var(--fs-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.an-subtab--lux:hover {
  color: var(--an-text);
  background: rgba(255, 255, 255, 0.05);
}

.an-subtab--lux.is-active,
.an-subtab--lux[aria-selected="true"] {
  background: rgba(212, 175, 55, 0.1);
  color: var(--an-gold);
}

/* =============================================================================
   CHIP NAVIGATION
   ============================================================================= */

.an-nav-tabs--chip {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
  padding-bottom: 15px;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.an-nav-tabs--chip::-webkit-scrollbar {
  display: none;
}

.an-nav-tab--chip {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
  border-radius: 0;
  padding: 12px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  white-space: nowrap;
}

.an-nav-tab--chip:hover {
  color: var(--an-text);
  background: rgba(255, 255, 255, 0.025);
}

.an-nav-tab--chip.is-active,
.an-nav-tab--chip[aria-selected="true"] {
  color: var(--an-gold);
  background: rgba(212, 175, 55, 0.05);
  border-bottom-color: var(--an-gold);
  box-shadow: inset 0 -2px 0 0 var(--an-gold);
}

.an-nav-tab--chip.is-locked {
  color: rgba(212, 175, 55, 0.6);
}

.an-nav-tab--chip.is-locked.is-active,
.an-nav-tab--chip.is-locked[aria-selected="true"] {
  color: #0f111a;
}

.an-subnav-wrap--chip {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  overflow: visible;
}

.an-subnav--chip {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.an-subpill-label--chip {
  width: 100%;
  text-align: center;
  color: var(--an-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 0 10px;
  margin-right: 0;
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
}

.an-subtab--chip {
  color: rgba(255, 255, 255, 0.3);
  padding: 5px 8px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.an-subtab--chip:hover {
  color: var(--an-text);
}

.an-subtab--chip.is-active,
.an-subtab--chip[aria-selected="true"] {
  color: var(--an-gold);
}

.an-subtab--chip.is-active::after,
.an-subtab--chip[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--an-gold);
}

/* =============================================================================
   LEGACY SAFE ALIASES
   ============================================================================= */

.an-nav-tabs:not(.an-nav-tabs--chip) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--an-border-gold);
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
}

.an-nav-tab:not(.an-nav-tab--chip) {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 40px;
  padding: 12px 18px;
  font-size: var(--fs-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.an-nav-tab:not(.an-nav-tab--chip):hover {
  color: var(--an-text);
  background: rgba(255, 255, 255, 0.05);
}

.an-nav-tab:not(.an-nav-tab--chip).is-active {
  background: var(--an-gold);
  color: #000;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.26);
}

.an-nav-tab:not(.an-nav-tab--chip).is-locked {
  color: rgba(212, 175, 55, 0.72);
}

.an-subnav-wrap:not(.an-subnav-wrap--chip) {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.an-subnav:not(.an-subnav--chip) {
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 12px;
}

.an-subpill-label:not(.an-subpill-label--chip) {
  color: var(--an-gold);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px 8px 12px;
  margin-right: 6px;
  font-size: var(--fs-pill);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
}

.an-subtab:not(.an-subtab--chip) {
  color: rgba(255, 255, 255, 0.42);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: var(--fs-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.an-subtab:not(.an-subtab--chip):hover {
  color: var(--an-text);
  background: rgba(255, 255, 255, 0.05);
}

.an-subtab:not(.an-subtab--chip).is-active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--an-gold);
}

/* =============================================================================
   BUTTONS / ACTIONS
   ============================================================================= */

.an-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--an-radius-pill);
  background: var(--an-gold);
  color: #000;
  padding: 15px 34px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.an-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.46);
}

.an-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--an-radius-pill);
  border: 1px solid var(--an-gold);
  background: transparent;
  color: var(--an-gold);
  padding: 12px 24px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.an-btn-secondary:hover {
  background: var(--an-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.34);
}

.an-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--an-radius-pill);
  border: 1px solid var(--an-border-med);
  background: rgba(255, 255, 255, 0.03);
  color: var(--an-text-soft);
  padding: 11px 20px;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.an-btn-ghost:hover {
  color: var(--an-text);
  border-color: var(--an-gold);
}

.profile-action-container {
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
}

.share-tag {
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}

.share-tag:hover {
  opacity: 0.8;
}

.pulse-action {
  animation: an-pulse-gold 2s infinite;
  border-radius: 0 !important;
}

.pulse-action:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(201, 160, 99, 0.3);
}

@keyframes an-pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(201, 160, 99, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(201, 160, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 160, 99, 0); }
}

.sticky-signup-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(15, 17, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  text-align: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sticky-signup-banner p {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 12px;
  font-weight: 500;
}

.sticky-signup-banner strong {
  color: #00ced1;
}

.cta-blue-btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
  border: none;
}

.cta-blue-btn:hover {
  background-color: #0056b3;
  color: #fff;
  transform: translateY(-1px);
}

.cta-blue-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* =============================================================================
   CONNECTION CARDS
   ============================================================================= */

.an-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 290px));
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.an-connection-stellar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
}

.an-connection-stellar-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--an-gold);
  transform: translateY(-5px);
}

.an-connection-avatar-frame {
  width: 60%;
  aspect-ratio: 1 / 1;
  margin-bottom: 15px;
  border: 2px solid var(--an-gold);
  padding: 4px;
  border-radius: 50%;
  background: #000;
}

.an-connection-avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.an-connection-stellar-card h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================================================
   ANIMATION / STATE
   ============================================================================= */

.animate-fade {
  animation: an-fade-in 0.4s ease-out;
}

.an-fade {
  animation: an-fade-in 0.35s ease-out;
}

@keyframes an-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .an-dashboard-wrapper {
    padding: 20px 15px 100px;
  }

  .an-grid-2 {
    grid-template-columns: 1fr;
  }

  .an-body-lg {
    font-size: 1.04rem;
    line-height: 1.78;
  }

  .an-nav-tabs--lux,
  .an-nav-tabs:not(.an-nav-tabs--chip) {
    border-radius: 20px;
    width: 100%;
    justify-content: safe center;
  }

  /* lux tabs scroll in a single row on mobile (no 50% wrap); generic navs keep 2-up */
  .an-nav-tab:not(.an-nav-tab--chip):not(.an-nav-tab--lux) {
    min-width: calc(50% - 3px);
  }

  .an-subnav--lux,
  .an-subnav:not(.an-subnav--chip) {
    width: 100%;
  }

  .an-subpill-label--lux,
  .an-subpill-label:not(.an-subpill-label--chip) {
    width: 100%;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 0;
    padding-right: 12px;
  }

  .an-nav-tabs--chip {
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 24px;
    justify-content: center;
  }

  .an-nav-tab--chip {
    min-width: 0;
    flex: 0 0 auto;
    padding: 11px 14px;
    font-size: var(--fs-pill);
  }

  .an-subnav-wrap--chip {
    justify-content: center;
    overflow: visible;
  }

  .an-subnav--chip {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    gap: 12px;
  }

  .an-subpill-label--chip {
    width: 100%;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 0;
    padding: 0 0 10px;
  }

  .an-subtab--chip.is-active::after,
  .an-subtab--chip[aria-selected="true"]::after {
    bottom: -12px;
  }

  .an-connections-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .an-connection-stellar-card {
    padding: 15px !important;
    max-width: none;
  }

  .an-connection-avatar-frame {
    width: 70%;
  }

  .an-connection-stellar-card h3 {
    font-size: var(--fs-small) !important;
  }
}

 /* =============================================================================
    FOOTER
    ============================================================================= */

.app-footer {
  width: 100%;
  max-width: var(--an-dashboard-max);
  margin: 40px auto 0;
  padding: 24px 20px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 14px;
}

.footer-nav a {
  color: var(--an-text-soft);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.footer-nav a:hover {
  color: var(--an-gold);
}

.secondary-nav {
  margin-top: 4px;
}

.footer-legal {
  margin-top: 18px;
  color: var(--an-text-muted);
  font-size: var(--fs-pill);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Floating back button used in footer_d.ejs */
.floating-back-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.78);
  color: var(--an-gold);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.floating-back-btn:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--an-gold);
}

.back-arrow-icon {
  font-size: var(--fs-h3);
  line-height: 1;
}

@media (max-width: 768px) {
  .app-footer {
    padding: 22px 16px 96px;
  }

  .footer-nav {
    gap: 6px 10px;
  }

  .footer-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.1px;
  }

  .floating-back-btn {
    right: 16px;
    bottom: 16px;
    padding: 11px 16px;
    font-size: 0.74rem;
  }
}

/* =============================================================================
   GLOBAL READING TEXT
   ============================================================================= */

.an-reading-text {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--an-font-ui);
  font-size: var(--fs-reading);
  line-height: 1.9;
  font-weight: 300;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.an-reading-text strong,
.an-reading-text b {
  font-weight: 600;
}

.an-reading-text h1,
.an-reading-text h2,
.an-reading-text h3,
.an-reading-text h4 {
  font-family: var(--an-font-display);
  color: var(--an-gold);
  line-height: 1.2;
}

@media (max-width: 640px) {
  .an-reading-text {
    font-size: var(--fs-base);
    line-height: 1.8;
  }
}