:root {
  --bg-start: #edf2f7;
  --bg-mid: #f7f9fc;
  --bg-end: #ffffff;
  --text-primary: #182435;
  --text-muted: #64748b;
  --accent: #0a6ed1;
  --accent2: #1b4f8f;
  --accent-soft: #e7f2ff;
  --glass-bg: #ffffff;
  --glass-border: #d7e0ea;
  --panel-subtle: #f4f7fb;
  --panel-muted: #eef3f8;
  --success: #1f8f4d;
  --warning: #b56a00;
  --danger: #c63d3d;
  --shadow-sm: 0 1px 2px rgba(24, 36, 53, .06);
  --font-heading: 'Raleway', 'Roboto', 'Open Sans', Arial, sans-serif;
  --font-body: 'Roboto', 'Open Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(10, 110, 209, .07), rgba(10, 110, 209, 0) 230px),
    linear-gradient(90deg, rgba(215, 224, 234, .55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 224, 234, .45) 1px, transparent 1px),
    var(--bg-start);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent2);
}

button,
input,
select,
textarea,
table {
  font-family: var(--font-body);
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: visible;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 3px rgba(24, 36, 53, .08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1240px, calc(100% - 28px));
  height: 56px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent2);
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--accent);
  border: 1px solid #0758a8;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.nav a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 5px 7px;
  color: #334155;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.nav-label {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
}

.nav a.is-active,
.nav a:hover {
  color: #0a5fb4;
  background: var(--accent-soft);
  border-color: #bbd8f7;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Hamburger button (hidden on desktop) ─────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.user-chip {
  max-width: 170px;
  overflow: hidden;
  color: #334155;
  font-size: .82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell {
  width: min(1240px, calc(100% - 28px));
  margin: 22px auto 0;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-head h1,
.auth-copy h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.35vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-head .lead,
.auth-copy .lead {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.head-actions,
.toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
}

.panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--panel-subtle);
}

.panel__header h2,
.form-panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: 0;
}

.panel__header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: .84rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  padding: 14px 16px;
}

.metric span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid--two {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr);
}

.grid--daily {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
}

.grid--form {
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  align-items: start;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #f0f4f8;
  color: #334155;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

tbody tr:hover {
  background: #f6fbff;
}

.compact th,
.compact td {
  padding: 7px 9px;
}

.table-link,
.button-link {
  padding: 0;
  color: var(--accent);
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.empty-cell,
.empty-state {
  color: var(--text-muted);
  text-align: center;
}

.empty-state {
  padding: 32px;
}

.empty-state h2 {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 13px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  border-color: #0758a8;
}

.btn--primary:hover {
  color: #fff;
  background: #0758a8;
}

.btn--ghost,
.btn--secondary {
  color: #334155;
  background: #fff;
  border-color: #cbd6e2;
}

.btn--danger {
  color: #9f2f2f;
  background: #fff0f0;
  border-color: #f2c8c8;
}

.btn--ghost:hover,
.btn--secondary:hover {
  color: var(--accent2);
  background: var(--panel-subtle);
  border-color: #aebdcb;
}

.btn--danger:hover {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #f2b8b8;
}

.btn--sm {
  min-height: 31px;
  padding: 5px 9px;
  font-size: .82rem;
}

.btn--block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #d9e2ec;
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--info {
  color: #0a5fb4;
  background: #e7f2ff;
  border-color: #bbd8f7;
}

.badge--success {
  color: #196f3d;
  background: #e9f6ee;
  border-color: #cbe8d5;
}

.badge--warning {
  color: #8d5300;
  background: #fff3df;
  border-color: #f4d7a7;
}

.badge--danger {
  color: #9f2f2f;
  background: #fff0f0;
  border-color: #f2c8c8;
}

.badge--primary {
  color: #0a5fb4;
  background: #e7f2ff;
  border-color: #bbd8f7;
}

.badge--purple {
  color: #6b21a8;
  background: #f3e8ff;
  border-color: #d8b4fe;
}

.tr--major td {
  font-weight: 700;
  background: var(--panel-subtle);
}

.alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.alert--success {
  color: #196f3d;
  background: #e9f6ee;
  border-color: #cbe8d5;
}

.alert--warning {
  color: #8d5300;
  background: #fff3df;
  border-color: #f4d7a7;
}

.alert--danger {
  color: #9f2f2f;
  background: #fff0f0;
  border-color: #f2c8c8;
}

.form-panel {
  padding: 16px;
}

.form-panel h2 {
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: .75rem;
  font-weight: 700;
}

.form-control,
.form-select {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  color: var(--text-primary);
  font: inherit;
}

textarea.form-control {
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 110, 209, .15);
}

.form-control[readonly] {
  background: var(--panel-muted);
}

.form-select--sm {
  min-height: 31px;
  padding: 4px 8px;
  font-size: .82rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: start;
}

.form-panel > label,
.form-panel .form-grid,
.form-panel .alert,
.check-row {
  margin-bottom: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-hint {
  margin: 12px 0 0;
  color: var(--text-muted);
  text-align: center;
}

.toolbar {
  padding: 10px;
}

.toolbar label {
  min-width: 160px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
  align-items: stretch;
  max-width: 980px;
  margin: 34px auto;
}

.auth-copy {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(231, 242, 255, .75), rgba(255, 255, 255, .95)),
    #fff;
}

.system-note {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--panel-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: #334155;
}

.zodiac-mini {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  background: var(--accent-soft);
  border: 1px solid #bbd8f7;
  border-radius: 4px;
  color: var(--accent2);
  font-weight: 900;
}

.zodiac-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent2);
  background: var(--accent-soft);
  border: 1px solid #bbd8f7;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 900;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.zodiac-tile {
  display: grid;
  gap: 3px;
  min-height: 86px;
  padding: 10px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.zodiac-tile:hover,
