#intro {
  position: relative;
  z-index: 0;   /* 0 veya auto */
}

canvas { z-index: 1; }

/* THEME TOKENS */
:root{
  --bg:#0b1220;
  --card:#071226;
  --muted:#9aa4b2;
  --accent:#60a5fa;

  /* Typography system */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;

  --lh-tight: 1.2;
  --lh: 1.5;
  --lh-loose: 1.65;

  --border-soft: rgba(255,255,255,.08);

}

/* GLOBAL NORMALIZE */
html{
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body{
  font-family: var(--font-sans);
  background:linear-gradient(180deg,#04101b 0%,#07132a 100%);
  color:#e6eef8;
  margin:0;
  padding:28px;

  font-size: var(--fs-16);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Form controls / buttons font fix */
button, input, textarea, select{
  font: inherit;
  line-height: inherit;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
}

header{
  display:flex;
  gap:16px;
  align-items:center;
  margin-bottom:18px;
}

/* HEADINGS */
h1, h2, h3{
  margin:0;
  line-height: var(--lh-tight);
  letter-spacing: -0.2px;
}

h1{
  font-size: var(--fs-20);
}

h2 {
  font-size: var(--fs-20);
}

p.lead{
  margin:0;
  color:var(--muted);
  font-size: var(--fs-14);
  line-height: var(--lh-loose);
}

.card{
  background:rgba(255,255,255,0.02);
  padding:18px;
  border-radius:12px;
  border: 1px solid var(--border-soft);
  box-shadow:0 8px 30px rgba(2,6,23,0.6);

  /* Results'ta ritim */
  font-size: var(--fs-15);
  line-height: var(--lh-loose);
}

.question{
  font-size: var(--fs-18);
  line-height: var(--lh-loose);
  margin-bottom:8px;
}

.choices{
  display:flex;
  flex-direction:column;
  gap:8px;
}

button.choice{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:12px;
  border-radius: 12px;
  color:inherit;
  cursor:pointer;
  text-align:left;

  font-size: var(--fs-15);
  line-height: 1.35;

  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

button.choice:hover{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

button.choice:active{ transform: translateY(1px); } 

.progress{
  height:12px;
  background:rgba(255,255,255,0.02);
  border-radius:999px;
  overflow:hidden;
  margin:12px 0;
}

.bar{
  height:100%;
  background:linear-gradient(90deg,var(--accent),#7dd3fc);
  width:0%;
}

.hidden{display:none;}

/* RESULTS GRID */
.results{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* Results: başlıklar */
.results h3{
  font-size: var(--fs-18);
  margin: 10px 0 10px;
}

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}


/* Code blocks */
pre{
  white-space:pre-wrap;
  background:rgba(0,0,0,0.25);
  padding:12px;
  border-radius:10px;

  font-family: var(--font-mono);
  font-size: var(--fs-14);
  line-height: 1.6;
  overflow-wrap:anywhere;
  margin: 0;
}

footer{
  margin-top:18px;
  color:var(--muted);
  font-size: var(--fs-13);
}

.muted{color:var(--muted);}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.03);

  font-size: var(--fs-13);
  line-height: 1;
}

button{cursor:pointer;}



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



/* === HEADER & ÜST BUTON GRUBU === */

.site-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.site-brand h1{
  font-size:20px;
  margin:0;
}

.topnav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

/* Ortak pill stili: hem .topnav-link hem .nav-item için */
.topnav-link,
.topnav .nav-item,
.topnav a{
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  font-size:14px;
  color:#e6eef8;
  text-decoration:none;
  cursor:pointer;
}

/* Hover */
.topnav-link:hover,
.topnav .nav-item:hover,
.topnav a:hover{
  background:rgba(255,255,255,.07);
}

/* Aktif Buton  */
.topnav-link.is-active,
.topnav .nav-item.is-active,
.topnav a.is-active{
  background:rgba(2,41,71,0.9);
  border-color:rgba(255,255,255,.28);
  color:#f9fafb;
}

/* Eski .nav-pill tasarımını hâlâ kullanıyorsan: */

.nav-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.92);
  white-space:nowrap;
}

/* dropdown toggle */
.nav-dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* === MEGA MENU === */

.nav-mega{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:min(960px, 100% - 24px);
  margin-top:4px;
  z-index:80; /* biraz üste al */
}

.nav-mega-inner{
  border-radius:22px;
  padding:16px 18px 18px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;

  /* 🔥 burası önemli: cam efekti yerine koyu panel */
  background:#020617; /* neredeyse siyah gece mavisi */
  border:1px solid rgba(148,163,184,.45);
  box-shadow:0 18px 60px rgba(15,23,42,.95);
}


.nav-mega-col h3{
  margin:0 0 4px;
  font-size:16px;
}

.nav-mega-desc{
  font-size:13px;
  margin:0 0 10px;
}

.nav-type-grid{
  display:grid;
  gap:8px;
}

.nav-type-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
  text-decoration:none;
  color:#f9fafb;
  border:1px solid rgba(15,23,42,1);   /* koyu sınır */
  background:#020617;                  /* panelle uyumlu koyu base */
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, filter .12s ease;
}

.nav-type-chip span{
  font-weight:700;
  letter-spacing:0.4px;
  font-size:11px;
  opacity:.9;
}


/* renk varyasyonları – yarı şeffaf, orta karar */

.nav-type-chip.nt{
  background:rgba(129,140,248,0.42);   /* morumsu */
  border-color:rgba(129,140,248,0.85);
}

.nav-type-chip.nf{
  background:rgba(45,212,191,0.40);    /* yeşil */
  border-color:rgba(45,212,191,0.85);
}

.nav-type-chip.sj{
  background:rgba(56,189,248,0.40);    /* mavi */
  border-color:rgba(56,189,248,0.85);
}

.nav-type-chip.sp{
  background:rgba(250,204,21,0.38);    /* kehribar */
  border-color:rgba(250,204,21,0.85);
}

.nav-type-chip.gut {
  background: rgba(100, 255, 150, 0.28);
  border-color: rgba(100, 255, 150, 0.75);
  filter: brightness(1.15);
}

.nav-type-chip.heart{
background: rgba(236,72,153,0.28);
border-color: rgba(236,72,153,0.75);
  filter: brightness(1.15);
}

.nav-type-chip.head{
background: rgba(139,92,246,0.30);
border-color: rgba(139,92,246,0.75);
  filter: brightness(1.15);
}

.nav-type-chip.gray{
  background: rgba(111, 115, 125, 0.32);   /* Granit Gri */
  border-color: rgba(111, 115, 125, 0.75);
}


/* Hover hafif parlasın */
.nav-type-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(0,0,0,.7);
  filter:brightness(1.05);
}


