/* Mükellef360 — fiyat hesaplayıcı (RFC-W10 §P8). Önek: m360-price · Renkler: brand.css :root (--m360-*)
   Mantık: assets/js/site-pricing.js ([data-m360-price]); bu dosya yalnız görünüm. Sayfa CSS'lerine dokunulmaz.
   Slider konumu kökte --m360-price-p (0..1); dolgu ve yay bunu okur. */

.m360-price {
  --m360-price-p: .1639;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
  color: var(--m360-navy);
  font-variant-numeric: tabular-nums;
}
.m360-price *, .m360-price *::before, .m360-price *::after { box-sizing: border-box; }
.m360-price [hidden] { display: none !important; }

/* ---------- Sol: hesaplayıcı kartı ---------- */
.m360-price-calc {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 36px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #e3ecf5;
  box-shadow: 0 48px 90px -48px rgba(16, 40, 64, .34), 0 10px 28px -14px rgba(16, 40, 64, .12);
}
.m360-price-calc::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--m360-amber), var(--m360-blue));
}
.m360-price-label { display: block; margin: 0 0 14px; font-size: 15px; line-height: 1.3; font-weight: 500; color: #4a6078; }

.m360-price-countrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.m360-price-countwrap { display: inline-flex; align-items: baseline; gap: 10px; }
.m360-price-countwrap small { font-size: 16px; font-weight: 500; color: #566a80; }
.m360-price-bubble {
  display: inline-block; min-width: 2.5ch;
  font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--m360-navy);
  transform-origin: left center;
}
.m360-price-stepper { display: inline-flex; align-items: center; gap: 8px; }
.m360-price-step {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #d5e2ef; background: #f6f9fc; color: var(--m360-navy);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.m360-price-step:hover { background: #fff; border-color: var(--m360-blue); }
.m360-price-step:active { transform: scale(.94); }
.m360-price-step:focus-visible, .m360-price-numinput:focus-visible, .m360-price-seg button:focus-visible { outline: 2px solid var(--m360-blue); outline-offset: 2px; }
.m360-price-numinput {
  -moz-appearance: textfield; appearance: textfield;
  width: 88px; height: 44px; padding: 0 8px; text-align: center;
  border: 1px solid #d5e2ef; border-radius: 12px; background: #fff;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--m360-navy);
}
.m360-price-numinput::-webkit-outer-spin-button, .m360-price-numinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Slider ---------- */
.m360-price-slider { margin-top: 30px; }
.m360-price-track { position: relative; padding-top: 34px; }
.m360-price-marker {
  position: absolute; top: 0; z-index: 0;
  left: calc(13px + (100% - 26px) * .16388);
  width: 0; height: 100%; pointer-events: none;
}
.m360-price-marker-label {
  position: absolute; top: 0; left: -8px; white-space: nowrap;
  padding: 3px 10px; border-radius: 99px;
  background: var(--m360-amber-soft); color: var(--m360-amber-ink);
  font-size: 12px; line-height: 18px; font-weight: 500;
}
.m360-price-marker-tick {
  position: absolute; top: 24px; left: -1px; width: 2px; height: 38px; border-radius: 2px;
  background: var(--m360-amber);
}
.m360-price-marker-tick::after {
  content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--m360-amber); box-shadow: 0 0 0 0 rgba(242, 153, 74, .55);
}
.m360-price.is-over .m360-price-marker-label { background: var(--m360-amber); color: var(--m360-navy-deep); }

.m360-price-range {
  --m360-fill: calc(13px + (100% - 26px) * var(--m360-price-p));
  position: relative; z-index: 1;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 26px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.m360-price-range:focus { outline: none; }
.m360-price-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--m360-blue-deep) 0, var(--m360-blue) var(--m360-fill), #dce8f3 var(--m360-fill));
}
.m360-price-range::-moz-range-track { height: 8px; border-radius: 99px; background: #dce8f3; }
.m360-price-range::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--m360-blue-deep), var(--m360-blue)); }
.m360-price-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 4px solid var(--m360-blue);
  box-shadow: 0 6px 14px -4px rgba(11, 95, 176, .55);
  transition: transform .15s ease, box-shadow .2s ease;
}
.m360-price-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--m360-blue);
  box-shadow: 0 6px 14px -4px rgba(11, 95, 176, .55);
}
.m360-price-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.m360-price-range:active::-webkit-slider-thumb { transform: scale(1.14); }
.m360-price-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(0, 136, 232, .30), 0 6px 14px -4px rgba(11, 95, 176, .55); }
.m360-price-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(0, 136, 232, .30); }

