:root {
  --bg: #0a0918;
  --bg-2: #100d22;
  --panel: rgba(28, 23, 54, 0.55);
  --panel-solid: #16122e;
  --border: #2f2950;
  --border-soft: #3a3357;
  --gold: #d4b483;
  --gold-bright: #e8cfa0;
  --text: #ece9f5;
  --muted: #9b8fc4;
  --muted-2: #7d7499;
  --accent: #8b7ee0;
  --danger: #e06666;
  --fire: #e0794a;
  --earth: #8aa05a;
  --air: #d8b545;
  --water: #5b97c4;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* `hidden` özelliği DAİMA gizlesin — sınıf display'leri (flex vb.) ezmesin.
   Modal, giriş butonu ve kullanıcı çipi bu kurala dayanır. */
[hidden] { display: none !important; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, #1b1740 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Kozmik arka plan ---- */
.cosmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Yıldız katmanları (parallax + twinkle) */
.stars { position: absolute; inset: 0; background-repeat: repeat; will-change: background-position, opacity; }
.stars-far {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(207,199,255,.7), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 90% 25%, rgba(255,243,214,.7), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.6), transparent);
  background-size: 300px 300px; opacity: .5;
  animation: tw1 6s ease-in-out infinite alternate, driftFar 180s linear infinite;
}
.stars-mid {
  background-image:
    radial-gradient(1.4px 1.4px at 15% 50%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.4px 1.4px at 80% 75%, rgba(255,240,210,.8), transparent),
    radial-gradient(1.4px 1.4px at 50% 35%, rgba(214,224,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 33% 90%, rgba(255,255,255,.75), transparent);
  background-size: 460px 460px; opacity: .55;
  animation: tw2 5s ease-in-out infinite alternate, driftMid 130s linear infinite;
}
.stars-near {
  background-image:
    radial-gradient(2px 2px at 25% 20%, #fff, transparent),
    radial-gradient(2px 2px at 78% 40%, #fff6df, transparent),
    radial-gradient(2px 2px at 60% 85%, #fff, transparent);
  background-size: 700px 700px; opacity: .8;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.5));
  animation: tw3 4.5s ease-in-out infinite alternate, driftNear 90s linear infinite;
}
@keyframes tw1 { from { opacity: .35; } to { opacity: .6; } }
@keyframes tw2 { from { opacity: .4; } to { opacity: .7; } }
@keyframes tw3 { from { opacity: .55; } to { opacity: .95; } }
@keyframes driftFar { from { background-position: 0 0; } to { background-position: 0 300px; } }
@keyframes driftMid { from { background-position: 0 0; } to { background-position: 0 460px; } }
@keyframes driftNear { from { background-position: 0 0; } to { background-position: 0 700px; } }

/* Nebula ışıltıları */
.nebula { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.neb1 { width: 460px; height: 460px; left: -110px; top: -90px;
  background: radial-gradient(circle, rgba(139,126,224,.5), transparent 70%); animation: float1 28s ease-in-out infinite alternate; }
.neb2 { width: 420px; height: 420px; right: -130px; top: 32%;
  background: radial-gradient(circle, rgba(212,180,131,.32), transparent 70%); animation: float2 34s ease-in-out infinite alternate; }
.neb3 { width: 520px; height: 520px; left: 18%; bottom: -180px;
  background: radial-gradient(circle, rgba(91,151,196,.28), transparent 70%); animation: float1 31s ease-in-out infinite alternate-reverse; }
@keyframes float1 { from { transform: translate(0,0); } to { transform: translate(40px,30px); } }
@keyframes float2 { from { transform: translate(0,0); } to { transform: translate(-36px,24px); } }

/* Parlayan Ay (sol üst) */
.moon { position: absolute; top: 11%; left: 7%; width: 92px; height: 92px; }
.moon-glow { position: absolute; inset: -45%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,214,.45), rgba(255,244,214,.08) 50%, transparent 72%);
  animation: moonPulse 7s ease-in-out infinite alternate; }
.moon-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff8ea, #efe3c4 55%, #cdbfa0 100%);
  box-shadow: inset -9px -7px 22px rgba(110,92,62,.4), 0 0 38px rgba(255,240,210,.4); }
