/* ── Angel Number Calculator – Styles ───────────────────────────────────── */

:root {
  --anc-purple:  #6d28d9;
  --anc-violet:  #7c3aed;
  --anc-indigo:  #4338ca;
  --anc-gold:    #d97706;
  --anc-gold-lt: #fef3c7;
  --anc-bg:      #0f0a1a;
  --anc-card:    #1a1030;
  --anc-border:  #2d1f50;
  --anc-text:    #e2d9f3;
  --anc-muted:   #9b8ec4;
  --anc-white:   #f5f0ff;
}

.anc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 720px;
  margin: 2rem auto;
  background: var(--anc-bg);
  background: linear-gradient(145deg, #0f0a1a 0%, #1a0f2e 50%, #0d1a2e 100%);
  border: 1px solid var(--anc-border);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 8px 48px rgba(109,40,217,0.25), 0 2px 8px rgba(0,0,0,0.6);
  color: var(--anc-text);
  position: relative;
  overflow: hidden;
}

/* ── Stars decoration ────────────────────────────────────────────────────── */

.anc-stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.anc-stars span {
  position: absolute;
  color: rgba(255,255,255,0.12);
  font-size: 0.9rem;
  animation: anc-twinkle 4s ease-in-out infinite;
}

.anc-stars span:nth-child(1)  { top: 8%;  left: 5%;  animation-delay: 0s; }
.anc-stars span:nth-child(2)  { top: 15%; right: 8%; animation-delay: 0.7s; }
.anc-stars span:nth-child(3)  { top: 35%; left: 3%;  animation-delay: 1.4s; }
.anc-stars span:nth-child(4)  { top: 60%; left: 92%; animation-delay: 0.3s; }
.anc-stars span:nth-child(5)  { top: 78%; left: 7%;  animation-delay: 2.1s; }
.anc-stars span:nth-child(6)  { top: 5%;  left: 55%; animation-delay: 1.1s; }
.anc-stars span:nth-child(7)  { top: 88%; left: 45%; animation-delay: 3s; }
.anc-stars span:nth-child(8)  { top: 48%; left: 96%; animation-delay: 0.5s; }
.anc-stars span:nth-child(9)  { top: 92%; left: 85%; animation-delay: 1.8s; }
.anc-stars span:nth-child(10) { top: 22%; left: 75%; animation-delay: 2.5s; }

@keyframes anc-twinkle {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(1.3); }
}

.anc-wrap > * { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.anc-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.anc-header__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(167,139,250,0.7));
}

.anc-header__title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--anc-white);
  margin: 0 0 0.4rem;
  background: linear-gradient(135deg, #c4b5fd, #fbbf24, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.anc-header__sub {
  font-size: 0.87rem;
  color: var(--anc-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.anc-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--anc-border);
  padding-bottom: 0;
}

.anc-tab {
  padding: 0.55rem 1.1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--anc-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: -1.5px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.anc-tab--active {
  color: #c4b5fd;
  border-bottom-color: #a78bfa;
}

.anc-tab:hover:not(.anc-tab--active) {
  color: var(--anc-white);
  border-bottom-color: var(--anc-border);
}

/* ── Panel ───────────────────────────────────────────────────────────────── */

.anc-panel__intro {
  font-size: 0.87rem;
  color: var(--anc-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* ── Lookup form ─────────────────────────────────────────────────────────── */

.anc-lookup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.anc-input {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--anc-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--anc-white);
  font-size: 0.97rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.anc-input:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.2);
  background: rgba(255,255,255,0.08);
}

.anc-input::placeholder { color: var(--anc-muted); }

.anc-input--big {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
  color: #fbbf24;
  width: auto;
  flex: 1;
  min-width: 130px;
  padding: 0.8rem 1rem;
}

/* ── Form group ──────────────────────────────────────────────────────────── */

.anc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.anc-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--anc-white);
}