.zodiac-tile.is-selected {
  border-color: #8fc2f1;
  background: #f6fbff;
}

.zodiac-tile span {
  color: var(--accent2);
  font-size: 1.35rem;
}

.zodiac-tile small {
  color: var(--text-muted);
}

.daily-main {
  min-height: 120px;
  margin: 0;
  padding: 18px 16px;
  font-size: 1rem;
}

.quick-facts,
.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--glass-border);
}

.quick-facts div,
.record-grid div {
  padding: 12px;
  border-right: 1px solid var(--glass-border);
}

.quick-facts div:last-child,
.record-grid div:last-child {
  border-right: 0;
}

.quick-facts span,
.record-grid span {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-facts strong,
.record-grid strong {
  display: block;
  margin-top: 4px;
}

.fact-card {
  min-height: 67px;
  background: #fbfdff;
}

.fact-card__value {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.fact-card__value b,
.category-list i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: var(--accent-soft);
  border: 1px solid #bbd8f7;
  border-radius: 4px;
  color: var(--accent2);
  font-style: normal;
  font-weight: 700;
}

.fact-card__color i {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #94a3b8;
}

.large-symbol {
  font-size: 2rem;
}

.stack-list {
  display: grid;
  gap: 0;
}

.stack-list div {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.stack-list div:last-child {
  border-bottom: 0;
}

.stack-list span {
  color: var(--text-muted);
}

.category-list div {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 76px;
}

.category-list strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
}

.category-list span {
  color: #334155;
  font-weight: 600;
}

.chart-story {
  margin-bottom: 16px;
}

.chart-story__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  padding: 18px 16px;
}

.chart-story__body > p {
  margin: 0;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.7;
}

.advice-box {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  background: #f6fbff;
  border: 1px solid #bbd8f7;
  border-radius: 6px;
}