.crater { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(140,120,88,.55), rgba(140,120,88,.12)); }
.crater.c1 { width: 20px; height: 20px; top: 24%; left: 26%; }
.crater.c2 { width: 13px; height: 13px; top: 54%; left: 55%; }
.crater.c3 { width: 9px;  height: 9px;  top: 30%; left: 64%; }
@keyframes moonPulse { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }

/* Kayan yıldız */
.shooting-star { position: absolute; top: 16%; left: 72%; width: 3px; height: 3px;
  background: #fff; border-radius: 50%; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.85);
  animation: shoot 11s ease-in infinite; }
.shooting-star::after { content: ''; position: absolute; top: 50%; right: 2px; width: 90px; height: 1.5px;
  transform: translateY(-50%); background: linear-gradient(90deg, rgba(255,255,255,.9), transparent); }
@keyframes shoot {
  0%, 78% { opacity: 0; transform: translate(0,0); }
  80% { opacity: 1; }
  94% { opacity: .9; }
  100% { opacity: 0; transform: translate(-300px, 180px); }
}

@media (prefers-reduced-motion: reduce) {
  .stars, .nebula, .moon-glow, .shooting-star { animation: none !important; }
  .shooting-star { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 4.5rem 1.5rem 2rem;
}
.hero-mark {
  font-size: 2rem; color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 24px rgba(212, 180, 131, 0.6);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 40%, #b9a0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.tagline {
  max-width: 540px; margin: 1rem auto 0;
  color: var(--muted); font-size: 1.05rem;
}
.hero-cta {
  display: inline-block; margin-top: 1.6rem;
  padding: 0.9rem 1.8rem; border-radius: 30px;
  font-size: 1.05rem; font-weight: 600; text-decoration: none;
  color: #1a1208;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 34px -12px rgba(212, 180, 131, 0.7);
  transition: transform 0.15s;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.3px; }

/* ---- Tanıtım (intro) ---- */
.intro { margin-bottom: 2.5rem; }
.intro-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600;
  color: var(--gold-bright); text-align: center; margin-bottom: 1.6rem;
}
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem 1.3rem; text-align: center;
  backdrop-filter: blur(10px);
}
.feat-icon { font-size: 1.9rem; display: block; margin-bottom: 0.7rem; }
.feat h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  color: var(--text); margin-bottom: 0.5rem; font-weight: 600;
}
.feat p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.intro-cta-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.8rem; }
.intro-cta-note strong { color: var(--gold-bright); }

/* ---- Modül grid (ana ekran) ---- */
.home { margin-bottom: 2.5rem; }
.home-sub { text-align: center; color: var(--muted); margin-bottom: 1.8rem; font-size: 0.98rem; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.module-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem 1rem 1.3rem; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(10px); transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}
.module-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px -18px rgba(212, 180, 131, 0.5); }
.module-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  background: radial-gradient(circle at 35% 30%, #2a2450, #16122e);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 22px -6px rgba(212, 180, 131, 0.5), inset 0 0 16px rgba(212, 180, 131, 0.12);
  margin-bottom: 0.3rem; transition: box-shadow 0.2s;
}
.module-card:hover .module-icon { box-shadow: 0 0 30px -4px rgba(212, 180, 131, 0.7), inset 0 0 16px rgba(212, 180, 131, 0.18); }
.module-label { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-weight: 600; color: var(--gold-bright); line-height: 1.1; }
.module-desc { font-size: 0.76rem; color: var(--muted-2); line-height: 1.35; }

/* ---- Araç ekranı / geri butonu ---- */
.back-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--panel); border: 1px solid var(--border-soft); color: var(--muted);
  padding: 0.5rem 1.1rem; border-radius: 22px; cursor: pointer; font-family: inherit;
  font-size: 0.9rem; margin-bottom: 1.1rem; backdrop-filter: blur(10px); transition: all 0.2s;
}
.back-btn:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateX(-2px); }

/* ---- Container ---- */
.container {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto; padding: 1rem 1.25rem 3rem;
}

/* ---- Form ---- */
.form-card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card h2, .result-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 600;
  margin-bottom: 1.4rem; color: var(--gold-bright);
}
.field { margin-bottom: 1.1rem; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.2px;
}
.optional { color: var(--muted-2); font-weight: 400; }
input[type="text"], input[type="date"], input[type="time"],
input[type="email"], input[type="password"], input[type="number"], input[type="search"] {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(10, 9, 24, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 12px; color: var(--text);
  font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--muted-2); }