/* === Mobile Nav / Mega === */

@media (max-width: 720px){
  .site-head{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .topnav{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap; 		    /* tek satır */
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;   /* iOS hissi */
    padding-bottom:6px;
    white-space: nowrap;
    scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
            mask-image:linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  }
  .topnav::-webkit-scrollbar{ display:none; }

  .nav-pill{ scroll-snap-align:start; }

  .topnav .nav-item,
  .topnav a{
    flex: 0 0 auto;        /* sıkışıp küçülmesin, yan yana gelsin */
    white-space: nowrap;   /* "Kişilik Testi" tek satır */
    font-size: 13px;
    padding: 7px 10px;
  }
}


/* mega menü sütunları mobilde küçülsün */
@media (max-width:900px){
  .nav-mega-inner{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:600px){
  .nav-mega{
    position:static;
    transform:none;
    width:100%;
    margin-top:8px;
  }
  .nav-mega-inner{
    grid-template-columns:1fr;
  }
}



/* ---------- Buttons ---------- */
:root{
  --btn-radius: 16px;
  --btn-shadow: 0 10px 30px rgba(0,0,0,.35);
  --btn-border: rgba(255,255,255,.14);
  --btn-border-strong: rgba(255,255,255,.22);
  --btn-bg: rgba(255,255,255,.06);
  --btn-bg-hover: rgba(255,255,255,.10);
  --btn-text: rgba(255,255,255,.92);
  --btn-muted: rgba(255,255,255,.72);
  --btn-focus: rgba(255, 214, 102, .35); /* soft amber focus */
}

.btn{
  appearance:none;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--btn-radius);
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    transform .12s ease,
    background .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  min-height: 44px; /* mobile friendly */
}

.btn:hover{
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow);
}

.btn:active{
  transform: translateY(0px) scale(.99);
  filter: brightness(.98);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--btn-focus), var(--btn-shadow);
}

