/* =========================
   Theme (değişkenler)
========================= */
:root{
  --primary:#621EEE;
  --primary-600:#5a19e0;
  --bg:#f7f9fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --brand:#621EEE;
  --border:#e5e7eb;

  /* Chart renkleri */
  --c-principal:#10b981;  /* Ana Para */
  --c-interest:#f59e0b;   /* Faiz */
  --c-tax:#ef4444;        /* Vergi */
}

/* Font */
@font-face {
  font-family: 'fontum';
  src: url('fontum.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Resetler */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "fontum";
  color: var(--text);
}

/* =========================
   Top Navigation
========================= */
.navigation{
  position: fixed; top:0; left:0; width:100%; height:56px;
  background:#6200EE; padding:10px 4px; display:flex; align-items:center;
  overflow:hidden; z-index:9998; gap:4px;
}
.navigation span{ font-size:10px; color:#fff }

#page-logo{
  margin:0 8px; width:48px; height:48px; padding:10px; cursor:pointer;
}

.nav-buttons,.nav-buttons-home{
  height:56px; min-width:100px;
  background:#6200EE; border:none; color:#fff; font-size:12px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  transition: background-color .3s ease;
}
.nav-buttons:hover,.nav-buttons-home:hover{ background:#eead0e }

.icon{ width:20px; height:20px }

#page-header{
  color:#fff; margin-left:auto; margin-right:24px; font-size:28px;
  font-family:"fontum", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-weight:700;
}

/* Anchor olarak kullanılan nav öğeleri */
.navigation a.nav-buttons,
.navigation a.nav-buttons-home{
  display:inline-flex; align-items:center; gap:6px;
  text-decoration:none;
}

.navigation a[aria-current="page"]{
  background: rgba(255,255,255,0.15);
  color:#fff;
  border-radius:8px;
}
.navigation a[aria-current="page"] img.icon{ filter: brightness(1.5); }

/* =========================
   Page Layout / Cards
========================= */
.container{ max-width:1300px; margin-inline:auto; padding:28px 20px }
.layout{ display:grid; gap:18px; margin-top:10px }
@media (min-width:1024px){ .layout{ grid-template-columns:4fr 2fr } }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  box-shadow:0 10px 24px rgba(2,6,23,0.06);
}
.card h2{
  margin:0 0 12px;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem);
  font-weight:700; line-height:1.3;
}
.card h3, .subhead{
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.25rem);
  font-weight:600; line-height:1.35; margin:12px 0 6px;
}
.stack{ display:grid; gap:16px }

/* Başlık ölçekleri (global) */
h2 { font-size: clamp(1rem, 2vw, 1.4rem); font-weight:700; }
h3 { font-size: clamp(1rem, 1.7vw, 1.2rem); font-weight:600; margin-top:12px; }
.subhead { font-size:1.2rem; font-weight:600; margin:12px 0 6px; }

/* =========================
   Form Controls & Helpers
========================= */
label{ font-size:.9rem; color:var(--muted) }

.input-ctl,.picker-input{
  width:100%; height:44px; background:#fff; color:var(--text);
  border:1px solid var(--border); padding:10px 12px; border-radius:10px; font-size:1rem; outline:none;
  box-shadow:0 2px 0 rgba(2,6,23,0.02) inset;
}
.input-ctl:focus,.picker-input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(98,30,238,0.18);
}

.col-stack{ display:flex; flex-direction:column; gap:8px }
.field-stack{ display:flex; flex-direction:column; gap:12px }
.align-end{ display:flex; align-items:flex-end }
.wrap{ flex-wrap:wrap }
.full{ width:100% }
.field > label{ display:block; margin-bottom:6px }
.field-note{ margin-top:6px; font-size:.85rem; line-height:1.3; color:#64748b }

/* Grid şablonları */
.form-grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px }
@media (max-width:768px){ .form-grid-2{ grid-template-columns:1fr } }

.form-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px }
@media (max-width:900px){ .form-grid-3{ grid-template-columns:1fr } }

.full-span,.col-span-2{ grid-column: span 2; }
.hidden{ display:none !important }

