/* YouTube Gelir Hesaplama: girdi, sonuç ve analiz panellerinden oluşan tek ekran hesaplayıcı.
   Yalnız bu sayfada yüklenir; renkler sitenin --brand ailesinden gelir. */

[data-tool="youtube-gelir-hesaplama"] {
  --yt-line: #ece8e3;
  --yt-line-2: #e3ded8;
  --yt-soft: #f5f3f0;
  --yt-soft-2: #faf9f7;
  --yt-radius: 20px;
  --yt-shadow: 0 1px 2px #16110c08, 0 22px 44px -32px #16110c4d;
  --yt-grad: linear-gradient(135deg, #ff8124 0%, #ff6b00 48%, #e65300 100%);
  --yt-red: #e8002d;
}

[data-tool="youtube-gelir-hesaplama"] [hidden] { display: none !important; }
.panel--tool:has(> [data-tool="youtube-gelir-hesaplama"]) { padding: 0; border: 0; background: transparent; box-shadow: none; }
[data-tool="youtube-gelir-hesaplama"] > .tool__actions--utility { display: none !important; }
[data-tool="youtube-gelir-hesaplama"] .icon { width: 16px; height: 16px; flex: none; }

/* ---------- yerleşim ---------- */

.yt-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "input" "result" "analysis";
  gap: 16px;
  align-items: start;
}
.yt-input { grid-area: input; }
.yt-result { grid-area: result; }
.yt-analysis { grid-area: analysis; }

@media (min-width: 900px) {
  .yt-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "input result" "input analysis"; }
}
@media (min-width: 1180px) {
  .yt-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "input result analysis"; align-items: stretch; }
  .yt-result, .yt-analysis, .yt-input { display: flex; flex-direction: column; }
  .yt-result > .yt-actions { margin-top: auto; padding-top: 12px; }
}

/* Ekrana oturma: açılışta üç panel başlığın altındaki pencere yüksekliğini doldurur (--yt-top, tool.js).
   Alt sınırdır; İkisi gibi seçeneklerle içerik uzarsa paneller içeride kaymaz, doğal olarak uzar. */
@media (min-width: 1180px) and (min-height: 600px) {
  .yt-app { min-height: clamp(500px, calc(100vh - var(--yt-top, 130px) - 18px), 780px); }
  @supports (height: 100dvh) {
    .yt-app { min-height: clamp(500px, calc(100dvh - var(--yt-top, 130px) - 18px), 780px); }
  }
}

.yt-pane {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius);
  background: #fff;
  box-shadow: var(--yt-shadow);
}

/* ---------- ortak parçalar ---------- */

.yt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.yt-label .icon { width: 15px; height: 15px; color: var(--brand-700); }
.yt-label--sm { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.yt-opt { color: var(--ink-muted); font-size: 11.5px; font-weight: 500; }
.yt-hint { margin: 6px 0 0; color: var(--ink-muted); font-size: 11.5px; line-height: 1.5; }
.yt-input .field { margin: 0; }
.yt-input .field__error { margin-top: 6px; }

.yt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.yt-seg {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--yt-soft);
}
.yt-seg__item { position: relative; flex: 1 1 0; margin: 0; }
.yt-seg__item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.yt-seg__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s var(--fed), color .2s var(--fed), box-shadow .2s var(--fed);
}
.yt-seg__item:hover span { color: var(--ink); }
.yt-seg__item input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #16110c14, 0 4px 12px -6px #16110c33; }
.yt-seg__item input:checked + span .icon { color: var(--yt-red); }
.yt-seg__item input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.yt-block { margin-bottom: 10px !important; }
.yt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.yt-head .yt-label { margin: 0; }