.btn:disabled,
.btn[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* sizes */
.btn-sm{ padding: 10px 12px; border-radius: 14px; min-height: 40px; font-weight: 700; }
.btn-lg{ padding: 14px 18px; border-radius: 18px; min-height: 48px; font-size: 16px; }

/* variants */
.btn-primary{
  background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(255,255,255,.06));
  border-color: rgba(96,165,250,.28);
}
.btn-primary:hover{
  box-shadow: 0 0 0 4px rgba(96,165,250,.14), 0 12px 40px rgba(0,0,0,.35);
}


.btn-secondary{
  background: rgba(255,255,255,.05);
}

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.10);
  color: var(--btn-muted);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
  color: var(--btn-text);
}

.btn-danger{
  background: linear-gradient(135deg, rgba(255,90,90,.25), rgba(255,255,255,.06));
  border-color: rgba(255,90,90,.35);
}
.btn-danger:hover{
  background: linear-gradient(135deg, rgba(255,90,90,.35), rgba(255,255,255,.08));
  border-color: rgba(255,90,90,.55);
}

/* icon bubble (optional) */
.btn .btn-ico{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

/* full width on mobile if you want */
@media (max-width: 640px){
  .btn{ width: 100%; }
  .btn-row{ display:grid; gap: 10px; }
}


/* Share buttons */

#shareCardWrapper button {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 8px;
  color: #e6eef8;
  cursor: pointer;
  margin: 4px;

  font-size: var(--fs-14);
  line-height: 1.2;
}
#shareCardWrapper button:hover {
  background: #334155;
}

/* Two-column wrapper for functions output */
.func-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.func-left, .func-right {
  background: rgba(255,255,255,0.03);
  padding: 15px;
  border-radius: 10px;
  min-width: 0;
}

.func-left pre,
.func-right pre {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.55;
  font-family: var(--font-mono);
}

/* Quiz header row */

.quiz-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Motivator */

#motivator {
  display: none;
  padding: 8px 20px;
  font-size: var(--fs-15);
  font-weight: 600;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  box-shadow:
      0 0 12px rgba(120, 160, 255, 0.18),
      0 0 24px rgba(120, 160, 255, 0.15);

  color: #f1f5f9;

  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(.25,1.3,.5,1);
}

#motivator.glow {
  animation: gentleGlow 2.8s ease-in-out infinite;
}

@keyframes gentleGlow {
  0%   { box-shadow: 0 0 6px rgba(140,170,255,0.4), 0 0 12px rgba(140,170,255,0.35); }
  50%  { box-shadow: 0 0 10px rgba(140,170,255,0.55), 0 0 18px rgba(140,170,255,0.45); }
  100% { box-shadow: 0 0 6px rgba(140,170,255,0.4), 0 0 12px rgba(140,170,255,0.35); }
}

/* Mobile layout */
@media (max-width: 600px) {
  .quiz-header-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  #sectionLabel {
    grid-column: 1;
    grid-row: 1;
  }

  #progressCount {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  #motivator {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: center;
  }

  /* results tek sütun daha okunaklı */
  .results{
    grid-template-columns: 1fr;
  }
}

/* RESULTS-ONLY FIXES */

/* Özet kartı: inline style'lar yerine burayı kullan */
#personalitySummary{
  padding: 18px !important;
}

#summaryText{
  white-space: pre-line; /* senin davranışını korur */
  font-size: var(--fs-16) !important;
  line-height: 1.7 !important;
  letter-spacing: -0.1px;
}

/* "font-size:1px" hack'lerini biraz daha masumlaştır (HTML dokunmadan) */
#sloenBreakdown[style*="font-size: 1px"],
#enneaBreakdown[style*="font-size: 1px"],
#enneaWing[style*="font-size: 1px"],
#declaredType[style*="font-size: 1px"],
#declaredEnnea[style*="font-size: 1px"],
#declaredSloen[style*="font-size: 1px"]{
  /* Görseli bozmayacak şekilde gerçek "gizleme"ye yakınlaştır */
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* CHART / CANVAS FIXES */

canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 280px !important; 
}

.chart-container {
  width: 100%;
  min-height: 200px;
}