/* Tarayıcı otomatik-doldurma sarı/beyaz arka planını temaya uydur */
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #14122a inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.15);
}
input.valid { border-color: var(--earth); }
input:disabled { opacity: 0.45; }
input[type="date"], input[type="time"], input[type="number"] { color-scheme: dark; }

.checkbox {
  display: flex; align-items: center; gap: 0.45rem;
  margin-top: 0.55rem; font-size: 0.85rem; color: var(--muted);
  cursor: pointer;
}
.checkbox input { width: auto; accent-color: var(--gold); }
.hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.35rem; }

/* ---- Mod sekmeleri ---- */
.mode-tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.3rem;
  background: rgba(10, 9, 24, 0.5); padding: 0.3rem; border-radius: 14px;
  border: 1px solid var(--border);
}
.mode-tab {
  flex: 1 1 auto; min-width: 92px; padding: 0.6rem 0.5rem; border: none; border-radius: 10px;
  background: transparent; color: var(--muted); font-family: inherit;
  font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: #1a1208; font-weight: 600;
}
.mode-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.1rem; }
.sub-section {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.person-b-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  color: var(--gold-bright); margin-bottom: 0.9rem; font-weight: 600;
}
.asp-tag {
  display: inline-block; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 0.1rem 0.4rem; border-radius: 6px;
  background: rgba(212, 180, 131, 0.18); color: var(--gold-bright); vertical-align: middle;
}
.asp-tag.alt { background: rgba(95, 208, 216, 0.18); color: #9fe6ec; }

/* ---- Şehir autocomplete ---- */
.place-results {
  list-style: none; position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 4px; z-index: 20;
  background: var(--panel-solid);
  border: 1px solid var(--border-soft); border-radius: 12px;
  overflow: hidden; max-height: 270px; overflow-y: auto;
  box-shadow: var(--shadow); display: none;
}
.place-results.open { display: block; }
.place-results li {
  padding: 0.7rem 0.95rem; cursor: pointer;
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.place-results li:hover { background: rgba(212, 180, 131, 0.1); }
.place-results .city { font-weight: 500; }
.place-results .meta { font-size: 0.8rem; color: var(--muted-2); }
.place-results .empty { color: var(--muted-2); cursor: default; }

/* ---- Butonlar ---- */
.btn-primary {
  width: 100%; margin-top: 0.5rem;
  padding: 0.95rem; border: none; border-radius: 12px;
  font-size: 1.05rem; font-weight: 600; font-family: inherit;
  color: #1a1208; cursor: pointer;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 30px -10px rgba(212, 180, 131, 0.6);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-secondary {
  padding: 0.7rem 1.4rem; border-radius: 10px;
  border: 1px solid var(--gold); background: transparent;
  color: var(--gold-bright); font-family: inherit; font-size: 0.95rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.btn-secondary:hover:not(:disabled) { background: rgba(212, 180, 131, 0.12); }
.btn-secondary:disabled { opacity: 0.6; cursor: wait; }

/* ---- Giriş çubuğu (Google OAuth) ---- */
.auth-bar {
  position: fixed; top: 14px; right: 16px; z-index: 50;
  display: flex; align-items: center;
}
.btn-google {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; color: #2c2c2c; border: none;
  padding: 0.55rem 0.95rem; border-radius: 24px; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; font-family: inherit;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5); transition: transform 0.15s;
}
.btn-google:hover:not(:disabled) { transform: translateY(-1px); }
.btn-google:disabled { opacity: 0.7; cursor: wait; }
.user-chip {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--panel); border: 1px solid var(--border);
  padding: 0.3rem 0.5rem 0.3rem 0.4rem; border-radius: 24px;
  backdrop-filter: blur(10px);
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; cursor: pointer; }
.user-chip #user-name {
  font-size: 0.85rem; color: var(--text); max-width: 140px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-chip #user-name:hover { color: var(--gold-bright); }
.btn-text {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-family: inherit; font-size: 0.82rem;
  padding: 0.2rem 0.4rem; border-radius: 8px;
}
.btn-text:hover { color: var(--gold-bright); background: rgba(212, 180, 131, 0.1); }

/* ---- Giriş kapısı (auth gate) ---- */
.auth-gate { max-width: 430px; margin: 0 auto; }
.gate-mark { font-size: 1.8rem; color: var(--gold); text-align: center; margin-bottom: 0.2rem; text-shadow: 0 0 20px rgba(212, 180, 131, 0.5); }
.auth-gate h2 { text-align: center; }
.auth-gate > .muted { text-align: center; margin-bottom: 1.3rem; }
.gate-google { width: 100%; justify-content: center; padding: 0.85rem; font-size: 1rem; }
.auth-divider {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1.3rem 0; color: var(--muted-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-toggle { text-align: center; margin-top: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.link-btn {
  background: none; border: none; color: var(--gold-bright); cursor: pointer;
  font-family: inherit; font-size: 0.9rem; text-decoration: underline; padding: 0;
}
.link-btn:hover { color: var(--gold); }

/* ---- Modal (kayıt / profil) ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 5, 16, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; box-shadow: var(--shadow);
  animation: rise 0.25s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: none;
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.btn-text-center {
  display: block; width: 100%; margin-top: 0.8rem;
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 0.88rem; cursor: pointer; padding: 0.3rem;
}
.btn-text-center:hover { color: var(--gold-bright); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-mark { font-size: 1.6rem; color: var(--gold); text-align: center; margin-bottom: 0.3rem; }
.modal h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold-bright); text-align: center; }
.modal .muted { text-align: center; margin-bottom: 1.3rem; }
.modal select {
  width: 100%; padding: 0.8rem 0.95rem; background: rgba(10, 9, 24, 0.6);
  border: 1px solid var(--border-soft); border-radius: 12px; color: var(--text);
  font-size: 1rem; font-family: inherit; color-scheme: dark;
}
.modal select:focus { outline: none; border-color: var(--gold); }

/* ---- Hata / uyarı ---- */
.error-box {
  background: rgba(224, 102, 102, 0.12);
  border: 1px solid rgba(224, 102, 102, 0.4);
  color: #f3b0b0; padding: 0.8rem 1rem; border-radius: 12px;
  margin-bottom: 1.2rem; font-size: 0.92rem;
}
.warn {
  background: rgba(216, 181, 69, 0.1);
  border: 1px solid rgba(216, 181, 69, 0.3);
  color: #e7d59a; padding: 0.75rem 1rem; border-radius: 10px;
  font-size: 0.88rem; margin: 1rem 0;
}

/* ---- Sonuç ---- */
.result { margin-top: 2.5rem; }
.result-head { text-align: center; margin-bottom: 1.5rem; }
.result-sub { color: var(--muted); font-size: 0.95rem; }

.big-three {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.8rem;
}
.tri-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.3rem 0.8rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  backdrop-filter: blur(10px);
}
.tri-glyph {
  font-size: 1.8rem; color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 180, 131, 0.45);
}
.tri-label { font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }
.tri-sign { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--text); }

/* ---- Çark ---- */
.wheel-wrap {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 22px; padding: 1rem; margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
}
.natal-wheel { width: 100%; height: auto; display: block; }
.sign-glyph { font-size: 26px; }
.planet-glyph { font-size: 19px; fill: var(--gold-bright); }
.planet-glyph.retro { fill: #f0a868; }
.planet-deg { font-size: 11px; }
.house-num { font-size: 15px; font-weight: 600; }
.angle-label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

/* ---- Kartlar / tablolar ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.4rem; backdrop-filter: blur(10px);
  margin-bottom: 1.2rem;
}
.card h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 600; color: var(--gold-bright); margin-bottom: 1rem;
}
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left; font-weight: 500; color: var(--muted-2);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.6rem 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.cell-planet { font-weight: 500; white-space: nowrap; }
.data-table .g { font-size: 1.1rem; margin-right: 0.15rem; }
.muted { color: var(--muted-2); font-size: 0.85rem; }
.retro-badge { color: #f0a868; font-weight: 700; }

.sign-fire { color: var(--fire); }
.sign-earth { color: var(--earth); }
.sign-air { color: var(--air); }
.sign-water { color: var(--water); }

/* ---- Açılar ---- */
.aspect-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.5rem; }
.aspect-list li {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.55rem 0.75rem; background: rgba(10, 9, 24, 0.4);
  border: 1px solid var(--border-soft); border-radius: 10px; font-size: 0.86rem;
}
.asp-pair { font-weight: 500; }
.asp-glyph { font-size: 1.05rem; }
.asp-name { font-size: 0.78rem; }
.asp-orb { color: var(--muted-2); font-size: 0.75rem; margin-left: auto; }
.aspect-list li.asp-li { flex-direction: column; align-items: stretch; gap: 0; cursor: pointer; }
.asp-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.asp-note { display: none; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--border); font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.asp-li.open { border-color: var(--gold); }
.asp-li.open .asp-note { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.leg { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--muted); }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---- Harita Analizi kartı ---- */
.analysis-card h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted-2); margin-bottom: 0.7rem; font-weight: 600;
}
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.3rem; }
.bal-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.bal-label { width: 64px; color: var(--text); }
.bal-track { flex: 1; height: 8px; background: rgba(10, 9, 24, 0.6); border-radius: 5px; overflow: hidden; }
.bal-fill { display: block; height: 100%; border-radius: 5px; transition: width 0.5s ease; }
.bal-val { width: 18px; text-align: right; color: var(--muted); }
.bal-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }
.bal-note strong { color: var(--gold-bright); }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.2rem;
  padding: 1.1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.fact { display: flex; flex-direction: column; gap: 0.15rem; }