.yt-mini {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #efece8;
}
.yt-mini label { position: relative; margin: 0; }
.yt-mini input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.yt-mini span { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 7px; color: var(--ink-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.yt-mini input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #16110c1f; }
.yt-mini input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

.tool__form .yt-num {
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.yt-range {
  --yt-fill: 50%;
  width: 100%;
  height: 24px;
  margin: 4px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.yt-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) 0 var(--yt-fill), #e7e2dc var(--yt-fill) 100%); }
.yt-range::-moz-range-track { height: 6px; border-radius: 999px; background: #e7e2dc; }
.yt-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
.yt-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 2px 6px #16110c40, 0 0 0 1px #ff6b0040; -webkit-appearance: none; appearance: none; }
.yt-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 2px 6px #16110c40; }
.yt-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }

.yt-perpost { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.yt-perpost .yt-label { margin: 0; }
.yt-stepper {
  display: flex;
  align-items: stretch;
  width: 150px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--yt-line-2);
  border-radius: 12px;
  background: var(--yt-soft-2);
}
.yt-stepper button { flex: none; width: 38px; border: 0; background: transparent; color: var(--ink-2); font-size: 18px; font-weight: 600; cursor: pointer; }
.yt-stepper button:hover { background: #f0ece7; color: var(--ink); }
.yt-stepper button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tool__form .yt-stepper .input { height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; font-weight: 800; text-align: center; }

.yt-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.yt-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool__form .yt-select { height: 44px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }

.yt-rpm {
  position: relative;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--yt-line);
  border-radius: 14px;
  background: var(--yt-soft-2);
}
.yt-rpm__auto { display: grid; gap: 3px; margin: 6px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.yt-rpm__auto b { color: var(--ink); font-weight: 750; }
.yt-rpm__auto i { color: var(--ink-muted); font-style: normal; }
.yt-rpm__tag {
  position: absolute;
  top: 16px;
  right: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
}
.yt-rpm__own { display: grid; gap: 8px; margin-top: 8px; }

.yt-money { display: flex; align-items: center; gap: 6px; }
.yt-money .input { flex: 1 1 auto; min-width: 0; height: 42px; border-radius: 12px; }
.tool__form .yt-money .select { flex: 0 0 74px; height: 42px; border-radius: 12px; padding-right: 30px; background-position: right 10px center; font-weight: 700; }
.yt-unit { flex: none; color: var(--ink-2); font-size: 13px; font-weight: 700; }

.yt-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.yt-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.yt-switch__ui { position: relative; flex: none; width: 36px; height: 21px; border-radius: 999px; background: #d8d2cb; transition: background .2s var(--fed); }
.yt-switch__ui::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #16110c40; transition: transform .22s var(--fed); }
.yt-switch input:checked + .yt-switch__ui { background: var(--brand); }
.yt-switch input:checked + .yt-switch__ui::after { transform: translateX(15px); }
.yt-switch input:focus-visible + .yt-switch__ui { outline: 2px solid var(--brand); outline-offset: 2px; }

.yt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yt-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--yt-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.yt-chip:hover { border-color: #cfc8c0; color: var(--ink); background: var(--yt-soft-2); }
.yt-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.yt-link:hover { text-decoration: underline; text-underline-offset: .18em; }
.yt-link .icon { width: 14px; height: 14px; }

/* Gelişmiş ayarlar: formun üzerine açılır, sütun boyunu değiştirmez */
.yt-more { margin-top: 12px; border: 1px solid var(--yt-line); border-radius: 14px; background: var(--yt-soft-2); }
.yt-more > summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 12px; list-style: none; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 700; }
.yt-more > summary::-webkit-details-marker { display: none; }
.yt-more > summary .icon { width: 17px; height: 17px; color: var(--brand-700); }
.yt-more__t { white-space: nowrap; }
.yt-more > summary small { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--ink-muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.yt-more.has-values > summary small { color: var(--brand-700); font-weight: 650; }
.yt-more > summary .yt-caret { width: 15px; height: 15px; color: var(--ink-muted); }
.yt-more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 12px; }
.yt-more__body { display: grid; align-content: start; gap: 14px; }
.yt-input:has(.yt-more[open]) > :not(.yt-more) { display: none !important; }
.yt-more[open] { margin: 0; border: 0; background: transparent; }
.yt-more[open] > summary { display: none; }
.yt-more[open] > .yt-more__body { padding: 0; animation: yt-sheet .22s var(--fed); }
@keyframes yt-sheet { from { opacity: 0; transform: translateY(8px); } }
.yt-more__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--yt-line);
}
.yt-more__head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.yt-more__head strong .icon { width: 18px; height: 18px; color: var(--brand-700); }
.yt-cpm { padding: 12px; border: 1px dashed var(--yt-line-2); border-radius: 14px; background: var(--yt-soft-2); }
.yt-cpm .yt-row3 .input { height: 40px; border-radius: 11px; }
.yt-cpm__out { display: flex; align-items: center; height: 40px; color: var(--brand-700); font-size: 16px; font-weight: 800; }
.yt-cpm .yt-pill { margin-top: 10px; }

.yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--yt-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.yt-pill:hover { background: var(--yt-soft-2); }
.yt-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.yt-pill--brand { border-color: transparent; background: var(--yt-grad); box-shadow: 0 10px 20px -10px #ff6b00b3; color: #fff; }
.yt-pill--brand:hover { background: var(--yt-grad); filter: saturate(1.1); }

.yt-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: var(--ink-muted); font-size: 11.5px; text-align: center; }
.yt-privacy .icon { width: 14px; height: 14px; color: var(--ok); }
@media (min-width: 1180px) { .yt-privacy { margin-top: auto; padding-top: 12px; } }

/* ---------- sonuç ---------- */

.yt-result {
  background:
    radial-gradient(120% 60% at 100% 0%, #fff1e6 0%, #ffffff00 55%),
    #fff;
}
.yt-result__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.yt-result__title { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 750; }
.yt-status { padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.yt-status[data-state="own"] { background: #e3f6ec; color: #17734b; }
.yt-status[data-state="error"] { background: #fde8e5; color: #a73529; }

.yt-hero { margin-top: 6px; }
.yt-hero__value {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.yt-hero__sub { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; font-weight: 550; }

.yt-band { position: relative; height: 10px; margin: 16px 6px 0; border-radius: 999px; background: linear-gradient(90deg, #ffd9bd, #ff9a4d 50%, #ff6b00); }
.yt-band__mark {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px #16110c59;
  transition: left .35s var(--fed);
}
.yt-band__labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.yt-band__labels span { display: grid; color: var(--ink-muted); font-size: 11px; font-weight: 600; }
.yt-band__labels span:nth-child(2) { text-align: center; }
.yt-band__labels span:last-child { text-align: right; }
.yt-band__labels b { color: var(--ink); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.yt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.yt-stat { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #f0ece7; border-radius: 14px; background: var(--yt-soft-2); }
.yt-stat__k { color: var(--ink-muted); font-size: 11.5px; font-weight: 650; }
.yt-stat__v { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.yt-sec { margin: 16px 0 8px; color: var(--ink-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.yt-split__bar { display: flex; gap: 3px; height: 14px; overflow: hidden; border-radius: 999px; background: var(--yt-soft); }
.yt-split__seg { min-width: 4px; transition: flex-grow .35s var(--fed); }
.yt-split__seg--video { background: var(--brand); }
.yt-split__seg--shorts { background: var(--yt-red); }
.yt-split__seg--diger { background: #7c3aed; }
.yt-split__seg--kesinti { background: repeating-linear-gradient(135deg, #cfc8c0 0 4px, #e7e2dc 4px 8px); }
.yt-split__legend { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.yt-split__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; }
.yt-split__item i { width: 10px; height: 10px; border-radius: 3px; }
.yt-split__item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.yt-split__item--video i { background: var(--brand); }
.yt-split__item--shorts i { background: var(--yt-red); }
.yt-split__item--diger i { background: #7c3aed; }
.yt-split__item--kesinti i { background: #cfc8c0; }
.yt-split__item--kesinti b { color: var(--ink-muted); }

.yt-adsense { margin: 12px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.yt-adsense b { color: var(--ink); }
.yt-adsense:empty { display: none; }

.yt-steps { margin-top: 10px; border: 1px solid var(--yt-line); border-radius: 12px; background: var(--yt-soft-2); }
.yt-steps > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; list-style: none; cursor: pointer; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.yt-steps > summary::-webkit-details-marker { display: none; }
.yt-steps > summary .icon { color: var(--brand-700); }
.yt-steps > summary .yt-caret { margin-left: auto; color: var(--ink-muted); transition: transform .2s var(--fed); }
.yt-steps[open] > summary .yt-caret { transform: rotate(180deg); }
.yt-steps > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.yt-steps__list { display: grid; gap: 6px; margin: 0; padding: 0 12px 12px 30px; color: var(--ink-2); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.yt-steps__list b { color: var(--ink); }
.yt-steps__list i { color: var(--ink-muted); font-style: normal; }

.yt-actions { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) 42px; gap: 6px; margin-top: 12px; }
.yt-act--icon { padding: 0; }
.yt-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid var(--yt-line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.yt-act span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yt-act:hover:not(:disabled) { background: var(--yt-soft-2); border-color: #cfc8c0; }
.yt-act:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.yt-act:disabled { opacity: .45; cursor: not-allowed; }
.yt-act--brand { border-color: transparent; background: var(--yt-grad); box-shadow: 0 10px 20px -12px #ff6b00cc; color: #fff; }
.yt-act--brand:hover:not(:disabled) { background: var(--yt-grad); filter: saturate(1.1); }

/* ---------- analiz ---------- */

.yt-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--yt-soft); }
.yt-tab {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.yt-tab span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yt-tab { gap: 4px; padding: 0 4px; font-size: 12px; }
.yt-tab .icon { width: 14px; height: 14px; }
.yt-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #16110c1f; }
.yt-tab[aria-selected="true"] .icon { color: var(--brand); }
.yt-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.yt-panel { display: grid; align-content: start; gap: 10px; margin-top: 14px; }
.yt-panel__head { display: flex; align-items: center; justify-content: space-between; }
.yt-panel__head .yt-label { margin: 0; }
.yt-panel__lead { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.yt-panel__total { margin: 0; color: var(--ink-2); font-size: 12.5px; }
.yt-panel__total b { color: var(--ink); }

.yt-chart svg { display: block; width: 100%; height: auto; }
.yt-chart rect { fill: #ffc9a3; transition: height .3s var(--fed), y .3s var(--fed); }
.yt-chart rect.is-now { fill: var(--brand); }
.yt-chart g:hover rect { fill: var(--brand-700); }
.yt-chart__x { fill: #8c8378; font-family: var(--font-body); font-size: 10px; font-weight: 600; }
.yt-chart__v { fill: var(--ink); font-family: var(--font-body); font-size: 10.5px; font-weight: 800; }

.yt-bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.yt-bar { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 11.5px; }
.yt-bar__ad { overflow: hidden; color: var(--ink-2); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.yt-bar__track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--yt-soft); }
.yt-bar__fill { display: block; height: 100%; border-radius: 999px; background: #ffc9a3; transition: width .35s var(--fed); }
.yt-bar__v { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.yt-bar.is-sel .yt-bar__ad { color: var(--ink); font-weight: 800; }
.yt-bar.is-sel .yt-bar__fill { background: var(--yt-grad); }

.yt-goal { display: grid; gap: 6px; }
.yt-goal__big { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, #fff1e4, #fff8f2); border: 1px solid #ffd9bd; }
.yt-goal__big span { color: var(--brand-700); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.yt-goal__big strong { color: var(--ink); font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.yt-goal__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid #f2efeb; color: var(--ink-2); font-size: 12.5px; }
.yt-goal__row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.yt-meter { height: 8px; overflow: hidden; border-radius: 999px; background: var(--yt-soft); }
.yt-meter span { display: block; height: 100%; border-radius: 999px; background: var(--yt-grad); transition: width .35s var(--fed); }
.yt-panel .yt-money .input { height: 44px; font-size: 16px; font-weight: 800; }

.yt-ypp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yt-ypp .field:nth-child(4) { grid-column: 1 / span 1; }
.yt-eta { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--yt-soft); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.yt-eta b { color: var(--ink); }

.yt-miles { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.yt-miles th { padding: 0 6px 6px; color: var(--ink-muted); font-size: 11px; font-weight: 700; text-align: right; }
.yt-miles th:first-child, .yt-miles td:first-child { text-align: left; }
.yt-miles td { padding: 6px; border-top: 1px solid #f2efeb; color: var(--ink); font-weight: 650; text-align: right; }
.yt-miles td:first-child { color: var(--brand-700); font-weight: 800; }
.yt-scen { margin-top: 4px; }
.yt-scen th[scope="row"] { padding: 6px; border-top: 1px solid #f2efeb; color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: left; }
.yt-scen tr.is-mid th, .yt-scen tr.is-mid td { color: var(--ink); background: #fff6ee; }
.yt-scen tr.is-mid td { font-weight: 800; }
.yt-ypp .input { height: 40px; border-radius: 11px; font-weight: 700; }
.yt-ypp .field { margin: 0; }
.yt-progress { display: grid; gap: 8px; }
.yt-prog__top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.yt-prog__top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.yt-prog.is-ok .yt-meter span { background: var(--ok); }
.yt-or { margin: -2px 0; color: var(--ink-muted); font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.yt-verdict { margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff4d6; color: #7a4f00; font-size: 12px; font-weight: 650; line-height: 1.45; }
.yt-verdict.is-ok { background: #e3f6ec; color: #17734b; }

/* Mobil alt çubuk: sonuç kartı ekranda değilken aylık tutar görünür kalır */
.yt-peek {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: #16110c;
  box-shadow: 0 18px 36px -12px #16110c99;
  color: #fff;
  text-decoration: none;
  animation: yt-peek-in .25s var(--fed);
}
.yt-peek__k { color: #ffffffb3; font-size: 12px; font-weight: 600; }
.yt-peek__v { margin-left: auto; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yt-peek .icon { width: 18px; height: 18px; color: #ff9a4d; }
.yt-peek:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@keyframes yt-peek-in { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 900px) { .yt-peek { display: none !important; } }

/* ---------- dar ekranlar ---------- */

@media (max-width: 899px) {
  .yt-pane { padding: 14px; border-radius: 18px; }
}
@media (max-width: 420px) {
  .yt-seg__item span { gap: 5px; font-size: 12.5px; }
  .yt-row2 { grid-template-columns: minmax(0, 1fr); }
  .yt-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 42px; }
  .yt-act--brand span { display: none; }
  .yt-ypp { grid-template-columns: minmax(0, 1fr); }
  .yt-tab .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yt-band__mark, .yt-split__seg, .yt-bar__fill, .yt-meter span, .yt-chart rect, .yt-more[open] > .yt-more__body { transition: none !important; animation: none !important; }
}