.heroRow{
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.heroCard{ margin-top: 0 !important; }
.heroSummary{
  padding: 20px;
}

@media (max-width: 900px){
  .heroRow{
    grid-template-columns: 1fr;
  }
}


/* YENİ INDEX */

.page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.site-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;

  position: relative;      
  z-index: 12000;          
}

.brand-title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-sub{
  opacity: .85;
  margin-top: 2px;
  font-size: 14px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 22px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.hero-title{
  margin: 2px 0 10px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.hero-subtitle{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  opacity: .9;
  max-width: 56ch;
}

.hero-bullets{
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.hero-bullets li{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

.hero-demo{
  display:inline-block;
  margin: 6px 0 14px;
  text-decoration: none;
  font-weight: 700;
}

.hero-details{
  margin-top: 6px;
}

.hero-details summary{
  cursor: pointer;
  opacity: .9;
  font-weight: 700;
}

.hero-details-body{
  margin-top: 8px;
  opacity: .85;
  line-height: 1.6;
  font-size: 14px;
}

.hero-left, .hero-right { min-width: 0; }
.cta-card, .hero { max-width: 100%; }

.cta-card{
  border-radius: 20px;
  padding: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.field-label{
  display:block;
  font-size: 13px;
  opacity: .9;
  margin-bottom: 8px;
}

.field-input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
  outline: none;
}

.field-input:focus{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.cta-btn{
  width: 100%;
  margin-top: 12px;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: #111;
}

.cta-btn:hover{ transform: translateY(-1px); }
.cta-btn:active{ transform: translateY(0px); }

.cta-note{
  margin-top: 10px;
  font-size: 12.5px;
  opacity: .82;
  line-height: 1.5;
}

.hero-preview{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 12px;
  overflow: hidden;
}

.preview-bar{
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 10px;
}

.preview-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-box{
  height: 84px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  filter: blur(.2px);
}

.below-fold{
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}

.below-title{
  margin: 0 0 6px;
  font-size: 18px;
}

.below-sub{
  margin: 0 0 14px;
  opacity: .85;
}

@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
  }
  .hero-title{
    font-size: 34px;
  }
}


.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); z-index:9999; }
.hidden{ display:none !important; }
.modal-card{
  width:min(720px, 92vw);
  border-radius:20px;
  padding:18px;
  background: rgba(20,22,28,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.muted{ opacity:.85; line-height:1.5; }
.tie-block{ margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.tie-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.tie-label{ min-width:90px; opacity:.85; }
.tie-chip{
  border-radius:999px; padding:8px 12px; cursor:pointer;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: inherit;
}
.tie-chip.selected{
  background: rgba(255,255,255,.92);
  color: #111;
  border-color: transparent;
}


/* =========================================
   MOBİL İÇİN KESİN ÇÖZÜM (TIE & DİĞER MODALLAR)
   ========================================= */

@media (max-width: 768px) {
  /* Arka plan katmanı: İçeriğin kaydırılabilir olması için flex-align'ı değiştiriyoruz */
  .modal {
    padding: 20px 10px; /* Kenarlardan çok az boşluk */
    align-items: flex-start; /* Mobilde tepeden başlasın ki uzunsa aşağı kaysın */
    overflow-y: auto; /* Dış katman kaydırılabilir olsun */
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    margin-top: auto;
    margin-bottom: auto; /* Dikeyde ortalamayı korur ama taşarsa izin verir */
    width: 95% !important;
    max-height: none !important; /* Kartın kendi boyunu sınırlama, dışarı taşsın */
    display: flex;
    flex-direction: column;
    padding: 16px !important;
  }

  /* Seçenek butonları mobilde çok yer kaplıyor, yan yana yerine alt alta */
  .tie-row {
    display: grid;
    grid-template-columns: 1fr; /* Mobilde butonları tam genişlik yap */
    gap: 8px;
  }

  .tie-chip {
    text-align: center;
    padding: 12px;
    font-size: 15px; /* Parmakla basıma uygun boyut */
  }

  /* Alt kısımdaki "Sonuçlandır" veya "Onayla" butonunun görünür olduğundan emin olalım */
  .tie-block {
    margin-top: 20px;
    padding-bottom: 10px;
  }
}



/* Compare modal micro-animations */
#compareModal{
  opacity: 0;
  transition: opacity .15s ease;
}
#compareModal:not(.hidden){
  opacity: 1;
}
#compareModal .modal-card{
  transform: translateY(8px) scale(.98);
  transition: transform .18s cubic-bezier(.2,1,.2,1);
}
#compareModal:not(.hidden) .modal-card{
  transform: translateY(0) scale(1);
}