.fact-k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted-2); }
.fact-v { font-size: 0.92rem; color: var(--text); }
.facts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.facts-row .fact-k { display: block; margin-bottom: 0.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  background: rgba(139, 126, 224, 0.15); border: 1px solid rgba(139, 126, 224, 0.35);
  color: #cfc7f0; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.8rem;
}

/* ---- Ay Takvimi ---- */
.moon-grid-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem;
  text-align: center; color: var(--muted-2); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
}
.moon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
.moon-cell {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  background: rgba(10, 9, 24, 0.5); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 2px;
}
.moon-cell.empty { background: transparent; border: none; }
.mc-day { font-size: 0.72rem; color: var(--muted); }
.mc-emoji { font-size: 1.3rem; line-height: 1; }
.mc-illum { font-size: 0.6rem; color: var(--muted-2); }
.phase-events { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.phase-events li { padding: 0.55rem 0.8rem; background: rgba(10, 9, 24, 0.4); border: 1px solid var(--border-soft); border-radius: 10px; }
.phase-events strong { color: var(--gold-bright); }

/* ---- Gezegen Saatleri ---- */
.ph-table td { font-size: 0.88rem; }
.ph-table tr.ph-night td { color: var(--muted); }
.ph-table tr.ph-now { background: rgba(212, 180, 131, 0.16); }
.ph-table tr.ph-now td { color: var(--gold-bright); font-weight: 600; }

/* ---- Rektifikasyon ---- */
.rect-slider { width: 100%; accent-color: var(--gold); margin: 0.6rem 0 1rem; cursor: pointer; }
.rect-readout { background: rgba(10, 9, 24, 0.5); border: 1px solid var(--border-soft); border-radius: 12px; padding: 1rem 1.2rem; }
.rect-time { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--gold-bright); text-align: center; margin-bottom: 0.6rem; }
.rect-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 0.95rem; }
.rect-row:last-child { border-bottom: none; }
.rect-row span { color: var(--muted); }
.rect-row strong { color: var(--text); }