.advice-box strong,
.meaning-cards span,
.meaning-table span {
  color: var(--accent2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.advice-box span {
  color: #334155;
  font-weight: 650;
}

.meaning-cards,
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.meaning-cards article,
.theme-grid article {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.meaning-cards strong,
.theme-grid strong {
  color: #0f172a;
  font-size: 1rem;
}

.meaning-cards p,
.theme-grid p {
  margin: 0;
  color: #334155;
}

.insight-list div {
  min-height: 82px;
}

.insight-list strong {
  color: #0f172a;
}

.insight-list span {
  color: #334155;
  font-weight: 600;
}

.meaning-table {
  display: grid;
  padding: 8px 0;
}

.meaning-table div {
  display: grid;
  grid-template-columns: 86px 140px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.meaning-table div:last-child {
  border-bottom: 0;
}

.meaning-table strong {
  color: #0f172a;
}

.meaning-table p {
  margin: 0;
  color: #334155;
}

.technical-details {
  margin-bottom: 16px;
}

.technical-details summary {
  padding: 14px 16px;
  color: var(--accent2);
  cursor: pointer;
  font-weight: 700;
}

.technical-details__body {
  padding: 0 0 16px;
}

.definition-list {
  margin: 0;
  padding: 10px 16px 16px;
}

.definition-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.definition-list div:last-child {
  border-bottom: 0;
}

.definition-list dt {
  color: var(--text-muted);
  font-weight: 700;
}

.definition-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.chart-preview {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 20px auto;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: #fbfdff;
}

.chart-preview__ring {
  position: absolute;
  inset: 28px;
  border: 1px solid #bfd2e6;
  border-radius: 50%;
}

.chart-preview__axis {
  position: absolute;
  background: #9fb7d0;
}

.chart-preview__axis--vertical {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
}

.chart-preview__axis--horizontal {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
}

.chart-preview span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent2);
  font-weight: 900;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.action-grid a {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 12px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-weight: 700;
}

.action-grid a:hover {
  border-color: #8fc2f1;
  background: #f6fbff;
}

.action-grid span {
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 500;
}

.inline-form {
  display: inline;
}

.row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 12px 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(215, 224, 234, .9);
  font-size: .82rem;
}

/* ── Rehber sayfası ──────────────────────────────────────────── */
.guide-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.guide-lead {
  font-size: .97rem;
  color: #334155;
  line-height: 1.8;
  max-width: 820px;
  margin: 0;
}

.guide-intro__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.guide-intro__pillars div {
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid #bbd8f7;
  border-radius: 8px;
}

.guide-intro__pillars strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.guide-intro__pillars span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #64748b;
  margin-bottom: 6px;
}

.guide-intro__pillars p {
  font-size: .85rem;
  color: #445;
  margin: 0;
  line-height: 1.55;
}

.guide-section {
  margin: 0;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.guide-section__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.guide-section__glyph {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  padding-top: 2px;
}

.guide-section__head h2 {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.guide-section__head p {
  font-size: .87rem;
  color: var(--text-muted);
  margin: 0;
}

.guide-body-text {
  font-size: .9rem;
  color: #445;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 760px;
}

/* Ana üçlü kartları */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-card {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.guide-card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: .85rem;
  color: #445;
  line-height: 1.7;
  margin-bottom: 10px;
}

.guide-card--sun  { background: #fffbf0; border-color: #f5d87a; }
.guide-card--moon { background: #f0f4ff; border-color: #b8c9f5; }
.guide-card--asc  { background: #f0fff4; border-color: #86efac; }

.guide-card__note {
  font-size: .8rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  color: #475569;
  line-height: 1.5;
}

.guide-card__note.warn {
  background: #fffbf0;
  border-left-color: #d4a017;
  color: #7a5800;
}

/* Gezegen grid */
.guide-planet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.guide-planet {
  padding: 14px 12px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  text-align: center;
}

.gp-sym {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.guide-planet strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.guide-planet p {
  font-size: .75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.guide-note {
  font-size: .82rem;
  color: #64748b;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}

.guide-chiron {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding: 22px 24px;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 10px;
}

.guide-chiron__symbol {
  font-size: 2.2rem;
  flex-shrink: 0;
  color: #c0392b;
  line-height: 1;
  padding-top: 2px;
}

.guide-chiron__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #7f1d1d;
  margin-bottom: 8px;
}

.guide-chiron__body p {
  font-size: .87rem;
  color: #4a2020;
  line-height: 1.7;
  margin-bottom: 10px;
}

.guide-chiron__examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.guide-chiron__examples div {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: 7px;
}

.guide-chiron__examples strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}

.guide-chiron__examples span {
  font-size: .8rem;
  color: #555;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .guide-chiron {
    flex-direction: column;
    gap: 10px;
  }

  .guide-chiron__examples {
    grid-template-columns: 1fr;
  }
}

/* Ev grid */
.guide-house-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-house {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.guide-house__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  border-radius: 6px;
}

.guide-house strong {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.guide-house p {
  font-size: .8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Açı listesi */
.guide-aspect-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-aspect {
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.guide-aspect__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-aspect__badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
}

.guide-aspect__type {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #94a3b8;
}

.guide-aspect p {
  font-size: .86rem;
  color: #445;
  line-height: 1.65;
  margin: 0;
}

/* Ev sistemi kartları */
.guide-system-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-system-card {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  position: relative;
}

.guide-system-card--recommended {
  background: #f0f7ff;
  border-color: #bbd8f7;
}

.guide-system-card__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--accent);
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.guide-system-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.guide-system-card p {
  font-size: .85rem;
  color: #445;
  line-height: 1.65;
  margin-bottom: 8px;
}

.guide-system-card__tip {
  font-size: .8rem;
  font-weight: 600;
  color: #1e6b3c;
  padding: 7px 10px;
  background: #dcfce7;
  border-radius: 5px;
}

/* CTA */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin: 0;
}

.guide-cta h2 {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.guide-cta p {
  font-size: .88rem;
  color: var(--text-muted);
}

.guide-cta__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .guide-cards,
  .guide-planet-grid,
  .guide-system-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-intro__pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .guide-section {
    padding: 20px 16px;
  }

  .guide-cards,
  .guide-system-cards,
  .guide-house-grid,
  .guide-planet-grid {
    grid-template-columns: 1fr;
  }

  .guide-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Expanded guide: scoped to the reference page. */
.guide-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 24px;
}

.guide-nav {
  position: sticky;
  top: 84px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: #fff;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.guide-nav summary {
  padding: 15px 14px;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}

.guide-nav summary span {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.guide-nav ol {
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
  counter-reset: guide-section;
}

.guide-nav li { counter-increment: guide-section; }

.guide-nav a {
  display: flex;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: .81rem;
  line-height: 1.4;
}

.guide-nav a::before {
  content: counter(guide-section, decimal-leading-zero);
  color: var(--text-muted);
  font-size: .72rem;
  min-width: 18px;
  padding-top: 1px;
}

.guide-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.guide-layout a:focus-visible,
.guide-layout summary:focus-visible,
.guide-table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.guide-reader {
  min-width: 0;
  gap: 18px;
  margin: 0;
}

.guide-reader .guide-section,
#rehber-basi { scroll-margin-top: 90px; }

.guide-reader .guide-section:target {
  border-color: var(--accent);
}

.guide-reader .guide-section__glyph {
  width: 40px;
  min-height: 36px;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--accent);
}

.guide-reader .guide-section__head { gap: 12px; }
.guide-reader .guide-body-text { max-width: none; }
.guide-reader .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-reader .guide-cards.guide-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-reader .guide-planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.guide-reader .guide-planet {
  text-align: left;
  padding: 16px;
}

.guide-reader .gp-sym { color: var(--accent); }

.guide-reader .guide-planet h3,
.guide-reader .guide-house h3 {
  font-family: var(--font-heading);
  font-size: .9rem;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.guide-reader .guide-planet p { font-size: .83rem; line-height: 1.6; }
.guide-reader .guide-planet__question { margin-top: 8px; color: var(--accent2); }
.guide-reader .guide-house p { font-size: .84rem; line-height: 1.6; }
.guide-reader .guide-note { line-height: 1.7; margin: 18px 0 0; }
.guide-reader .guide-card { padding: 18px; }
.guide-reader .guide-card p:last-child { margin-bottom: 0; }

.guide-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-sign {
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.guide-sign h3,
.guide-callout h3,
.guide-example h3 {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.guide-sign h3 span { color: var(--accent); margin-right: 4px; }
.guide-sign p { font-size: .82rem; line-height: 1.6; margin: 0 0 7px; }
.guide-sign p:last-child { margin: 0; }
.guide-sign__meta { color: var(--accent2); font-weight: 600; }

.guide-steps {
  padding-left: 25px;
  margin: 20px 0 0;
  font-size: .9rem;
  line-height: 1.8;
}

.guide-steps li { padding-left: 5px; margin-bottom: 12px; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps li::marker { color: var(--accent); font-weight: 700; }

.guide-callout,
.guide-example {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.guide-callout p,
.guide-example p {
  font-size: .88rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 10px;
}

.guide-callout p:last-child,
.guide-example p:last-child { margin: 0; }
.guide-example { margin-top: 0; }
.guide-example__label { display: block; color: var(--accent2); font-size: .75rem; margin-bottom: 8px; font-weight: 700; }
.guide-chart-key { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-wheel { margin: 0; }
.guide-wheel svg { display: block; width: 100%; max-width: 280px; margin: auto; }
.guide-wheel figcaption { font-size: .78rem; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }
.guide-chart-key h3 { font: 600 .95rem var(--font-heading); margin: 0 0 10px; }
.guide-chart-key p { font-size: .88rem; line-height: 1.8; margin: 0 0 16px; }
.guide-placement { padding: 12px; background: var(--accent-soft); border-radius: 4px; color: var(--accent2); font-weight: 600; }
.guide-spaced { margin-top: 20px; }
.guide-section-link { display: inline-block; font-size: .88rem; margin-top: 18px; font-weight: 600; }
.guide-reader .guide-aspect__header { flex-wrap: wrap; }
.guide-reader .guide-aspect__badge { background: var(--accent-soft); color: var(--accent2); margin: 0; }
.guide-reader .guide-aspect__type { color: var(--text-muted); }

.guide-definition-list { margin: 0; font-size: .85rem; line-height: 1.65; }
.guide-definition-list dt { font-weight: 700; margin-top: 14px; color: var(--text-primary); }
.guide-definition-list dt:first-child { margin-top: 0; }
.guide-definition-list dd { margin: 3px 0 12px; color: #445; }

.guide-glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}

.guide-glossary > div { padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
.guide-glossary dt { color: var(--accent2); font-size: .88rem; font-weight: 700; }
.guide-glossary dd { margin: 5px 0 0; font-size: .85rem; line-height: 1.7; color: #445; }
.guide-faqs { display: grid; gap: 10px; }
.guide-disclosure { border: 1px solid var(--glass-border); border-radius: 6px; background: var(--panel-subtle); }
.guide-disclosure summary { padding: 15px 16px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.guide-disclosure summary::marker { color: var(--accent); }
.guide-disclosure[open] summary { border-bottom: 1px solid var(--glass-border); }
.guide-disclosure > div { padding: 14px 16px; background: #fff; border-radius: 0 0 6px 6px; }
.guide-disclosure p { margin: 0 0 10px; font-size: .88rem; line-height: 1.8; color: #445; }
.guide-disclosure p:last-child { margin: 0; }
.guide-table-scroll { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: 6px; }
.guide-table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .85rem; }
.guide-table caption { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--text-primary); }
.guide-table th { background: var(--panel-muted); color: var(--text-primary); }
.guide-table th,
.guide-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--glass-border); line-height: 1.6; }
.guide-source-list { padding-left: 20px; font-size: .86rem; line-height: 1.8; }
.guide-source-list li { margin-bottom: 8px; }
.guide-reader .guide-cta { flex-wrap: wrap; }
.guide-reader .guide-cta__actions { flex-wrap: wrap; }

@media (max-width: 1100px) {
  .guide-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 14px; }
  .guide-reader .guide-cards,
  .guide-reader .guide-system-cards,
  .guide-sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-chart-key { grid-template-columns: minmax(0, 1fr); }
  .guide-wheel { max-width: 280px; margin: auto; }
}

@media (max-width: 850px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-nav { position: static; max-height: none; }
  .guide-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .guide-reader .guide-cards,
  .guide-reader .guide-cards.guide-cards--two,
  .guide-reader .guide-system-cards,
  .guide-reader .guide-planet-grid,
  .guide-sign-grid,
  .guide-glossary { grid-template-columns: minmax(0, 1fr); }
  .guide-reader .guide-section__head { gap: 8px; margin-bottom: 18px; }
  .guide-reader .guide-section__glyph { width: 30px; font-size: 1.15rem; }
  .guide-nav a { font-size: .78rem; padding: 8px 6px; }
  .guide-callout,
  .guide-example { padding: 16px; }
  .guide-reader .guide-section,
  #rehber-basi { scroll-margin-top: 20px; }
}

/* ── Birth location map widget ──────────────────────────────── */
.birth-map-wrap {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
}

.birth-map-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--panel-subtle);
  border-bottom: 1px solid var(--glass-border);
}

.birth-map-header .place-search-wrap {
  flex: 1;
}

#birth_map {
  height: 280px;
  width: 100%;
  display: block;
}

.birth-map-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #ecfdf5;
  border-top: 1px solid #6ee7b7;
  font-size: .8rem;
  color: #065f46;
  font-weight: 600;
  flex-wrap: wrap;
}

.birth-map-footer--hidden {
  display: none;
}

.birth-manual {
  margin-top: 6px;
}

.birth-manual > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: .78rem;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  padding: 2px 0;
}

.birth-manual > summary::-webkit-details-marker { display: none; }

.birth-manual > summary:hover { color: var(--text-primary); }

.birth-manual__body {
  margin-top: 10px;
  padding: 14px;
  background: var(--panel-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

/* ── Profile guide section ───────────────────────────────────── */
.profile-guide {
  margin-top: 32px;
  padding: 32px 0 8px;
  border-top: 2px solid var(--glass-border);
}

.profile-guide__intro {
  max-width: 680px;
  margin-bottom: 28px;
}

.profile-guide__intro h2 {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.profile-guide__intro p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .93rem;
}

.profile-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-guide__card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 22px 24px;
}

.profile-guide__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1;
}

.profile-guide__card h3 {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.profile-guide__card p {
  font-size: .87rem;
  color: #445;
  line-height: 1.7;
  margin-bottom: 10px;
}

.profile-guide__tip {
  background: #fffbf0;
  border-left: 3px solid #d4a017;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: .82rem !important;
  color: #7a5800 !important;
}

/* House grid inside card */
.profile-guide__houses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.profile-guide__houses div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.profile-guide__houses span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 18px;
}

.profile-guide__houses p {
  font-size: .78rem !important;
  color: #556 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Aspect list */
.profile-guide__aspects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .85rem;
  color: #445;
  line-height: 1.5;
}

.asp {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  margin-right: 4px;
}

.asp--trine      { background: #dbeafe; color: #1e40af; }
.asp--sextile    { background: #e0f2fe; color: #0369a1; }
.asp--conjunction{ background: #ede9fe; color: #6d28d9; }
.asp--square     { background: #fee2e2; color: #991b1b; }
.asp--opposition { background: #fef3c7; color: #92400e; }

/* System list */
.profile-guide__system-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .86rem;
  color: #445;
  line-height: 1.6;
}

.profile-guide__system-list li {
  padding-left: 12px;
  border-left: 3px solid var(--glass-border);
}

.profile-guide__system-list em {
  color: #1e6b3c;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 768px) {
  .profile-guide__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Option explain blocks (profil form) ──────────────────────── */
.field-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-block > label {
  margin-bottom: 0;
}

.option-explain {
  margin-top: 7px;
  padding: 10px 13px;
  background: #f0f5ff;
  border-left: 3px solid #4a80d4;
  border-radius: 0 6px 6px 0;
  font-size: .82rem;
  line-height: 1.55;
  color: #2c3e50;
}

.option-explain strong {
  display: block;
  margin-bottom: 3px;
  color: #1a2d4a;
  font-size: .84rem;
}

.option-explain em {
  color: #1e6b3c;
  font-style: normal;
  font-weight: 600;
}

.option-explain[data-scheme="warning"] {
  background: #fffbf0;
  border-left-color: #d4a017;
}

.form-grid-span2 {
  grid-column: span 2;
}

@media (max-width: 980px) {

  .page-head,
  .head-actions,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics-grid,
  .grid--two,
  .grid--daily,
  .grid--form,
  .auth-layout,
  .action-grid,
  .chart-story__body,
  .meaning-cards,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .zodiac-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell,
  .topbar__inner {
    width: min(100% - 18px, 1240px);
  }

  /* Topbar sabit yükseklikte kalır */
  .topbar {
    height: 56px;
    overflow: visible;
  }

  .topbar__inner {
    height: 56px;
    flex-wrap: nowrap;
    padding: 0;
  }

  /* Nav: topbar altına düşen overlay dropdown */
  .nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 14px;
    background: #fff;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(24,36,53,.12);
    overflow: visible;
  }

  .nav.nav--open {
    display: flex;
  }

  .nav a {
    padding: 11px 14px;
    font-size: .95rem;
    border-radius: 7px;
    border: 1px solid transparent;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }
  .nav-label {
    display: inline;
    font-size: .88rem;
    letter-spacing: 0;
  }

  /* Hamburger butonu görünür */
  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Actions (Giriş/Çıkış) hamburgerın solunda */
  .topbar__actions {
    flex-shrink: 0;
  }

  .form-grid,
  .quick-facts,
  .record-grid,
  .zodiac-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts div,
  .record-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .category-list div {
    grid-template-columns: 1fr;
  }

  .meaning-table div {
    grid-template-columns: 1fr;
  }

  .quick-facts div:last-child,
  .record-grid div:last-child {
    border-bottom: 0;
  }

  .user-chip {
    display: none;
  }

  .page-footer {
    flex-direction: column;
  }
}

/* ── Notes ─────────────────────────────────────────────────────────────── */
.notes-list { display: flex; flex-direction: column; gap: 12px; }

.note-card { border: 1px solid var(--glass-border); border-radius: 8px; padding: 14px 16px; background: var(--glass-bg); }

.note-card__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }

.note-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.note-card__body { margin: 0; color: var(--text-secondary); font-size: 0.9rem; white-space: pre-wrap; }

/* ── Transit legend ─────────────────────────────────────────────────────── */
.transit-legend { display: flex; gap: 20px; padding: 8px 0 0; font-size: 0.78rem; color: var(--text-secondary); }
.transit-legend__natal  { color: #5c4a8a; }
.transit-legend__transit { color: #3a6fad; }

/* ── Utility colors ─────────────────────────────────────────────────────── */
.color-success { color: var(--success, #27ae60); }
.color-danger  { color: var(--danger, #e74c3c); }

/* ── grid--three ────────────────────────────────────────────────────────── */
.grid--three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid--three { grid-template-columns: 1fr; } }

/* ── Profile form: birth-time help + place search ─────────────────────── */
.birth-time-help {
  margin-top: 6px;
}

.birth-time-help summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.birth-time-help summary::-webkit-details-marker { display: none; }

.birth-time-help__body {
  margin-top: 8px;
  padding: 12px 14px;
  background: #f0f7ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: .82rem;
  line-height: 1.6;
  color: #2c3e50;
}

.birth-time-help__body p {
  margin: 0 0 8px;
}

.birth-time-help__body p:last-child {
  margin-bottom: 0;
}

.birth-time-help__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.birth-time-help__links a {
  font-weight: 700;
  font-size: .8rem;
}

.place-search-wrap {
  position: relative;
}

.place-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.place-search-input {
  padding-left: 32px !important;
}

.place-detected {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 5px;
  font-size: .8rem;
  color: #065f46;
  font-weight: 600;
  flex-wrap: wrap;
}

.place-detected svg {
  color: #059669;
  flex-shrink: 0;
}

.place-detected--hidden {
  display: none;
}

/* ── Daily commentary focus areas ─────────────────────────────────────── */
.focus-areas { display: flex; flex-direction: column; gap: 12px; }

.focus-area-item { padding: 12px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 7px; }

.focus-area-item strong { display: block; margin-bottom: 4px; color: #1e293b; font-size: .9rem; }

.focus-area-item p { margin: 0; color: #475569; font-size: .88rem; line-height: 1.6; }

/* ── Daily commentary pair grid ────────────────────────────────────────── */
.commentary-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .commentary-pair {
    grid-template-columns: 1fr;
  }
}

/* ── Reading rating widget ──────────────────────────────────────────────── */
.reading-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.reading-rating__label {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  margin-right: 4px;
}

.reading-rating__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 33px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.reading-rating__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.reading-rating__btn:hover {
  background: var(--panel-subtle);
  border-color: #aebdcb;
  color: var(--text-primary);
}

.reading-rating__btn--like.is-active {
  background: #e9f6ee;
  border-color: #8dd4a8;
  color: #166534;
}

.reading-rating__btn--dislike.is-active {
  background: #fff0f0;
  border-color: #f4a4a4;
  color: #991b1b;
}

.reading-rating__btn:disabled {
  opacity: .55;
  cursor: default;
}

.reading-rating__status {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Karne page ─────────────────────────────────────────────────────────── */
.color-success { color: var(--success); }
.color-danger  { color: var(--danger);  }

.karne-personality {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, #f0f7ff 0%, #fafcff 100%);
  border-color: #bbd8f7 !important;
}

.karne-personality__icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid #bbd8f7;
  border-radius: 10px;
}

.karne-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.karne-feature {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.karne-feature--best {
  border-color: #8dd4a8;
  background: linear-gradient(135deg, #f0fdf4 0%, #fafffe 100%);
}

.karne-feature__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.karne-feature__icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--panel-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  flex-shrink: 0;
}

.karne-feature__head strong {
  display: block;
  font-size: .9rem;
}

.karne-feature__head small {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
}

.karne-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.karne-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.karne-bar-label {
  font-size: .78rem;
  font-weight: 700;
  width: 40px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.karne-bar-track {
  flex: 1;
  height: 7px;
  background: var(--panel-muted);
  border-radius: 4px;
  overflow: hidden;
}

.karne-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}

.karne-bar-fill--like    { background: #4ade80; }
.karne-bar-fill--dislike { background: #f87171; }

.karne-bar-pct {
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.karne-feature__link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

@media (max-width: 900px) {
  .karne-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .karne-feature-grid {
    grid-template-columns: 1fr;
  }
  .karne-personality {
    flex-direction: column;
  }
}

/* ── Loading overlay ────────────────────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(237, 242, 247, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.is-visible {
  display: flex;
}

/* İki halka ters yönde döner — yörünge efekti */
.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loading-spinner::before {
  inset: 0;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: loading-spin 1s linear infinite;
}

.loading-spinner::after {
  inset: 12px;
  border-bottom-color: #7db8f0;
  border-left-color: #7db8f0;
  animation: loading-spin .7s linear infinite reverse;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.loading-overlay__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.loading-overlay__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
}

/* Typography pass: ERP guide alignment */
.brand,
.page-head h1,
.auth-copy h1,
.panel__header h2,
.form-panel h2,
.empty-state h2,
.guide-section__head h2,
.guide-card h3,
.guide-chiron__body h3,
.guide-system-card h3,
.guide-cta h2,
.profile-guide__intro h2,
.profile-guide__card h3,
.karne-feature__head strong,
.loading-overlay__title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
}

.brand {
  font-weight: 700;
}

.page-head h1,
.auth-copy h1 {
  font-size: clamp(1.25rem, 1.35vw, 1.55rem);
  line-height: 1.2;
}

.guide-section__head h2,
.guide-cta h2,
.profile-guide__intro h2 {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.panel__header h2,
.form-panel h2,
.guide-card h3,
.guide-chiron__body h3,
.guide-system-card h3,
.profile-guide__card h3,
.loading-overlay__title {
  font-size: clamp(.95rem, 1vw, 1rem);
}

label,
.metric span,
.quick-facts span,
.record-grid span,
.advice-box strong,
.meaning-cards span,
.meaning-table span,
.guide-intro__pillars span,
.guide-aspect__type,
.guide-system-card__label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
}

thead th {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.metric strong {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.fact-card__value,
.category-list strong,
.technical-details summary,
.action-grid a,
.guide-intro__pillars strong,
.guide-planet strong,
.reading-rating__btn,
.karne-feature__head strong,
.karne-feature__link {
  font-weight: 700;
}

.nav-label {
  letter-spacing: 0;
}

.btn,
.badge,
.table-link,
.button-link,
.technical-details summary,
.reading-rating__btn {
  font-weight: 700;
}