/* Error state (optional) */
#compareError{
  color: rgba(255, 140, 140, .92);
}



/* ===== Homepage Previews ===== */

.below-fold{
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}

.below-title{
  margin: 0 0 6px;
  font-size: 18px;
}

.below-sub{
  margin: 0 0 14px;
  opacity: .85;
  max-width: 70ch;
}

.preview-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.preview-item{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.preview-item:hover{
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.22);
  background: rgba(255,255,255,.03);
}

.preview-item img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
  cursor:pointer;
}

.preview-meta{
  padding: 12px 12px 14px;
}

.preview-title{
  font-weight: 900;
  letter-spacing: -.1px;
  margin-bottom: 6px;
  color: rgba(255,255,255,.94);
}

.preview-desc{
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}

.preview-callout{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(96,165,250,.08);
  color: rgba(255,255,255,.86);
  line-height: 1.6;
}

@media (max-width: 980px){
  .preview-grid{ grid-template-columns: 1fr; }
  .preview-item img{ height: 210px; }
}


/* --- Combo profile (txt->cards) Chatgpt --- */

#comboProfile .card{
  border-radius: 18px;
}

#comboProfile .combo-h3{
  margin: 0 0 10px;
  font-size: 18px;
}

#comboProfile .combo-sub{
  margin: 10px 0 6px;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .9;
}

#comboProfile .combo-p{
  margin: 6px 0;
  opacity: .9;
  line-height: 1.7;
}

#comboProfile .combo-list{
  margin: 6px 0 10px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

#comboProfile .combo-list li{
  opacity: .92;
  line-height: 1.55;
}

#comboProfile .combo-body{
  white-space: normal; /* pre-line yerine normal */
}

#comboProfile .results{
  align-items: stretch;
}



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

.site-footer {
  background: radial-gradient(circle at top, #0e1a24, #060c12);
  padding: 48px 16px 24px;
  color: #cfd8e3;
}

.footer-mbti {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-mbti h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #ffffff;
}

.footer-mbti p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}

/* =========================
   MBTI CAROUSEL
========================= */

.mbti-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mbti-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mbti-carousel::-webkit-scrollbar {
  display: none;
}

/* MBTI Kart */

.mbti-card {
  min-width: 55px;
  height: 165px;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mbti-card img {
  width: 55px;
  height: 160px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.mbti-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.mbti-card:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   OK BUTONLARI < >
========================= */

.nav-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #ffffff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.1);
}

.nav-btn.left {
  margin-right: 6px;
}

.nav-btn.right {
  margin-left: 6px;
}


/* MOBİL – MBTI FOOTER KARTLARI */
@media (max-width: 768px) {

  .footer-mbti {
    padding: 24px 12px;
  }

  .mbti-carousel {
    gap: 10px;
    padding: 8px 4px;
  }

  .mbti-card {
    min-width: 70px;   /* <-- EN KRİTİK SATIR */
    max-width: 90px;
    height: 140px;
  }

  .mbti-card img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
  }

  .mbti-card span {
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: 0.5px;
  }

  .nav-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}


/* =========================
   FOOTER ALT YAZI
========================= */

.footer-bottom {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
}


.sticky-share-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 12px;
  z-index: 999;
}

.sticky-btn {
  color: #0b1220;
  border: 2px solid #3F4F66;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}


/* ===== PREMIUM LOCK ===== */

.locked-section{
  position: relative;
  overflow: hidden;
}

.locked-blur{
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.lock-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 24px 24px;
  background: radial-gradient(
    circle at center,
    rgba(5,10,20,0.18),
    rgba(5,10,20,0.55)
  );
  backdrop-filter: blur(6px);
  z-index: 20;
  pointer-events: auto;
}

.lock-box{
  position: relative;
  z-index: 21;
  pointer-events: auto;
  width: min(92%, 430px);
  text-align: center;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(7,18,38,0.94);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42);
}

.lock-box h3{
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
  color: #f3f8ff;
}

.lock-box p{
  margin: 0 0 16px;
  color: rgba(255,255,255,.84);
  line-height: 1.6;
  font-size: 14px;
}

.lock-open-btn{
  min-width: 160px;
  cursor: pointer;
}