/* ---- Paylaşılabilir kart ---- */
.share-cta { text-align: center; margin-bottom: 1.6rem; }
.btn-share {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.6rem; border: none; border-radius: 26px; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: #1a1208;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 30px -10px rgba(212, 180, 131, 0.6); transition: transform 0.15s;
}
.btn-share:hover { transform: translateY(-2px); }
.share-modal { max-width: 420px; text-align: center; }
.share-preview {
  margin: 1.1rem 0; display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.share-img {
  max-height: 62vh; max-width: 100%; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.share-actions { display: flex; gap: 0.7rem; justify-content: center; align-items: center; }
.share-actions .btn-secondary { text-decoration: none; display: inline-flex; align-items: center; }

/* ---- Textarea (forum vb.) ---- */
textarea {
  width: 100%; padding: 0.85rem 1rem; background: rgba(10, 9, 24, 0.6);
  border: 1px solid var(--border-soft); border-radius: 12px; color: var(--text);
  font-size: 1rem; font-family: inherit; resize: vertical; min-height: 84px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.15); }
textarea::placeholder { color: var(--muted-2); }

/* ---- Yıldız Forum ---- */
.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.forum-list { display: flex; flex-direction: column; gap: 0.6rem; }
.forum-q {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left; width: 100%;
  background: rgba(10, 9, 24, 0.4); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 0.9rem 1rem; cursor: pointer; font-family: inherit;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.forum-q:hover { border-color: var(--gold); transform: translateX(2px); background: rgba(212, 180, 131, 0.06); }
.fq-title { font-weight: 600; color: var(--text); font-size: 1rem; }
.fq-meta { font-size: 0.8rem; color: var(--muted-2); }
.fq-detail-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 0.3rem; line-height: 1.2; }
.fq-detail-body { color: #ddd8ee; line-height: 1.6; margin-top: 0.6rem; }
.forum-answers { display: flex; flex-direction: column; gap: 0.8rem; }
.forum-answer { background: rgba(10, 9, 24, 0.4); border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.8rem 1rem; }
.fa-meta { font-size: 0.78rem; color: var(--gold); margin-bottom: 0.35rem; }
.fa-body { color: #ddd8ee; line-height: 1.55; font-size: 0.95rem; }
.forum-search { width: 100%; margin-bottom: 0.9rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.cat-chip {
  background: rgba(10, 9, 24, 0.5); border: 1px solid var(--border-soft); color: var(--muted);
  border-radius: 18px; padding: 0.35rem 0.8rem; font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.cat-chip:hover { color: var(--text); }
.cat-chip.active { background: linear-gradient(120deg, var(--gold-bright), var(--gold)); color: #1a1208; border-color: transparent; font-weight: 600; }
.forum-q-wrap { display: flex; align-items: stretch; gap: 0.5rem; }
.forum-q-wrap .forum-q { flex: 1; min-width: 0; }
.fq-actions { display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; flex: 0 0 auto; }
.like-btn, .del-btn {
  background: rgba(10, 9, 24, 0.4); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 0.4rem 0.6rem; cursor: pointer; font-family: inherit; font-size: 0.82rem; color: var(--muted);
  transition: all 0.2s; white-space: nowrap;
}
.like-btn:hover { border-color: #e07ab0; color: #e07ab0; }
.like-btn.liked { color: #e07ab0; border-color: #e07ab0; background: rgba(224, 122, 176, 0.12); }
.del-btn:hover { border-color: var(--danger); color: var(--danger); }
.fq-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.fq-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.4px; background: rgba(139, 126, 224, 0.18); color: #cfc7f0; padding: 0.12rem 0.5rem; border-radius: 10px; }
.fq-own { font-size: 0.68rem; color: var(--gold); }
.fq-detail-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.del-link { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.75rem; text-decoration: underline; font-family: inherit; padding: 0; margin-left: 0.4rem; }

/* ---- Geçmiş Haritalarım ---- */
.history-list { display: flex; flex-direction: column; gap: 0.6rem; }
.history-item {
  display: flex; align-items: center; gap: 0.9rem; text-align: left; width: 100%;
  background: rgba(10, 9, 24, 0.4); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 0.9rem 1rem; cursor: pointer; font-family: inherit;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.history-item:hover { border-color: var(--gold); transform: translateX(2px); background: rgba(212, 180, 131, 0.06); }
.hi-glyph {
  font-size: 1.3rem; color: var(--gold); width: 38px; height: 38px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; background: #16122e;
}
.hi-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.hi-title { font-weight: 600; color: var(--text); }
.hi-sub { font-size: 0.82rem; color: var(--muted); }
.hi-signs { font-size: 0.78rem; color: var(--muted-2); }
.hi-open { color: var(--gold-bright); font-size: 0.85rem; white-space: nowrap; }

/* ---- Akış imleci ---- */
.caret { color: var(--accent); animation: blink 1s steps(2, start) infinite; font-weight: 700; }
@keyframes blink { to { visibility: hidden; } }

/* ---- AI kartı ---- */
.ai-card { border-color: rgba(139, 126, 224, 0.4); background: linear-gradient(160deg, rgba(40, 33, 78, 0.55), var(--panel)); }
.ai-output {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: 0.97rem; line-height: 1.75;
}
.ai-output h3, .ai-output h4, .ai-output h5 {
  font-family: 'Cormorant Garamond', serif; color: var(--gold-bright);
  margin: 1.2rem 0 0.5rem; font-size: 1.25rem;
}
.ai-output p { margin-bottom: 0.85rem; color: #ddd8ee; }
.ai-output ul { margin: 0.5rem 0 1rem 1.2rem; }
.ai-output li { margin-bottom: 0.35rem; }
.ai-output strong { color: var(--gold-bright); }
.ai-loading { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.ai-loading span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  display: inline-block; animation: bounce 1.2s infinite ease-in-out;
}
.ai-loading span:nth-child(2) { animation-delay: 0.15s; }
.ai-loading span:nth-child(3) { animation-delay: 0.3s; margin-right: 0.4rem; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* ---- Footer ---- */
.site-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 2.5rem 1.5rem 3rem;
  color: var(--muted-2); font-size: 0.82rem; max-width: 600px; margin: 0 auto;
}
.site-footer .credit { margin-top: 0.6rem; color: var(--gold); letter-spacing: 1px; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .field-row, .grid-2, .big-three { grid-template-columns: 1fr; }
  .big-three { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .tri-sign { font-size: 1.1rem; }
  .form-card { padding: 1.4rem; }
  .hero { padding-top: 3rem; }
  .analysis-grid, .facts-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .auth-bar { top: 10px; right: 10px; }
}

/* ============================================================
   CİLA & MOBİL İYİLEŞTİRMELER (v=22)
   ============================================================ */

html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
::selection { background: rgba(212, 180, 131, 0.35); color: #fff; }

/* Tema kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0b1f; }
::-webkit-scrollbar-thumb { background: #2f2950; border-radius: 6px; border: 2px solid #0d0b1f; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Modallar küçük ekranda kaydırılabilir */
.modal { max-height: 92vh; overflow-y: auto; }
.modal-overlay { padding: 1rem; }

/* Sonuç kartlarına hafif hover yükselişi (masaüstü) */
@media (hover: hover) {
  .result .card { transition: transform 0.2s, border-color 0.2s; }
  .result .card:hover { border-color: var(--border-soft); }
}

/* Güvenli alan (çentik) */
.site-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
.auth-bar { top: calc(14px + env(safe-area-inset-top)); }

/* ---- Tablet ve altı ---- */
@media (max-width: 680px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 2.6rem 1rem 1.1rem; }
  .form-card { padding: 1.3rem; }
  .card { padding: 1.15rem; }
  .module-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .module-card { padding: 1.25rem 0.7rem 1.05rem; }
  .module-icon { width: 56px; height: 56px; font-size: 1.5rem; }
  .module-label { font-size: 1.05rem; }
  .module-desc { font-size: 0.72rem; }
  .wheel-wrap { padding: 0.5rem; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 0.45rem 0.4rem; }
  .result-head h2 { font-size: 1.55rem; }
  .aspect-list { grid-template-columns: 1fr; }
  .auth-bar .btn-google { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
  .user-chip { padding: 0.25rem 0.4rem 0.25rem 0.3rem; }
  .user-chip #user-name { max-width: 84px; font-size: 0.8rem; }
  .forum-head { gap: 0.6rem; }
  .btn-share { width: 100%; justify-content: center; }
  .forum-head .btn-share { width: auto; }
}

/* ---- Küçük telefon ---- */
@media (max-width: 400px) {
  .hero h1 { font-size: 2.4rem; }
  .tagline { font-size: 0.95rem; }
  .module-grid { gap: 0.55rem; }
  .module-icon { width: 50px; height: 50px; font-size: 1.3rem; }
  .module-label { font-size: 0.98rem; }
  .module-desc { display: none; }
  .big-three { gap: 0.4rem; }
  .tri-card { padding: 1rem 0.35rem; }
  .tri-glyph { font-size: 1.5rem; }
  .tri-sign { font-size: 0.92rem; }
  .tri-label { font-size: 0.62rem; }
  .modal { padding: 1.4rem; }
  .fq-actions { flex-direction: row; }
}

/* ===== WhatsApp seans butonu (sabit, sağ alt) ===== */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70; /* modallar (100) altında, içeriğin üstünde */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* imleç gizleme kuralına rağmen tıklanabilir kalsın */
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(37, 211, 102, 0.45),
    0 0 0 0 rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
html.star-cursor-on .wa-fab { cursor: pointer !important; }
.wa-fab svg { display: block; }
.wa-fab:hover,
.wa-fab:focus-visible {
  transform: scale(1.08);
  box-shadow:
    0 10px 26px rgba(37, 211, 102, 0.6),
    0 0 22px rgba(37, 211, 102, 0.5);
}
.wa-fab:active { transform: scale(1.02); }

@media (max-width: 600px) {
  .wa-fab { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
}