.anc-hint {
  font-size: 0.74rem;
  color: var(--anc-muted);
  line-height: 1.4;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.anc-btn {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4338ca);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(109,40,217,0.4);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.anc-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #3730a3);
  box-shadow: 0 6px 20px rgba(109,40,217,0.55);
}

.anc-btn:active { transform: scale(0.97); }

/* ── Quick pick buttons ──────────────────────────────────────────────────── */

.anc-quick-pick {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.anc-quick-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--anc-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.anc-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.anc-quick-btn {
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--anc-border);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.anc-quick-btn:hover {
  background: rgba(167,139,250,0.15);
  border-color: #a78bfa;
}

/* ── Result card ─────────────────────────────────────────────────────────── */

.anc-result {
  margin-top: 1.5rem;
  background: var(--anc-card);
  border: 1.5px solid var(--anc-border);
  border-radius: 16px;
  padding: 1.5rem;
  animation: anc-fadein 0.4s ease;
}

@keyframes anc-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Angel number display */
.anc-number-glow {
  text-align: center;
  margin-bottom: 1.1rem;
}

.anc-number-badge {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251,191,36,0.6), 0 0 40px rgba(251,191,36,0.3);
  letter-spacing: 0.1em;
  line-height: 1;
}

.anc-number-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--anc-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* Meaning content */
.anc-meaning-wrap {
  text-align: center;
}

.anc-meaning-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.anc-meaning-theme {
  font-size: 1.15rem;
  font-weight: 800;
  color: #c4b5fd;
  margin-bottom: 0.6rem;
  display: block;
}

.anc-meaning-desc {
  font-size: 0.88rem;
  color: var(--anc-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.anc-meaning-affirmation {
  font-style: italic;
  color: #fbbf24;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  border-left: 3px solid #fbbf24;
  text-align: left;
  background: rgba(251,191,36,0.06);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}

.anc-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.anc-domain-pill {
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  color: #c4b5fd;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Life path / name result */
.anc-lp-number {
  text-align: center;
  margin-bottom: 1.1rem;
}

.anc-lp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #fbbf24);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(124,58,237,0.5);
}

.anc-lp-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #c4b5fd;
  margin-top: 0.5rem;
  text-align: center;
}

.anc-lp-desc {
  font-size: 0.88rem;
  color: var(--anc-text);
  line-height: 1.7;
  margin: 0.75rem 0;
  text-align: center;
}

.anc-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.anc-trait-pill {
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 600;
}

.anc-calc-steps {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--anc-muted);
  font-family: monospace;
  line-height: 1.9;
}

/* ── Name chart ──────────────────────────────────────────────────────────── */

.anc-name-chart-wrap {
  margin-top: 1.25rem;
}

.anc-chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--anc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
}

.anc-name-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.anc-name-letter {
  width: 38px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--anc-border);
  gap: 0.05rem;
}

.anc-name-letter__char {
  font-size: 1rem;
  font-weight: 800;
  color: var(--anc-white);
}

.anc-name-letter__val {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
}

.anc-name-letter--space {
  background: transparent;
  border-color: transparent;
  width: 12px;
}

/* ── Reference chart ─────────────────────────────────────────────────────── */

.anc-reference {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--anc-border);
}

.anc-reference__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--anc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
}

.anc-reference__grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.anc-ref-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--anc-border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  min-width: 46px;
  text-align: center;
}

.anc-ref-col strong {
  font-size: 1.05rem;
  color: #fbbf24;
  line-height: 1;
}

.anc-ref-col span {
  font-size: 0.7rem;
  color: var(--anc-muted);
  line-height: 1.5;
}

/* ── Error ───────────────────────────────────────────────────────────────── */

.anc-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 500px) {
  .anc-wrap { padding: 1.5rem 1rem; }
  .anc-header__title { font-size: 1.4rem; }
  .anc-number-badge { font-size: 2.5rem; }
  .anc-tabs { overflow-x: auto; }
}
