* { box-sizing: border-box; }

body { font-family: 'Poppins', sans-serif; }

.hero-col { flex: 1; text-align: center; padding: 1rem; }
.hero-col.center { flex: 1.2; }
.hero-divider { width: 1px; background: rgba(204,102,204,0.5); align-self: stretch; }

.word-block { margin-bottom: 1.25rem; }
.word-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: #660066; text-transform: uppercase; margin-bottom: 0.5rem;
}

.letter-table { border-collapse: collapse; font-size: 0.875rem; }
.letter-table td { padding: 0.35rem 0.5rem; text-align: center; }
.letter-cell { font-weight: 700; color: #1f2937; min-width: 2rem; }

.vowel-chip {
  display: inline-block;
  background: #f9e6f9; color: #660066;
  border-radius: 4px; padding: 1px 5px;
  font-size: 0.8rem; font-weight: 700;
}
.cons-chip {
  display: inline-block;
  background: #fef3c7; color: #b45309;
  border-radius: 4px; padding: 1px 5px;
  font-size: 0.8rem; font-weight: 700;
}

.val-soul { font-weight: 600; color: #660066; }
.val-pers  { font-weight: 600; color: #b45309; }
.val-na    { color: #d1d5db; }

.total-header { font-weight: 700; color: #374151; border-left: 2px solid #e5e7eb; padding-left: 0.75rem; }
.total-soul   { font-weight: 700; color: #660066; border-left: 2px solid #e5e7eb; padding-left: 0.75rem; }
.total-pers   { font-weight: 700; color: #b45309; border-left: 2px solid #e5e7eb; padding-left: 0.75rem; }

.legend-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem; font-size: 0.75rem; align-items: center;
}

.meaning-card {
  flex: 1; min-width: 180px;
  border-radius: 16px; padding: 1.25rem; border: 1px solid #e5e7eb;
}
.meaning-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 99px; margin-bottom: 0.5rem;
}
.meaning-badge.soul   { background: #f9e6f9; color: #660066; }
.meaning-badge.pers   { background: #fef3c7; color: #b45309; }
.meaning-badge.expr   { background: #e5e7eb; color: #374151; }
.meaning-badge.master { background: #fef9c3; color: #92400e; margin-left: 0.25rem; }

.meaning-number       { font-size: 2.5rem; font-weight: 700; margin: 0.25rem 0; }
.meaning-number.soul  { color: #660066; }
.meaning-number.pers  { color: #b45309; }
.meaning-number.expr  { color: #374151; }
.meaning-title  { font-weight: 700; color: #111827; margin: 0 0 0.25rem; }
.meaning-desc   { font-size: 0.875rem; color: #6b7280; line-height: 1.5; margin: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 0.8s linear infinite; }

/* ── Name numerology: letter breakdown ── */
.word-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1.25rem; }
.word-label { font-size: 0.7rem; font-weight: 700; color: #9ca3af; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.letter-table { width: 100%; border-collapse: collapse; }
.letter-table td { padding: 0.35rem 0.5rem; text-align: center; vertical-align: middle; white-space: nowrap; }
.system-cell { text-align: left !important; padding-right: 0.75rem !important; width: 28px; }
.letter-cell { font-weight: 700; font-size: 1rem; color: #374151; }
.val-cell.pyth  { font-size: 0.85rem; font-weight: 600; color: #660066; }
.val-cell.chald { font-size: 0.85rem; font-weight: 600; color: #b45309; }
.total-header { font-size: 0.7rem; font-weight: 600; color: #9ca3af; border-left: 1px solid #e5e7eb; padding-left: 1rem !important; }
.total-cell { font-weight: 700; font-size: 0.85rem; border-left: 1px solid #e5e7eb; padding-left: 1rem !important; }
.total-cell.pyth  { color: #660066; }
.total-cell.chald { color: #b45309; }
.system-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; line-height: 1; }
.system-badge.pyth  { background: #f9e6f9; color: #660066; }
.system-badge.chald { background: #fef3c7; color: #b45309; }

/* ── Name numerology: meaning cards ── */
.meaning-card { flex: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.25rem; }
.meaning-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; margin-bottom: 0.5rem; }
.meaning-badge.pyth   { background: #f9e6f9; color: #660066; }
.meaning-badge.chald  { background: #fef3c7; color: #b45309; }
.meaning-badge.master { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; margin-left: 4px; }
.meaning-number { font-size: 2.5rem; font-weight: 700; line-height: 1; margin-top: 0.5rem; margin-bottom: 0.25rem; }
.meaning-number.pyth  { color: #660066; }
.meaning-number.chald { color: #b45309; }
.meaning-title { font-weight: 700; color: #1f2937; font-size: 1rem; margin-bottom: 0.5rem; }
.meaning-desc  { color: #6b7280; font-size: 0.875rem; line-height: 1.6; }

@media (max-width: 640px) {
  .letter-table td { padding: 0.25rem 0.35rem; }
  .letter-cell { font-size: 0.85rem; }
  .meaning-number { font-size: 2rem; }
}

.calc-input {
  display: block;
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-input:focus {
  border-color: #660066;
  box-shadow: 0 0 0 3px rgba(102,0,102,.1);
  background: #fff;
}
.calc-input::placeholder { color: #9ca3af; }

/* Date/time inputs: light gray until filled, black after */
input[type="date"].calc-input,
input[type="time"].calc-input { color: #9ca3af; }
input[type="date"].calc-input::-webkit-datetime-edit,
input[type="time"].calc-input::-webkit-datetime-edit { color: #9ca3af; }
input[type="date"].calc-input.has-value,
input[type="time"].calc-input.has-value { color: #111827; }
input[type="date"].calc-input.has-value::-webkit-datetime-edit,
input[type="time"].calc-input.has-value::-webkit-datetime-edit { color: #111827 !important; }

/* ── Sign cards (mirrors sun-sign-moon-sign style) ── */
.sign-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.sign-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.sign-symbol { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.sign-meta { display: flex; flex-direction: column; gap: 2px; }
.sign-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #660066; }
.sign-name  { font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: #111827; }
.sign-sub   { font-size: 0.7rem; color: #9ca3af; }
.pills-row  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.elem-pill  { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.elem-dot   { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.traits-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.trait-pill { background: #f9e6f9; color: #660066; border: 1px solid #e5b3e5; border-radius: 999px; padding: 2px 10px; font-size: 0.68rem; font-weight: 600; }
.sign-meaning { font-size: 0.84rem; color: #6b7280; line-height: 1.65; margin: 0; }

/* ── Letter Breakdown ── */
.bn-breakdown-list { display: flex; flex-direction: column; gap: 1.25rem; }
.bn-word-block { }
.bn-word-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: #660066; text-transform: uppercase; margin-bottom: 0.5rem; }
.bn-table-wrap { overflow-x: auto; }
.bn-ltr-table { border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.bn-ltr-table th, .bn-ltr-table td { padding: 0.3rem 0.6rem; text-align: center; }
.bn-ltr-head { font-weight: 700; color: #1f2937; min-width: 2rem; }
.bn-sys-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.bn-sys-p { background: #f9e6f9; color: #660066; }
.bn-sys-c { background: #fef3c7; color: #b45309; }
.bn-ltr-val { color: #374151; }
.bn-total-head { font-weight: 700; color: #374151; border-left: 2px solid #e5e7eb; padding-left: 0.75rem; }
.bn-total { font-weight: 700; border-left: 2px solid #e5e7eb; padding-left: 0.75rem; }
.bn-total-p { color: #660066; }
.bn-total-c { color: #b45309; }
.bn-grand-total { display: flex; gap: 1.5rem; align-items: center; padding: 0.75rem 0 0; border-top: 1px solid #e5e7eb; margin-top: 0.75rem; font-size: 0.82rem; }
.bn-gt-label { font-weight: 700; color: #374151; }
.bn-gt-p { font-weight: 700; color: #660066; }
.bn-gt-c { font-weight: 700; color: #b45309; }

/* ── What These Numbers Mean ── */
.bn-meaning-grid { display: flex; gap: 1rem; }
@media (max-width: 600px) { .bn-meaning-grid { flex-direction: column; } }
.bn-meaning-card { flex: 1; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.25rem; }
.bn-meaning-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.bn-meaning-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 99px; }
.bn-badge-p { background: #f9e6f9; color: #660066; }
.bn-badge-c { background: #fef3c7; color: #b45309; }
.bn-master-badge { font-size: 0.62rem; font-weight: 700; background: #fef9c3; color: #92400e; border-radius: 99px; padding: 2px 7px; }
.bn-meaning-num { font-size: 2.5rem; font-weight: 700; margin: 0.1rem 0 0.2rem; line-height: 1; }
.bn-num-p { color: #660066; }
.bn-num-c { color: #b45309; }
.bn-meaning-title { font-weight: 700; color: #111827; font-size: 0.95rem; margin-bottom: 0.4rem; }
.bn-meaning-desc { font-size: 0.84rem; color: #6b7280; line-height: 1.6; margin: 0; }

/* ── Key Traits ── */
.bn-traits-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-trait-chip { background: #f9e6f9; color: #660066; border: 1px solid #e5b3e5; border-radius: 999px; padding: 4px 13px; font-size: 0.75rem; font-weight: 600; }

/* ── Combined Reading ── */
.bn-combined-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin: 0 0 6px; }
.bn-combined-signs { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.6); margin: 0 0 14px; letter-spacing: 0.03em; }
.bn-combined-text { font-size: 0.88rem; color: rgba(255,255,255,0.88); line-height: 1.7; margin: 0; }

/* Embed mode */
body.embed-mode #ad-header,
body.embed-mode nav,
body.embed-mode footer,
body.embed-mode #hero-heading,
body.embed-mode #seo-section,
body.embed-mode .embed-section,
body.embed-mode #ad-inline { display: none !important; }

body.embed-mode { background: transparent !important; }
body.embed-mode #input-card {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
body.embed-mode #input-card label { color: #fff !important; }