.m360-price-ticks { position: relative; height: 22px; margin-top: 8px; font-size: 13px; line-height: 20px; color: #566a80; }
.m360-price-ticks span { position: absolute; top: 0; left: calc(13px + (100% - 26px) * var(--f)); transform: translateX(-50%); white-space: nowrap; }
.m360-price-ticks span:first-child { transform: translateX(-13px); }
.m360-price-ticks span.is-base { color: var(--m360-amber-ink); font-weight: 600; }

/* ---------- Fiyat bloğu ---------- */
.m360-price-out { margin-top: 26px; padding-top: 26px; border-top: 1px dashed #d5e2ef; }
.m360-price-out-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.m360-price-small { font-size: 15px; font-weight: 500; color: #4a6078; }
.m360-price-seg { display: inline-flex; padding: 4px; border-radius: 99px; background: #eef4fa; }
.m360-price-seg button {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  padding: 8px 16px; border-radius: 99px; background: transparent;
  font: inherit; font-size: 14px; line-height: 1.2; font-weight: 500; color: #4a6078;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.m360-price-seg button[aria-pressed="true"] { background: #fff; color: var(--m360-navy); box-shadow: 0 2px 8px -2px rgba(16, 40, 64, .25); }
.m360-price-totalrow { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.m360-price-total {
  display: inline-block; font-size: clamp(48px, 6.2vw, 72px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em;
  color: var(--m360-navy); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.m360-price-cur { font-size: clamp(28px, 3.4vw, 40px); line-height: 1; font-weight: 500; color: var(--m360-blue-deep); }
.m360-price-per { margin: 6px 0 0; font-size: 16px; color: #4a6078; }
.m360-price-per b { font-weight: 600; color: var(--m360-navy); }
.m360-price-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.m360-price-extra {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px; background: var(--m360-amber-soft); color: var(--m360-amber-ink);
  font-size: 14px; line-height: 1.2; font-weight: 500;
}
.m360-price-extra::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--m360-amber); }
.m360-price-unit { font-size: 14px; color: #566a80; }
.m360-price-limit { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #f3f8fd; border: 1px solid #dbe8f4; font-size: 15px; line-height: 1.5; color: var(--m360-navy); }
.m360-price-limit a { color: var(--m360-blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.m360-price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Sağ: pakete dahil olanlar ---------- */
.m360-price-incl {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px;
  padding: 40px 36px 32px;
  border-radius: 28px; color: #fff;
  background: radial-gradient(120% 70% at 100% 0%, rgba(0, 136, 232, .30), rgba(0, 136, 232, 0) 60%), linear-gradient(160deg, #102840 0%, #0b2a4a 100%);
  box-shadow: 0 48px 90px -48px rgba(8, 24, 40, .6);
}
.m360-price-arc { position: absolute; z-index: -1; top: -96px; right: -96px; width: 340px; height: 340px; opacity: .7; pointer-events: none; transform: rotate(59deg); }
.m360-price-arc circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.m360-price-arc .m360-arc-bg { stroke: rgba(255, 255, 255, .09); }
/* Yay kartın içinde kalan ~150°'lik dilimde dolar (başlangıç 59°: sağ alt kenar).
   Renk: 50 mükellefe kadar yeşil; ~130 kehribar, ~200 ve üstü kırmızı. */
.m360-price-arc .m360-arc-fg {
  --m360-arc-t: clamp(0, (var(--m360-price-p) - .1639) / .5, 1);
  stroke: hsl(calc(142 - 142 * var(--m360-arc-t)) 70% 52%);
  stroke-dasharray: 100; stroke-dashoffset: calc(94 - 36 * var(--m360-price-p));
  transition: stroke-dashoffset .6s cubic-bezier(.22, 1, .36, 1), stroke .4s ease;
}
.m360-price-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.m360-price-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--m360-amber); }
.m360-price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.m360-price-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.m360-price-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--m360-amber); color: var(--m360-navy-deep); display: inline-flex; align-items: center; justify-content: center; }
.m360-price-check svg { width: 12px; height: 12px; }
.m360-price-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.m360-price-trust span { padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.2; color: rgba(255, 255, 255, .9); }

.m360-price-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 14px; line-height: 1.6; color: #566a80; }
.m360-price-more { margin: 16px 0 0; text-align: left; font-size: 15px; line-height: 1.5; color: #4a6078; }
.m360-price-more a { color: var(--m360-blue-deep); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(11, 95, 176, .3); transition: color .2s ease, border-color .2s ease; }
.m360-price-more a:hover { color: var(--m360-blue); border-bottom-color: currentColor; }

/* ---------- Animasyonlar (JS sınıfları) ---------- */
@keyframes m360-price-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 153, 74, .6); } 100% { box-shadow: 0 0 0 16px rgba(242, 153, 74, 0); } }
@keyframes m360-price-chip { 0% { opacity: 0; transform: translateX(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes m360-price-swap { 0% { opacity: .1; transform: translateY(8px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
.m360-price-marker-tick.is-pulse::after { animation: m360-price-pulse .7s ease-out 1; }
.m360-price-extra.is-in { animation: m360-price-chip .4s cubic-bezier(.22, 1, .36, 1) 1; }
.m360-price-total.is-swap { animation: m360-price-swap .35s ease-out 1; }

/* ---------- Butonlar (bu sayfalarda Webflow IX yok → CSS hover) ---------- */
.m360-price .primary-button .is-absolute, .m360-price .secondary-button .is-absolute { display: none; }
.m360-price .primary-button, .m360-price .secondary-button { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.m360-price .primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(11, 95, 176, .55); filter: saturate(1.08); }
.m360-price .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16, 40, 64, .45); }
.m360-price .primary-button:hover .primary-button-icon { transform: translate(2px, -2px) rotate(8deg); transition: transform .25s ease; }
.m360-price .primary-button:focus-visible, .m360-price .secondary-button:focus-visible { outline: 2px solid var(--m360-blue); outline-offset: 3px; }

/* İkincil buton: temel stiller yalnız home.css'te; bu sayfalarda bileşen kendi görünümünü taşır */
.m360-price .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 1px solid rgba(16, 40, 64, .2); border-radius: 99px;
  background: #fff; color: var(--m360-navy); font-size: 16px; line-height: 1; font-weight: 500; text-decoration: none;
}
.m360-price .secondary-button:hover { border-color: var(--m360-blue); }
.m360-price .secondary-button-text-wrapper { position: static; overflow: visible; }
.m360-price .secondary-button-icon-wrapper { display: flex; max-width: none; }
.m360-price .secondary-button-small-icon { display: flex; width: 14px; height: 14px; min-width: 14px; margin: 0; color: var(--m360-amber); }
.m360-price .secondary-button-big-icon { display: none; }

/* ---------- "Neler dahil" tablosu ---------- */
.m360-feature-table { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #e3ecf5; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -40px rgba(16, 40, 64, .25); }
.m360-feature-table th, .m360-feature-table td { padding: 16px 24px; text-align: left; font-size: 16px; line-height: 1.5; color: var(--m360-navy); border-bottom: 1px solid #edf3f9; }
.m360-feature-table thead th { background: #f3f8fd; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4a6078; }
.m360-feature-table tbody tr:last-child th, .m360-feature-table tbody tr:last-child td { border-bottom: 0; }
.m360-feature-table tbody th { font-weight: 500; }
.m360-feature-table th:last-child, .m360-feature-table td:last-child { width: 34%; }
.m360-feature-table td { color: #4a6078; }
.m360-feature-table .m360-price-check { vertical-align: middle; margin: 0 10px 0 0; }
.m360-feature-table .is-optional td { color: var(--m360-amber-ink); }
.m360-feature-table .is-optional td .m360-price-check { display: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 991px) {
  .m360-price { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .m360-price-incl { padding: 32px 28px 28px; }
}
@media (max-width: 479px) {
  .m360-price-calc { padding: 28px 20px 26px; border-radius: 22px; }
  .m360-price-incl { padding: 28px 22px 24px; border-radius: 22px; }
  .m360-price-bubble { font-size: 48px; }
  .m360-price-numinput { width: 72px; }
  .m360-price-ticks { font-size: 12px; }
  .m360-price-seg button { padding: 8px 12px; }
  .m360-price-cta > a { width: 100%; justify-content: center; }
  .m360-feature-table th, .m360-feature-table td { padding: 14px 16px; font-size: 15px; }
  .m360-feature-table th:last-child, .m360-feature-table td:last-child { width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .m360-price *, .m360-price *::before, .m360-price *::after { animation: none !important; transition: none !important; }
  .m360-price .primary-button:hover, .m360-price .secondary-button:hover { transform: none; }
}

/* ---- RFC-W10 review (Opus): sağ panel vurgu kartı + başlık genişliği ---- */
.m360-price-perk { margin-top: auto; margin-bottom: 1.25rem; display: flex; gap: .875rem; align-items: center;
  padding: 1rem 1.125rem; border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(242,153,74,.35); }
.m360-price-perk-dot { flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--m360-amber);
  box-shadow: 0 0 0 6px rgba(242,153,74,.18); }
.m360-price-perk-num { font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.m360-price-perk-txt { font-size: .875rem; line-height: 1.4; color: rgba(255,255,255,.8); }
.m360-price-perk + .m360-price-trust { margin-top: 0; }
.pricing-page-header-wrapper { max-width: 920px; }