.lock-box .btn{
  width: auto;
}

/* Güçlü yanlar / zorlayıcı taraflar */
.locked-list li.is-blurred{
  filter: blur(6px);
  opacity: .55;
  user-select: none;
}

/* Premium rapor iç blok blur */
.premium-locked-inner{
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.premium-badge-inline {
  display: none;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #03210f;
}


/* ===== PREMIUM MODAL KUTU ===== */

.premium-modal.hidden {
  display: none;
}

.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.premium-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.premium-modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  padding: 18px;
  border-radius: 20px;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.premium-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
}

body.modal-open {
  overflow: hidden;
}



/* PDF için css */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-head,
  .topnav,
  .sticky-share-bar,
  #premiumEmailBox,
  #checkPremiumBtn,
  #checkPremiumMsg,
  #premiumBadge,
  #premiumActions button,
  .heroActions,
  button {
    display: none !important;
  }

  .wrap,
  .card,
  #result,
  #comboProfile,
  #extraProfiles {
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ddd !important;
  }

  canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .locked-section,
  .lock-overlay,
  .premium-locked-inner,
  .locked-blur {
    display: none !important;
  }
}

/* Çerez İzinleri */

.consent-box{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.consent-item input[type="checkbox"]{
  width:16px;
  height:16px;
  flex:0 0 16px;
  accent-color:#60a5fa;
}

.consent-item a{
  text-decoration:underline;
}

@media (max-width:640px){
  .consent-box{
    padding:10px;
  }
}


/* Slogan */

.dynamic-slogan {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dynamic-slogan.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.dynamic-slogan.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* Dinamik Link */

.type-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: all .2s ease;
}

.type-link:hover {
  border-bottom: 1px solid currentColor;
}

/* MBTI */
.mbti-link {
  color: #60a5fa;
}

.mbti-link:hover {
  color: #93c5fd;
}

/* Enneagram */
.enneagram-link {
  color: #f472b6;
}

.enneagram-link:hover {
  color: #f9a8d4;
}


/* =========================================================
   CONSENT / PRIVACY PREFERENCES
   Sadece opsiyonel analitik için kullanılan sade banner
   ========================================================= */

.consent-modal{
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}

.consent-modal.hidden{
  display: none !important;
}

.consent-modal-card{
  position: relative;
  width: min(760px, 92vw);
  background: #08111f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 70px rgba(0,0,0,.40);
}

.consent-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.consent-close:hover{
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Alt banner modu */
.consent-mode-banner{
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 16px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.consent-mode-banner .consent-modal-card{
  pointer-events: auto;
}

.consent-banner-slim{
  width: min(1180px, calc(100vw - 24px));
  background: linear-gradient(
    180deg,
    rgba(51, 65, 85, 0.95),
    rgba(30, 41, 59, 0.95)
  );
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  color: #f3f6fb;
  padding: 18px 22px;
}

.consent-banner-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.consent-banner-copy{
  min-width: 0;
}

.consent-kicker{
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}

.consent-banner-slim h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  color: #fff;
}

.consent-banner-text{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.84);
  max-width: 760px;
}

.consent-banner-note{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.68);
}

.consent-banner-note a{
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-banner-actions .btn{
  min-width: 150px;
}

/* Açılır detay alanı */
.consent-expanded{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.consent-pref-card{
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.consent-pref-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.consent-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}

.consent-row input{
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #93c5fd;
}

.consent-row--optional{
  opacity: .98;
}

.consent-help{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
}

/* Eski consent kutusu kalırsa bozulmasın */
.consent-box{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.consent-item input[type="checkbox"]{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #60a5fa;
}

.consent-item a{
  text-decoration: underline;
}

body.consent-lock{
  overflow: hidden;
}

@media (max-width: 820px){
  .consent-banner-grid{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .consent-banner-actions{
    justify-content: stretch;
  }

  .consent-banner-actions .btn{
    min-width: 0;
  }
}

@media (max-width: 640px){
  .consent-modal{
    padding: 12px;
  }

  .consent-mode-banner{
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0;
  }

  .consent-banner-slim{
    width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .consent-banner-slim h3{
    font-size: 16px;
  }

  .consent-banner-text{
    font-size: 13px;
  }

  .consent-banner-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-pref-head{
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-box{
    padding: 10px;
  }
}