/* =========================
   Buttons
========================= */
.btn{
  border:1px solid var(--border);
  background:linear-gradient(90deg,var(--primary),var(--primary-600));
  color:#fff; padding:10px 16px; border-radius:12px; cursor:pointer; font-weight:700;
}
.btn:hover{ filter:brightness(1.05) }
.btn-block{ width:100%; height:44px }
.btn-light{ background:#fff; color:#111827 }
.btn-outline{ background:#fff; color:#111827; border:1px solid var(--border) }
.btn-accent{
  background: linear-gradient(90deg,#0ea5e9,#0284c7);
  color:#fff; border:1px solid #0891b2;
}
.btn-accent:hover{ filter:brightness(1.05) }
.actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center }
@media (max-width:560px){ .actions{ flex-direction:column; align-items:stretch } }

/* =========================
   Results / Stats
========================= */
.stat{
  display:flex; align-items:baseline; justify-content:space-between;
  padding:8px 0; border-bottom:1px dashed var(--border);
}
.stat:last-child{ border-bottom:none }
.stat .value{ font-weight:700; color:#0f172a }
.bignumber{ font-size:clamp(1.2rem, 1rem + 1.6vw, 2rem); font-weight:800; letter-spacing:0.2px }
.footer{ margin-top:10px; font-size:.86rem; color:var(--muted) }
.muted{ color:#64748b }

/* =========================
   Table (Payment / LTV)
========================= */
.table-wrap{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch }
.table{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums }
.table th,.table td{
  border-bottom:1px solid var(--border);
  padding:8px 10px; text-align:right; white-space:nowrap;
}
.table th:first-child,.table td:first-child{ text-align:center }
.table th:nth-child(2),.table td:nth-child(2){ text-align:center } /* Tarih */

/* LTV özel tablo */
.ltv-table{
  width:100%; border-collapse:collapse; table-layout:fixed; background:#fff;
  font-size:14px;
}
.ltv-table th,.ltv-table td{
  border:1px solid var(--border);
  padding:10px 12px; vertical-align:middle;
  white-space:normal; word-break:break-word; overflow-wrap:break-word;
  text-align:center;
}
.ltv-table th:first-child,.ltv-table td:first-child{ text-align:left }
@media (max-width:768px){
  .ltv-table{ font-size:13px }
  .ltv-table th,.ltv-table td{ padding:8px 8px }
}
@media (max-width:480px){
  .ltv-table{ font-size:12px }
  .ltv-table th,.ltv-table td{ padding:6px 6px }
}
@media (max-width:360px){
  .ltv-table{ font-size:11.5px }
  .ltv-table th,.ltv-table td{ padding:5px 6px }
}

/* =========================
   Segmented (Faiz Tipi)
========================= */
.segmented{
  width:100%; display:flex; gap:6px; align-items:center;
  background:#f3f4f6; border:1px solid #e5e7eb; border-radius:10px; padding:4px;
}
.seg-btn{
  flex:1; height:36px; border:none; border-radius:8px; background:transparent;
  font-weight:700; color:#374151; cursor:pointer;
}
.seg-btn.active{ background:#fff; color:#111827; box-shadow:0 1px 3px rgba(0,0,0,.06) }
.seg-btn:focus-visible{ outline:2px solid #621EEE33; outline-offset:2px }

/* =========================
   Bottom-sheet Calendar
========================= */
.picker-input{ text-align:left; cursor:pointer }
.sheet{ position:fixed; inset:0; display:none; z-index:9999 }
.sheet.show{ display:block }
.sheet-backdrop{ position:absolute; inset:0; background:rgba(2,6,23,.45) }
.sheet-panel{
  position:absolute; left:0; right:0; bottom:0; background:#fff;
  border-top-left-radius:16px; border-top-right-radius:16px;
  box-shadow:0 -10px 30px rgba(2,6,23,.25);
  padding:12px 14px 14px; max-height:80vh; display:flex; flex-direction:column;
  animation:sheetUp .18s ease-out;
}
@keyframes sheetUp{
  from{ transform:translateY(12px); opacity:.9 }
  to{ transform:translateY(0); opacity:1 }
}
.sheet-handle{ width:44px; height:4px; background:#e5e7eb; border-radius:999px; margin:4px auto 10px }
.sheet-header{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px }
.nav-icon{ width:36px; height:36px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; font-size:18px }
.month-label{ font-weight:800; letter-spacing:.2px }
.calendar{ user-select:none }
.cal-head{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; color:#64748b; font-size:.9rem; margin-bottom:6px; text-align:center }
.cal-body{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px }
.cal-day{
  height:40px; display:flex; align-items:center; justify-content:center; border-radius:10px; cursor:pointer;
  border:1px solid #e5e7eb; background:#fff;
}
.cal-day.empty{ border:none; background:transparent; cursor:default }
.cal-day:hover{ border-color:#c7d2fe; box-shadow:0 0 0 3px rgba(98,30,238,0.12) inset }
.cal-day.today{ border-color:#a78bfa; box-shadow:0 0 0 2px rgba(98,30,238,0.18) inset; font-weight:700 }
.cal-day.selected{ background:linear-gradient(90deg,var(--primary),var(--primary-600)); color:#fff; border-color:transparent }

/* Masaüstünde modal gibi ortala */
@media (min-width:900px){
  .sheet-backdrop{ background:rgba(2,6,23,.5) }
  .sheet-panel{
    left:50%; right:auto; bottom:auto; top:50%;
    transform:translate(-50%,-50%);
    width:clamp(360px,80vw,560px);
    max-height:90vh; border-radius:16px; padding:16px 18px 18px;
  }
}
@media (min-width:1400px){
  .sheet-panel{ width:520px }
}
@media (prefers-reduced-motion:reduce){
  .sheet-panel{ animation:none !important }
}

/* =========================
   Right-side Promo
========================= */
.promo-card{
  background:#fff; border:1px solid var(--border); border-radius:16px; padding:20px;
  box-shadow:0 10px 24px rgba(2,6,23,0.06); height:100%;
  display:flex; flex-direction:column; gap:12px;
}
.promo-title{
  margin:0; font-size:clamp(1.2rem,.6rem + 1.4vw,1.6rem);
  font-weight:900; color:#1f2937; text-align:center;
}
.promo-sub{ margin:0; color:#334155 }
.promo-body{
  display:grid; grid-template-columns:6fr 4fr; align-items:center; gap:16px;
}
@media (max-width:900px){ .promo-body{ grid-template-columns:1fr } }
.promo-text .promo-sub{ margin:0; color:#334155; line-height:1.5; font-size:1rem }
.promo-text ul{ padding-left:18px; margin:8px 0 }
.promo-shot{ display:flex; align-items:center; justify-content:center; background:#fff }
.promo-shot img{ width:100%; height:auto; max-height:420px; object-fit:contain; border-radius:12px }
@media (max-width:900px){ .promo-shot img{ max-height:320px } }

/* Store badges */
.promo-card .store-row{
  display:flex; flex-direction:row; justify-content:center; align-items:center;
  gap:12px; flex-wrap:nowrap; margin-top:8px;
}
.promo-card .store-row a{ display:inline-flex; flex:0 0 auto; width:auto }
.promo-card .store-row img{ height:44px; width:auto; display:block }
@media (max-width:420px){
  .promo-card .store-row{ flex-wrap:wrap }
}
@media (max-width:360px){
  .promo-card .store-row img{ height:40px }
  .promo-card .store-row{ gap:10px }
}

/* =========================
   Blog listesi
========================= */
.blog-list,.blog-list-ul{ margin:0 }
.blog-list-li{ margin-bottom:20px }
.blog-list-li a{ color:#333; font-size:14px }
.blog-list-li a:hover{ color:#6200EE; text-decoration:underline }
.blog-list-h3{ font-size:18px; margin-bottom:30px; color:#6200EE }

/* =========================
   Accessible helpers
========================= */
.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;
}

/* =========================
   Results (Pie + Legend)
========================= */
.results-grid{
  display:grid; grid-template-columns:minmax(0,4fr) minmax(0,2fr);
  gap:24px; align-items:center;
}
@media (max-width:900px){ .results-grid{ grid-template-columns:1fr } }

.results-left{ min-width:0 }
.results-right{
  min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden;
}

.pie-box{
  position:relative; width:100%; max-width:460px; aspect-ratio:1/1; margin-inline:auto; overflow:hidden;
}
.pie-box canvas{
  position:absolute; inset:0; width:100% !important; height:100% !important; display:block;
}

.legend{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:10px; font-weight:600;
}
.legend .item{ display:flex; align-items:center; gap:8px; color:#0f172a; font-size:.98rem }
.legend .swatch{ width:12px; height:12px; border-radius:3px; display:inline-block; border:1px solid rgba(0,0,0,.08) }

/* =========================
   Mobil özel (filter panel, nav kısayollar + NAV SCROLL)
========================= */
@media (max-width:768px){
  /* filtre panel varsayılanları */
  #filter-panel-background{
    display:none; position:fixed; left:0; top:0; width:0; height:100%;
    background:#f9f9f9; border-right:1px solid #ddd; z-index:1999; transition:transform 1.3s ease;
  }
  #filter-panel{
    display:none; position:fixed; top:64px; bottom:75px; left:0; width:0;
    height:calc(100% - 137px); padding:10px; overflow-y:auto; background:#f9f9f9; border-right:1px solid #ddd;
    z-index:2000; transition:transform 1.3s ease;
  }
  .container{
    width:100%; height:100%; margin-top:0px; padding:16px; background:#fff; border-radius:10px;
  }

  .layout{display:grid; gap:18px; margin-top:64px}
  /* NAV: yatay kaydırmalı, ikon-only */
  .navigation{
    height:56px;
    padding:0 6px;
    gap:0;

    white-space:nowrap;           /* satır kırılmasın */
    overflow-x:auto;              /* yatay kaydır */
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }

  .navigation a.nav-buttons,
  .navigation a.nav-buttons-home{
    display:inline-flex;
    align-items:center; justify-content:center;
    flex:0 0 auto;                /* shrink yok */
    min-width:auto !important;    /* 100px kuralını ez */
    height:56px;
    padding:0 10px;
    background:transparent;
    border-radius:8px;
    text-decoration:none;
    scroll-snap-align:center;
  }

  /* metinleri gizle (yer kazancı) */
  .navigation a.nav-buttons span,
  .navigation a.nav-buttons-home span{ display:none; }

  /* ikonları bir tık büyüt */
  .navigation .icon{ width:22px; height:22px; }

  /* logo kompakt ve sabit genişlik */
  #page-logo{
    height:32px; width:auto; padding:0; margin:0 6px 0 0; object-fit:contain;
    flex:0 0 auto;
  }

  .navigation a[aria-current="page"]{ background:rgba(255,255,255,0.15); }

  /* iOS scrollbar gizle */
  .navigation::-webkit-scrollbar{ display:none; }

  /* mobilde eski kısa yol buton stilleri (gerekirse) */
  .nav-buttons:hover{ background:#eead0e }
  .button-filter-mobile-container{
    margin-top:20px; display:flex; gap:10px; justify-content:center;
  }
  .button-filter-mobile{
    width:calc(50% - 5px); display:flex; align-items:center; justify-content:center;
    padding:5px 10px; font-size:14px; color:#424242; background:#f1f3f4; border:0; border-radius:10px; cursor:pointer;
    transition: background-color .3s ease;
  }
}

/* =========================
   Footer (policy links)
========================= */
.footer .policy-links{
  text-align:center; padding:8px; border-top:1px solid #ddd;
  font-size:12px; color:#777; display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
}
.footer .policy-links a{ color:#777; text-decoration:none }
.footer .policy-links a:hover{ text-decoration:underline }

/* Expandable başlıkları */
details > summary{ list-style:none; margin-top:10px }
details > summary::-webkit-details-marker{ display:none; }

.exp-sum{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* ok simgesi (mask ile ikon) */
.exp-sum::before{
  content:"";
  width:12px; height:12px;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 5l6 5-6 5z"/></svg>') no-repeat center/contain;
  background: var(--primary);
  transition: transform .15s ease;
  display:inline-block;
  transform: translateY(-1px);
}

/* açıkken oku döndür */
details[open] .exp-sum::before{ transform: rotate(90deg); }

/* başlık metni */
.exp-title{
  font-weight:700; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem); line-height:1.3;
  color:#111827;
}

/* hover/active durumları */
.exp-sum:hover{ background:#f9fafb; border-color:#d1d5db; }
.exp-sum:active{ background:#f3f4f6; }

/* klavye erişilebilirlik */
.exp-sum:focus-visible{
  outline:none; box-shadow:0 0 0 3px rgba(98,30,238,.18); border-color: var(--primary);
}

/* özet içeriği boşluk */
details > div{ margin-top:10px; }

/* açıkken vurgu */
details[open] .exp-sum{
  border-color: var(--primary);
  box-shadow: inset 0 0 0 0 var(--primary);
}

/* Global anchor rengi */
a{ color:var(--brand); text-decoration:none }





#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #6200EE;
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

#cookie-banner p{
    color: #fff;
    text-align: left;

}

#cookie-banner .div-button{
    display: flex;
    flex-direction: column;

}
#cookie-banner .cookieButton{
    background: #FFFFFF;
    border: none;
    color: #000;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}
#cookie-banner .cookieButton2{
    background: #e8e8e8;
    border: none;
    color: #000;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

#cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 10px 15px; /* Yan ve üst boşluklar optimize edildi */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%; /* Mobil görünümde daha fazla genişlik */
    max-width: 600px; /* Genişlik artırıldı */
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    font-family: 'Poppins', sans-serif;
}

#cookie-settings-panel h2 {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

#cookie-settings-panel p {
    font-size: 13px; /* Daha kompakt bir metin görünümü */
    color: #555;
    line-height: 1.6;
    margin: 5px 0; /* Daha dar boşluklar */
    padding: 0;
}

#cookie-settings-panel label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

#cookie-settings-panel input[type="checkbox"] {
    margin-right: 10px;
}

#cookie-settings-panel a {
    color: #6200EE;
    text-decoration: underline;
}

#cookie-settings-panel button {
    background: #6200EE;
    border: none;
    color: #fff;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

#cookie-settings-panel button:hover {
    background: #5e00e0;
}

#cookie-settings-panel button:nth-child(2) {
    background: #ccc;
    color: #333;
}

#cookie-settings-panel button:nth-child(2):hover {
    background: #bbb;
}

/* Switch Tasarımı */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6200EE; /* Ana renginiz */
}

input:focus + .slider {
    box-shadow: 0 0 1px #6200EE;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.switch-label {
    font-size: 14px;
    color: #333;
    margin-left: 10px;
    vertical-align: middle;
}


/* Masaüstü görünüm */
@media screen and (min-width: 1024px) {
    #cookie-settings-panel {
        max-height: 80vh; /* Panelin maksimum yüksekliği ekranın %80’i kadar */
        overflow-y: auto; /* Dikey kaydırma ekleyin */
        width: 60%;

    }


    #cookie-banner {
        display: none;
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #6200EE;
        color: #fff;
        padding: 20px;
        text-align: center;
        z-index: 1000;
    }
    #cookie-banner p{
        width: 100%;
        color: #fff;
        left: 24px;
        text-align: left;

    }

    #cookie-banner .div-button{
        width: 520px;
        right: 24px;
        display: flex;
        flex-direction: row;

    }
    #cookie-banner .cookieButton{
        background: #FFFFFF;
        border: none;
        color: #000;
        padding: 10px 20px;
        margin-top: 20px;
        margin-right: 20px;
        font-size: 16px;
        margin-left: auto;
        cursor: pointer;
        border-radius: 5px;
        width: 240px;
        text-align: center;
    }
    #cookie-banner .cookieButton2{
        background: #e8e8e8;
        border: none;
        color: #000;
        padding: 10px 20px;
        margin-top: 20px;
        margin-right: 20px;
        font-size: 16px;
        cursor: pointer;
        border-radius: 5px;
        width: 240px;
        text-align: center;
    }

}

