/* =====================================================================
   HESAPLAMA SAYFALARI ORTAK GÖRÜNÜM (calc-ui.css)
   _Layout yalnızca /hesaplamalar ve altındaki araçlarda yükler.
   Tailwind'den bağımsız düz CSS: npm build gerektirmez.
   Eşlik eden betik: wwwroot/js/calc-ui.js (OnxChart, sayı animasyonu).
   ===================================================================== */

:root {
    --onx-ink: #0f172a;
    --onx-ink-2: #334155;
    --onx-muted: #64748b;
    --onx-line: #e2e8f0;
    --onx-indigo: #4f46e5;
    --onx-blue: #2563eb;
    --onx-emerald: #059669;
    --onx-amber: #d97706;
    --onx-rose: #e11d48;
    --onx-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Sayfa arka planı: yavaş kayan ışık lekeleri + ızgara ---------- */
[data-calculator] section.onx-grid-bg,
.calc-hub-bg {
    position: relative;
    overflow-x: clip; /* hidden değil: sticky özet kartı çalışmaya devam etsin */
    isolation: isolate;
}

[data-calculator] section.onx-grid-bg::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 900px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(38% 42% at 18% 22%, rgba(79, 70, 229, .13), transparent 70%),
        radial-gradient(32% 38% at 82% 12%, rgba(16, 185, 129, .12), transparent 70%),
        radial-gradient(30% 34% at 60% 60%, rgba(37, 99, 235, .08), transparent 70%);
    animation: onxAurora 22s ease-in-out infinite alternate;
}

[data-calculator] section.onx-grid-bg::after {
    /* Hero arkasında akan sinüs dalgası (mühendislik hissi, çok hafif) */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 120px;
    height: 160px;
    z-index: -1;
    pointer-events: none;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='160' viewBox='0 0 640 160'%3E%3Cpath d='M0 80 C80 20 160 20 240 80 S400 140 480 80 S560 20 640 80' fill='none' stroke='%234f46e5' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M0 95 C80 55 160 55 240 95 S400 135 480 95 S560 55 640 95' fill='none' stroke='%2310b981' stroke-opacity='.10' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 640px 160px;
    animation: onxWave 18s linear infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

@keyframes onxAurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(-3%, 1%, 0) scale(1.02); }
}

@keyframes onxWave {
    from { background-position-x: 0; }
    to { background-position-x: -640px; }
}

/* ---------- Başlık ---------- */
[data-calculator] section.onx-grid-bg h1 {
    background: linear-gradient(100deg, #0f172a 0%, #1e293b 45%, #4338ca 75%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: onxTitleShine 9s ease-in-out infinite alternate;
    padding-bottom: .08em;
}

@keyframes onxTitleShine {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* ---------- Kartlar ---------- */
[data-calculator] .card-pop,
[data-calculator] section.onx-grid-bg .rounded-\[30px\].bg-white,
[data-calculator] section.onx-grid-bg .rounded-\[32px\].bg-white {
    transition: transform .45s var(--onx-ease), box-shadow .45s var(--onx-ease), border-color .3s;
}

[data-calculator] .card-pop:hover,
[data-calculator] section.onx-grid-bg .rounded-\[30px\].bg-white:hover {
    border-color: rgba(99, 102, 241, .28);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 60px -30px rgba(79, 70, 229, .35);
}

[data-calculator] .card-pop:focus-within {
    border-color: rgba(79, 70, 229, .45);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .07), 0 24px 60px -30px rgba(79, 70, 229, .4);
}

/* ---------- Girdiler ---------- */
[data-calculator] section.onx-grid-bg input[type="number"],
[data-calculator] section.onx-grid-bg input[type="text"],
[data-calculator] section.onx-grid-bg select {
    transition: border-color .2s, background-color .2s, box-shadow .25s var(--onx-ease);
}

[data-calculator] section.onx-grid-bg input[type="number"]:hover,
[data-calculator] section.onx-grid-bg select:hover {
    border-color: #a5b4fc;
}

[data-calculator] section.onx-grid-bg input[type="number"]:focus,
[data-calculator] section.onx-grid-bg input[type="text"]:focus,
[data-calculator] section.onx-grid-bg select:focus {
    background-color: #fff;
    border-color: var(--onx-indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    outline: none;
}

[data-calculator] section.onx-grid-bg input[type="range"] {
    accent-color: var(--onx-indigo);
}

/* Değeri değişen girdinin kısa vurgusu */
.onx-input-pulse {
    animation: onxInputPulse .6s var(--onx-ease);
}

@keyframes onxInputPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .35); }
    100% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
}

/* ---------- Canlı özet kartı (sağdaki koyu kart) ---------- */
[data-calculator] .sticky > .bg-slate-900:first-child,
[data-calculator] #liveSummaryCard {
    position: relative;
    isolation: isolate;
}

[data-calculator] .sticky > .bg-slate-900:first-child::before,
[data-calculator] #liveSummaryCard::before {
    /* Kartın kenarında dönen ince ışık */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--onx-angle, 0deg), transparent 0 70%, rgba(52, 211, 153, .85) 80%, rgba(129, 140, 248, .9) 88%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: onxSpin 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

[data-calculator] .sticky > .bg-slate-900:first-child::after,
[data-calculator] #liveSummaryCard::after {
    /* Sonuç değişince karttan geçen parlama */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 130% 0;
    pointer-events: none;
    z-index: 1;
}

[data-calculator] .onx-sweep::after {
    animation: onxSweep .9s var(--onx-ease);
}

@property --onx-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes onxSpin {
    to { --onx-angle: 360deg; }
}

@keyframes onxSweep {
    from { background-position: 130% 0; }
    to { background-position: -30% 0; }
}

/* Değişen sonuç değeri */
.onx-num-flash {
    animation: onxNumFlash .9s var(--onx-ease);
}

@keyframes onxNumFlash {
    0% { text-shadow: 0 0 0 transparent; }
    25% { text-shadow: 0 0 18px rgba(52, 211, 153, .55); }
    100% { text-shadow: 0 0 0 transparent; }
}

/* ---------- Grafik kartı ---------- */
.onx-viz {
    position: relative;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--onx-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 22px 60px -38px rgba(15, 23, 42, .35);
    padding: 1.75rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .onx-viz { padding: 2rem; }
}

.onx-viz-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.onx-viz-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--onx-ink);
    letter-spacing: -.01em;
}

.onx-viz-sub {
    margin-top: .3rem;
    font-size: .84rem;
    line-height: 1.5;
    color: var(--onx-muted);
    max-width: 46rem;
}

.onx-live {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .32rem .7rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.onx-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
    animation: onxPing 1.8s ease-out infinite;
}

@keyframes onxPing {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
    100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

.onx-viz-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .onx-viz-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .onx-viz-grid.cols-3-2 { grid-template-columns: 3fr 2fr; }
}

.onx-viz-panel {
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid #eef2f7;
    padding: 1rem 1rem .75rem;
    min-width: 0;
}

.onx-viz-panel-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--onx-muted);
    margin: 0 0 .5rem .25rem;
}

.onx-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    margin: .6rem .25rem 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--onx-ink-2);
}

.onx-legend span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.onx-legend i {
    display: inline-block;
    width: 14px;
    height: 4px;
    border-radius: 4px;
    background: currentColor;
}

.onx-legend i.dash {
    background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
}

/* Chart konteyneri ve ipucu */
.onx-chart {
    position: relative;
    width: 100%;
    touch-action: pan-y;
}

.onx-chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.onx-chart .ax-t {
    font-size: 11px;
    fill: #94a3b8;
    font-weight: 600;
}

.onx-chart .ax-l {
    font-size: 11px;
    fill: #64748b;
    font-weight: 700;
}

.onx-chart .grid-l {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.onx-chart .zero-l {
    stroke: #94a3b8;
    stroke-width: 1;
}

.onx-chart .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: onxDraw 1.4s var(--onx-ease) forwards;
}

.onx-chart .fade {
    opacity: 0;
    animation: onxFade 1s .25s var(--onx-ease) forwards;
}

@keyframes onxDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes onxFade {
    to { opacity: 1; }
}

.onx-chart .mk-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: onxRing 2.2s ease-out infinite;
}

@keyframes onxRing {
    0% { transform: scale(.6); opacity: .7; }
    100% { transform: scale(2.4); opacity: 0; }
}

.onx-tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    min-width: 120px;
    padding: .55rem .7rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, .94);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .5);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}

.onx-tip.show {
    opacity: 1;
    transform: none;
}

.onx-tip b {
    color: #fff;
    font-weight: 800;
}

.onx-tip .t-h {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: .2rem;
}

.onx-tip .t-r {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.onx-tip .t-r i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex: none;
}

/* KPI şeridi (grafik kartı içinde) */
.onx-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}

@media (min-width: 768px) {
    .onx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.onx-kpi {
    border-radius: 18px;
    border: 1px solid #eef2f7;
    background: #fff;
    padding: .8rem .95rem;
    min-width: 0;
}

.onx-kpi .k-l {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--onx-muted);
}

.onx-kpi .k-v {
    margin-top: .2rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--onx-ink);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

/* Yatay oran çubuğu (ör. kapasite kullanımı) */
.onx-meter {
    position: relative;
    height: 10px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
}

.onx-meter > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #4f46e5);
    transition: width .8s var(--onx-ease), background .3s;
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
    [data-calculator] section.onx-grid-bg::before,
    [data-calculator] section.onx-grid-bg::after,
    [data-calculator] section.onx-grid-bg h1,
    [data-calculator] .sticky > .bg-slate-900:first-child::before,
    [data-calculator] #liveSummaryCard::before,
    .calc-hub *,
    .onx-chart .mk-ring,
    .onx-live::before {
        animation: none !important;
    }

    .onx-chart .draw { stroke-dashoffset: 0; animation: none; }
    .onx-chart .fade { opacity: 1; animation: none; }
}

/* =====================================================================
   HESAPLAMA MERKEZİ (/hesaplamalar) — Views/Home/Calculators.cshtml
   ===================================================================== */
.calc-hub-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(79, 70, 229, .45), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(16, 185, 129, .28), transparent 60%),
        linear-gradient(160deg, #020617 0%, #0b1023 45%, #111637 100%);
    isolation: isolate;
}

.hub-grid {
    position: absolute;
    inset: -40% -10% -10%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .09) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(900px) rotateX(58deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%);
    mask-image: linear-gradient(to top, #000 10%, transparent 75%);
    animation: hubGrid 6s linear infinite;
}

@keyframes hubGrid {
    to { background-position: 0 56px, 0 0; }
}

.hub-glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
}

.hub-glow.g1 { width: 520px; height: 520px; right: -120px; top: -140px; background: rgba(99, 102, 241, .38); animation: hubFloat 14s ease-in-out infinite alternate; }
.hub-glow.g2 { width: 420px; height: 420px; left: -140px; bottom: -180px; background: rgba(16, 185, 129, .26); animation: hubFloat 18s ease-in-out infinite alternate-reverse; }

@keyframes hubFloat {
    to { transform: translate3d(40px, 30px, 0) scale(1.1); }
}

.hub-waves {
    position: absolute;
    left: 0;
    bottom: 6%;
    width: 200%;
    height: 220px;
    z-index: -1;
    pointer-events: none;
    animation: hubWaves 22s linear infinite;
}

.hub-waves path { fill: none; stroke-width: 1.6; }
.hub-waves .w1 { stroke: rgba(129, 140, 248, .35); }
.hub-waves .w2 { stroke: rgba(52, 211, 153, .28); }

@keyframes hubWaves {
    to { transform: translateX(-50%); }
}

.hub-formulas span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: -1;
    padding: .35rem .7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: rgba(226, 232, 240, .38);
    font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
    animation: hubChip 12s ease-in-out var(--d) infinite;
    pointer-events: none;
}

@keyframes hubChip {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50% { transform: translateY(-14px); opacity: 1; }
}

@media (max-width: 1023px) {
    .hub-formulas span:nth-child(n+4) { display: none; }
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
}

.hub-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #34d399;
    animation: onxPing 1.8s ease-out infinite;
}

.hub-title-grad {
    display: block;
    background: linear-gradient(90deg, #a5b4fc 0%, #818cf8 30%, #34d399 70%, #a7f3d0 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: onxTitleShine 7s ease-in-out infinite alternate;
    padding-bottom: .06em;
}

.hub-search {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 40rem;
    padding: .55rem .6rem .55rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .2);
    transition: box-shadow .25s;
}

.hub-search:focus-within {
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), 0 0 0 4px rgba(129, 140, 248, .45);
}

.hub-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    padding: .55rem 0;
}

.hub-search input::placeholder { color: #94a3b8; font-weight: 500; }

.hub-search kbd {
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font: 700 12px/1 ui-monospace, monospace;
}

.hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hub-chips button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.hub-chips button:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-1px); }
.hub-chips button b { font-weight: 800; font-size: 11px; padding: .1rem .45rem; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.hub-chips button.is-on { background: #fff; color: #0f172a; border-color: #fff; }
.hub-chips button.is-on b { background: #eef2ff; color: #4338ca; }

/* Sağdaki canlı önizleme */
.hub-preview {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
    padding: 1rem;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform .8s var(--onx-ease);
    animation: hubPreviewIn 1.2s var(--onx-ease) backwards;
}

.hub-preview:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

@keyframes hubPreviewIn {
    from { opacity: 0; transform: perspective(1200px) rotateY(-18deg) rotateX(8deg) translateY(30px); }
}

.hp-head { display: flex; align-items: center; gap: .7rem; padding: .25rem .4rem .9rem; }
.hp-dots { display: inline-flex; gap: 5px; }
.hp-dots i { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.hp-dots i:first-child { background: #fb7185; }
.hp-dots i:nth-child(2) { background: #fbbf24; }
.hp-dots i:nth-child(3) { background: #34d399; }
.hp-title { flex: 1; font-size: 12px; font-weight: 700; color: #cbd5e1; letter-spacing: .04em; }
.hp-live { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: #34d399; display: inline-flex; align-items: center; gap: .4rem; }
.hp-live::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #34d399; animation: onxPing 1.8s ease-out infinite; }

.hp-body { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hp-tile { border-radius: 18px; background: rgba(2, 6, 23, .55); border: 1px solid rgba(255, 255, 255, .08); padding: .8rem .9rem .7rem; }
.hp-wide { grid-column: 1 / -1; }
.hp-label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; margin-bottom: .45rem; }

.hp-line { fill: none; stroke: #34d399; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hpDraw 5s var(--onx-ease) infinite; }
.hp-area { opacity: 0; animation: hpFade 5s ease infinite; }
.hp-pb { fill: #fff; stroke: #818cf8; stroke-width: 3; opacity: 0; animation: hpPop 5s ease infinite; transform-box: fill-box; transform-origin: center; }
.hp-gauge { stroke: #818cf8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hpGauge 5s var(--onx-ease) infinite; }
.hp-bar { fill: #818cf8; opacity: .55; transform-box: fill-box; transform-origin: 50% 100%; animation: hpBar 5s var(--onx-ease) calc(var(--i) * 90ms) infinite; }
.hp-bar.hp-sel { fill: #34d399; opacity: 1; }

@keyframes hpDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hpFade { 0%, 25% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hpPop { 0%, 30% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.4); } 48%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes hpGauge { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 85% { stroke-dashoffset: .34; opacity: 1; } 100% { stroke-dashoffset: .34; opacity: .2; } }
@keyframes hpBar { 0% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: .2; } }

/* Gövde */
.calc-hub-body {
    position: relative;
    background: #fbfbfd;
    background-image: linear-gradient(to right, rgba(99, 102, 241, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(99, 102, 241, .045) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: clip;
}

.hub-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 2.5rem;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(130deg, #4338ca 0%, #4f46e5 35%, #0d9488 100%);
    box-shadow: 0 30px 70px -25px rgba(79, 70, 229, .55);
    transition: transform .6s var(--onx-ease), box-shadow .6s var(--onx-ease);
}

@media (min-width: 768px) {
    .hub-feature { flex-direction: row; padding: 3.5rem 4rem; }
}

.hub-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(40% 60% at 85% 20%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%);
    background-size: 100% 100%, 250% 100%;
    animation: hubShine 6s ease-in-out infinite;
}

@keyframes hubShine {
    0%, 30% { background-position: 0 0, 130% 0; }
    70%, 100% { background-position: 0 0, -30% 0; }
}

.hub-feature:hover { transform: translateY(-6px); box-shadow: 0 40px 90px -25px rgba(79, 70, 229, .65); }

.hub-motion .hm-vel { fill: none; stroke: #34d399; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hmDraw 5s linear infinite; }
.hub-motion .hm-trq { fill: none; stroke: #a5b4fc; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hmDraw 5s linear infinite; }

@keyframes hmDraw {
    0% { stroke-dashoffset: 1; }
    80%, 100% { stroke-dashoffset: 0; }
}

.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.9rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 14px 40px -24px rgba(15, 23, 42, .25);
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s var(--onx-ease), box-shadow .5s var(--onx-ease), border-color .3s;
}

.hub-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--c) 35%, #e2e8f0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 30px 60px -28px color-mix(in srgb, var(--c) 55%, transparent);
}

.hub-card.is-hidden { display: none; }

.hub-spot {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%);
    transition: opacity .35s;
    pointer-events: none;
}

.hub-card:hover .hub-spot { opacity: 1; }

.hub-ico {
    position: relative;
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: var(--c);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, #fff), color-mix(in srgb, var(--c) 4%, #fff));
    border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
    transition: transform .5s var(--onx-ease);
}

.hub-ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .16)); transition: transform .5s var(--onx-ease); }
.hub-card:hover .hub-ico { transform: rotate(-4deg) scale(1.05); }
.hub-card:hover .hub-ico img { transform: scale(1.08); }

.hub-formula {
    padding: .35rem .65rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font: 700 11.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-open {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c);
    transition: gap .3s var(--onx-ease);
}

.hub-card:hover .hub-open { gap: .9rem; }

.hub-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(140deg, #0f172a, #1e1b4b 60%, #064e3b);
    box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .6);
}

@media (min-width: 768px) {
    .hub-cta { padding: 3.25rem 3.5rem; }
}

.hub-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 0);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}

@media (prefers-reduced-motion: reduce) {
    .hub-grid, .hub-glow, .hub-waves, .hub-formulas span, .hub-dot, .hub-title-grad, .hub-preview,
    .hp-line, .hp-area, .hp-pb, .hp-gauge, .hp-bar, .hp-live::before, .hub-feature::before,
    .hub-motion .hm-vel, .hub-motion .hm-trq { animation: none !important; }
    .hp-line, .hub-motion .hm-vel, .hub-motion .hm-trq { stroke-dashoffset: 0; }
    .hp-gauge { stroke-dashoffset: .34; }
    .hp-area, .hp-pb { opacity: 1; }
}

/* =====================================================================
   MEKANİZMA ÇİZİMLERİ — Views/Shared/Mechanisms/_Mechanism.cshtml
   (Sizing kartları ve detay kartı, konveyör / vidalı mil başlıkları)
   ===================================================================== */
svg.mech {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mech-card .mech-thumb {
    width: 100%;
    height: 8.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: .35rem;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #eef2f7;
    transition: background .3s, border-color .3s;
}

.mech-card:hover .mech-thumb,
.mech-card.active .mech-thumb {
    background: linear-gradient(160deg, #ffffff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}

.mech-detail-box {
    border-radius: 1.25rem;
    background: linear-gradient(170deg, #f8fafc, #eef2ff 140%);
    border: 1px solid #e2e8f0;
    padding: .5rem .25rem;
}

.mech-formulas {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .9rem;
}

.mech-formulas span {
    display: block;
    padding: .5rem .75rem;
    border-radius: .75rem;
    background: #0f172a;
    color: #e2e8f0;
    font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.mech-formulas sub,
.mech-legend sub {
    font-size: .72em;
}

.mech-legend {
    list-style: none;
    margin: .9rem 0 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    font-size: 12.5px;
    line-height: 1.4;
    color: #334155;
}

.mech-legend li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
}

.mech-legend b {
    flex: none;
    min-width: 2.6rem;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-weight: 800;
    text-align: center;
}

.mech-hero-card {
    position: relative;
    border-radius: 2.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(165deg, #ffffff 0%, #f1f5ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 40px 80px -40px rgba(79, 70, 229, .35);
    overflow: hidden;
    isolation: isolate;
}

.mech-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(99, 102, 241, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .06) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
    mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}

.mech-hero-card .mech-legend {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .45rem 1rem;
    padding: 0 .5rem;
}

.mech-hero-card .mech-formulas {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 .5rem;
}

/* Sizing yük adımı: mekanizma paneli (üstte, tam genişlik) */
.mech-panel {
    border-radius: 1.75rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(170deg, #ffffff 0%, #f5f7ff 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 24px 50px -36px rgba(79, 70, 229, .45);
    overflow: hidden;
}

.mech-panel-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
}

.mech-panel-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #fff;
}

.mech-detail-grid {
    display: grid;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 900px) {
    .mech-detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem; }
}

.mech-detail-grid .md-visual {
    border-radius: 1.25rem;
    background: linear-gradient(170deg, #f8fafc, #eef2ff 140%);
    border: 1px solid #e2e8f0;
    padding: .5rem;
    aspect-ratio: 16 / 9;
}

.mech-detail-grid .md-info .mech-formulas { margin-top: 0; }

/* =====================================================================
   SONUÇ KARTLARI — tüm hesaplama araçları
   ===================================================================== */

/* Koyu özet kartları: zemin, okunur etiketler, düzenli satırlar */
[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard, #resultCard) {
    background-color: #0b1022 !important;
    background-image:
        radial-gradient(120% 55% at 100% 0%, rgba(99, 102, 241, .30), transparent 58%),
        radial-gradient(90% 45% at 0% 100%, rgba(16, 185, 129, .16), transparent 60%),
        linear-gradient(165deg, #111735 0%, #0b1022 55%, #0a0f1f 100%) !important;
    border-color: rgba(148, 163, 184, .18) !important;
    box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .65), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard, #resultCard) :is(.text-slate-500, .text-slate-600) {
    color: #9aa8c0 !important;
}

[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard) .font-mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard) .border-b {
    border-color: rgba(148, 163, 184, .14) !important;
}

/* Satır üzerine gelince hafif vurgu */
[data-calculator] :is(.sticky > .bg-slate-900:first-child, #liveSummaryCard) .flex.justify-between.border-b {
    margin: 0 -.6rem;
    padding-left: .6rem;
    padding-right: .6rem;
    border-radius: .6rem;
    transition: background .2s;
}

[data-calculator] :is(.sticky > .bg-slate-900:first-child, #liveSummaryCard) .flex.justify-between.border-b:hover {
    background: rgba(255, 255, 255, .04);
}

/* Son satır (nihai sonuç) vurgulu kutu */
[data-calculator] :is(.sticky > .bg-slate-900:first-child, #liveSummaryCard) .space-y-5 > .flex:last-child:not(.border-b) {
    margin-top: .75rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(16, 185, 129, .16), rgba(99, 102, 241, .14));
    border: 1px solid rgba(52, 211, 153, .28);
}

/* Koyu kart içindeki küçük kutular */
[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard) :is(.bg-white\/5, .bg-white\/10, .bg-slate-800, .bg-slate-800\/50, .mini-badge) {
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)) !important;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: border-color .25s, background .25s;
}

[data-calculator] :is(.sticky > .bg-slate-900:first-child, .sticky > .bg-slate-950:first-child, #liveSummaryCard) :is(.bg-white\/5, .bg-white\/10, .bg-slate-800, .mini-badge):hover {
    border-color: rgba(129, 140, 248, .35);
}

/* Açık zeminli sonuç kutuları (detaylı sonuçlar ızgarası) */
[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-slate-50, .bg-blue-50, .bg-emerald-50, .bg-indigo-50, .bg-amber-50, .bg-rose-50, .bg-violet-50):has(> .font-mono, > div > .font-mono) {
    --acc: #6366f1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, color-mix(in srgb, var(--acc) 6%, #fff) 100%) !important;
    border-color: color-mix(in srgb, var(--acc) 18%, #e2e8f0) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 12px 28px -22px color-mix(in srgb, var(--acc) 60%, transparent);
    transition: transform .35s var(--onx-ease), box-shadow .35s var(--onx-ease);
}

[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-blue-50):has(> .font-mono, > div > .font-mono) { --acc: #2563eb; }
[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-emerald-50):has(> .font-mono, > div > .font-mono) { --acc: #059669; }
[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-amber-50):has(> .font-mono, > div > .font-mono) { --acc: #d97706; }
[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-rose-50):has(> .font-mono, > div > .font-mono) { --acc: #e11d48; }
[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-slate-50):has(> .font-mono, > div > .font-mono) { --acc: #64748b; }

[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-slate-50, .bg-blue-50, .bg-emerald-50, .bg-indigo-50, .bg-amber-50, .bg-rose-50, .bg-violet-50):has(> .font-mono, > div > .font-mono)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--acc);
}

[data-calculator] section.onx-grid-bg :is(.rounded-2xl, .rounded-xl):is(.bg-slate-50, .bg-blue-50, .bg-emerald-50, .bg-indigo-50, .bg-amber-50, .bg-rose-50, .bg-violet-50):has(> .font-mono, > div > .font-mono):hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 18px 34px -20px color-mix(in srgb, var(--acc) 65%, transparent);
}

[data-calculator] section.onx-grid-bg .font-mono { font-variant-numeric: tabular-nums; }

/* ---------- ONX Sizing sonuç kartı ---------- */
.sz-result { color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .18); }

.sz-lbl {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9aa8c0;
}

.sz-metric {
    padding: 1rem 1.05rem;
    border-radius: 1.25rem;
    background: linear-gradient(150deg, rgba(129, 140, 248, .16), rgba(129, 140, 248, .04));
    border: 1px solid rgba(129, 140, 248, .28);
    margin-bottom: .75rem;
}

.sz-metric.is-peak {
    background: linear-gradient(150deg, rgba(251, 113, 133, .15), rgba(251, 113, 133, .04));
    border-color: rgba(251, 113, 133, .28);
}

.sz-val {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    margin-top: .2rem;
}

.sz-val span {
    font-size: 2.1rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.sz-metric.is-peak .sz-val span { color: #fecdd3; }
.sz-val em { font-style: normal; font-weight: 800; color: #a5b4fc; }
.sz-metric.is-peak .sz-val em { color: #fda4af; }

.sz-bar, .sz-mbar {
    position: relative;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
    margin-top: .7rem;
}

.sz-mbar { background: #eef2f7; height: 6px; margin-top: .35rem; }

.sz-bar > span, .sz-mbar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: #94a3b8;
    transition: width .8s var(--onx-ease), background .3s;
}

.sz-bar > span.is-ok, .sz-mbar > span.is-ok { background: linear-gradient(90deg, #10b981, #34d399); }
.sz-bar > span.is-warn, .sz-mbar > span.is-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sz-bar > span.is-bad, .sz-mbar > span.is-bad { background: linear-gradient(90deg, #e11d48, #fb7185); }

.sz-cap {
    margin-top: .45rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #9aa8c0;
    min-height: 1em;
}

.sz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-top: .9rem;
}

.sz-tile {
    position: relative;
    padding: .75rem .8rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    min-width: 0;
    transition: border-color .25s;
}

.sz-tile:hover { border-color: rgba(129, 140, 248, .4); }

.sz-tile > svg {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 15px;
    height: 15px;
    color: #818cf8;
    opacity: .8;
}

.sz-tile .sz-lbl { font-size: 9.5px; padding-right: 1.1rem; }

.sz-tv {
    margin-top: .3rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.sz-ratio {
    margin-top: .9rem;
    padding: .9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.sz-ratio.is-ok .sz-tv { color: #6ee7b7; }
.sz-ratio.is-warn .sz-tv { color: #fcd34d; }
.sz-ratio.is-bad .sz-tv { color: #fda4af; }

.sz-scale {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    margin-top: .7rem;
}

.sz-scale i { display: block; height: 6px; border-radius: 99px; }
.sz-scale i:nth-child(1) { background: rgba(16, 185, 129, .7); }
.sz-scale i:nth-child(2) { background: rgba(245, 158, 11, .7); }
.sz-scale i:nth-child(3) { background: rgba(244, 63, 94, .7); }

.sz-scale b {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .9), 0 0 14px rgba(255, 255, 255, .5);
    transition: left .8s var(--onx-ease);
}

.sz-scale-lbl {
    display: flex;
    justify-content: space-between;
    margin-top: .3rem;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.sz-warn {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .8rem;
    border-radius: .9rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 12.5px;
    line-height: 1.5;
}

.sz-warn > svg { flex: none; width: 16px; height: 16px; margin-top: .1rem; color: #d97706; }
.sz-warn.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sz-warn.is-ok > svg { color: #059669; }

.sz-empty, .sz-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .75rem .85rem;
    border-radius: .9rem;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
}

.sz-empty > svg, .sz-note > svg { flex: none; width: 16px; height: 16px; margin-top: .05rem; }
.sz-note.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sz-note.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.sz-cand {
    position: relative;
    margin-top: .85rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .35s var(--onx-ease), box-shadow .35s var(--onx-ease), border-color .3s;
}

.sz-cand:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(79, 70, 229, .45); border-color: #c7d2fe; }

.sz-cand.is-top {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366f1, #10b981) border-box;
    padding-top: 1.35rem;
}

.sz-ribbon {
    position: absolute;
    top: -10px;
    left: 14px;
    padding: .2rem .65rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f46e5, #059669);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .6);
}

.sz-pill {
    flex: none;
    padding: .25rem .6rem;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sz-pill.is-ok { background: #d1fae5; color: #047857; }
.sz-pill.is-muted { background: #f1f5f9; color: #475569; }

.sz-chip {
    padding: .2rem .55rem;
    border-radius: .55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sz-chip.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.sz-chip.is-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.sz-chip.is-bad { background: #fff1f2; border-color: #fecdd3; color: #be123c; }

.sz-row-h {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.sz-row-h b {
    color: #0f172a;
    font: 700 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Atalet hesaplayıcısı ---------- */
.ic-preview {
    border-radius: 1.1rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(170deg, #f8fafc, #eef2ff 140%);
    padding: .75rem .9rem .9rem;
}

.ic-formula {
    margin-top: .35rem;
    padding: .45rem .7rem;
    border-radius: .7rem;
    background: #0f172a;
    color: #e2e8f0;
    font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-align: center;
}

.ic-result {
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    color: #e2e8f0;
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(99, 102, 241, .35), transparent 60%),
        linear-gradient(160deg, #111735, #0b1022);
    border: 1px solid rgba(148, 163, 184, .18);
}

.ic-val {
    margin-top: .35rem;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: #c7d2fe;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.ic-chip {
    padding: .2rem .6rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0;
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* =====================================================================
   SIZING GİRDİ YÖNLENDİRMESİ — wwwroot/js/sizing-guide.js
   ===================================================================== */
.sym-pill {
    display: inline-flex;
    align-items: baseline;
    margin-left: .4rem;
    padding: 0 .4rem;
    border-radius: 99px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: 1px;
}

.sym-pill sub { font-size: .72em; }

.sz-hint {
    margin: .35rem .15rem 0;
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 500;
    color: #64748b;
}

.sz-hint.is-done { color: #047857; font-weight: 700; }

/* J (atalet) düğmesi: açıkça tıklanır, dönen eksen simgeli */
.ic-btn {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .75rem 0 .6rem;
    border-radius: 0 .75rem .75rem 0;
    border: 1px solid #4f46e5;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .7);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.ic-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .85);
}

.ic-btn:focus-visible { outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 2px; }
.ic-btn b { font-weight: 900; font-size: 13px; margin-right: .1rem; }

.ic-btn-ico { display: inline-flex; width: 18px; height: 18px; }
.ic-btn-ico svg { width: 100%; height: 100%; }
.ic-btn:hover .ic-btn-ico svg, .ic-btn.is-coach .ic-btn-ico svg { animation: icSpin 1.6s linear infinite; }

@keyframes icSpin { to { transform: rotate(360deg); } }

.ic-btn.is-coach::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 0 1rem 1rem 0;
    border: 2px solid #818cf8;
    animation: icPulse 1.4s ease-out infinite;
    pointer-events: none;
}

@keyframes icPulse {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.18); }
}

.ic-coach {
    position: absolute;
    z-index: 30;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    padding: .8rem .9rem;
    border-radius: 1rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .6);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    animation: icCoachIn .35s var(--onx-ease) both;
}

.ic-coach::before {
    content: "";
    position: absolute;
    right: 28px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    transform: rotate(45deg);
}

.ic-coach b { color: #fff; font-size: 12.5px; }

.ic-coach button {
    align-self: flex-end;
    margin-top: .2rem;
    padding: .3rem .7rem;
    border-radius: .6rem;
    background: #6366f1;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
}

@keyframes icCoachIn { from { opacity: 0; transform: translateY(6px); } }

/* Önerilen motorlarda stok */
.sz-stock {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: .55rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.sz-stock.is-in {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.sz-stock.is-in::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
    animation: onxPing 1.8s ease-out infinite;
}

.sz-stock-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .6rem;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.sz-stock-note > svg { width: 14px; height: 14px; color: #10b981; }

/* Koyu zeminli seçim kutuları odakta beyaza dönmesin; açılan liste her zaman okunur */
[data-calculator] section.onx-grid-bg select:is(.bg-slate-900, .bg-slate-800, .bg-indigo-600):focus {
    background-color: #0f172a;
    color: #fff;
}

[data-calculator] select option {
    color: #0f172a;
    background: #fff;
}

/* =====================================================================
   GİRDİ REHBERİ — wwwroot/js/calc-guides.js
   ===================================================================== */
.unit-pill {
    display: inline-flex;
    align-items: baseline;
    margin-left: .35rem;
    padding: 0 .4rem;
    border-radius: .4rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: 1px;
    white-space: nowrap;
}

/* Düğme grubu (seçim kutusu yerine) */
.onx-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.onx-seg button {
    padding: .5rem .9rem;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    transition: background .2s, color .2s, box-shadow .2s;
}

.onx-seg button:hover { color: #0f172a; }

.onx-seg button.is-on {
    background: #fff;
    color: #4338ca;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -6px rgba(79, 70, 229, .45);
}

/* Redüktör ataleti önerisi */
.gear-sug {
    margin-top: .5rem;
    padding: .65rem .7rem;
    border-radius: .9rem;
    background: #f8fafc;
    border: 1px dashed #c7d2fe;
}

.gear-sug .gs-t { display: block; font-size: 11.5px; line-height: 1.45; color: #475569; font-weight: 600; }
.gear-sug .gs-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }

.gear-sug button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .35rem .55rem;
    border-radius: .65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: left;
    line-height: 1.25;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.gear-sug button:hover { border-color: #818cf8; transform: translateY(-1px); }
.gear-sug button.is-on { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.gear-sug button b { font-size: 11px; font-weight: 800; color: #4338ca; }
.gear-sug button span { font: 700 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #0f172a; }
.gear-sug button em { font-style: normal; font-size: 10px; font-weight: 600; color: #64748b; }

/* Vidalı mil: bağlantı tipi ve oran önerisi */
.ls-drive {
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1.4rem;
    background: linear-gradient(170deg, #f8fafc, #eef2ff 160%);
    border: 1px solid #e2e8f0;
}

.ls-drive-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.ls-advice {
    display: flex;
    gap: .9rem;
    margin-top: 1.1rem;
    padding: .9rem 1rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #c7d2fe;
}

.ls-adv-ico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
}

.gear-sug button.is-weak { opacity: .45; }
.gear-sug button.is-best { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.gear-sug button.is-best b { color: #047857; }

/* Para birimi çubuğu (calc-guides.js) */
.curr-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .9rem 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid #c7d2fe;
    box-shadow: 0 14px 34px -26px rgba(79, 70, 229, .5);
}

.curr-bar .cb-l { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; flex: 1 1 260px; }
.curr-bar .cb-l > svg { flex: none; width: 22px; height: 22px; color: #4f46e5; margin-top: .1rem; }
.curr-bar b { font-size: 14px; font-weight: 800; color: #0f172a; }
.curr-bar p { font-size: 12px; line-height: 1.45; color: #64748b; margin-top: .1rem; }
.curr-bar .onx-seg button { min-width: 44px; font-size: 15px; }

/* =====================================================================
   İLGİLİ ARAÇLAR VE YOL BAĞLANTISI — Views/Shared/_CalcRelated.cshtml
   ===================================================================== */
/* .calc-crumb: ortak yol bağlantısı (_Breadcrumb, site.css .onx-crumb); calc-guides.js başlığın üstüne taşır */

.calc-related {
    position: relative;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(99, 102, 241, .08), transparent 60%),
        #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cr-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #4f46e5;
}

.cr-head h2 {
    margin-top: .3rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #0f172a;
}

.cr-all {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.15rem;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.cr-all:hover { background: #1e1b4b; transform: translateY(-1px); }

.cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .9rem;
}

.cr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .35s var(--onx-ease), box-shadow .35s var(--onx-ease), border-color .3s;
}

.cr-card:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 22px 44px -28px rgba(79, 70, 229, .55);
}

.cr-card.is-featured {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366f1, #10b981) border-box;
}

.cr-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
}

.cr-name { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.3; padding-right: 1.2rem; }

.cr-formula {
    align-self: flex-start;
    padding: .15rem .5rem;
    border-radius: .5rem;
    background: #f1f5f9;
    color: #475569;
    font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cr-go { position: absolute; top: 1.1rem; right: 1rem; color: #94a3b8; transition: color .2s, transform .2s; }
.cr-card:hover .cr-go { color: #4f46e5; transform: translate(2px, -2px); }

.cr-more { margin-top: 1.4rem; font-size: 13px; color: #64748b; }
.cr-more a { color: #4338ca; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   SİHİRBAZ DÜZENİ (calc-guides.js wizard): ONX Sizing gibi adım sekmeleri, 3 sütun alanlar
   ===================================================================== */
.calc-wizard {
    border-radius: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 22px 60px -40px rgba(15, 23, 42, .35);
    overflow: hidden;
}

.wz-tabs {
    display: flex;
    gap: .25rem;
    padding: 0 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow-x: auto;
    scrollbar-width: none;
}

.wz-tabs::-webkit-scrollbar { display: none; }

.wz-tabs button {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem .9rem;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    transition: color .2s;
}

.wz-tabs button b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.wz-tabs button:hover { color: #0f172a; }
.wz-tabs button.is-on { color: #4338ca; }
.wz-tabs button.is-on b { background: #4f46e5; color: #fff; }

.wz-tabs button.is-on::after {
    content: "";
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #4f46e5;
}

.wz-body { padding: .25rem 0; }

.calc-wizard .wz-pane {
    margin: 0 !important;
    padding: 1.4rem 1.6rem 1.2rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.calc-wizard .wz-pane > .flex:first-child,
.calc-wizard .wz-pane > h3:first-child { margin-bottom: 1rem !important; }

.wz-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.wz-foot .wz-count { font-size: 12px; font-weight: 700; color: #94a3b8; }
.wz-foot .wz-prev { font-size: 13px; font-weight: 700; color: #475569; padding: .55rem .8rem; border-radius: 10px; }
.wz-foot .wz-prev:hover { color: #0f172a; background: #eef2f7; }

.wz-foot .wz-next {
    padding: .65rem 1.4rem;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8);
    transition: background .2s;
}

.wz-foot .wz-next:hover { background: #4338ca; }

/* Sıkı alanlar: daha az iç boşluk */
.calc-wizard :is(input[type="number"], input[type="text"], select),
.wz-solo :is(input[type="number"], input[type="text"], select) {
    padding-top: .7rem !important;
    padding-bottom: .7rem !important;
    font-size: 15px !important;
}

/* 3 sütun: alan ızgaraları ve satır satır 2'li ızgaralar tek akışa */
@media (min-width: 1024px) {
    :is(.calc-wizard, .wz-solo) .grid:has(> div > label) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1rem 1.1rem !important;
    }

    :is(.calc-wizard, .wz-solo) :is(.space-y-3, .space-y-4, .space-y-5, .space-y-6):has(> .grid > div > label) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.1rem;
    }

    :is(.calc-wizard, .wz-solo) :is(.space-y-3, .space-y-4, .space-y-5, .space-y-6):has(> .grid > div > label) > .grid:has(> div > label) {
        display: contents;
    }

    :is(.calc-wizard, .wz-solo) :is(.space-y-3, .space-y-4, .space-y-5, .space-y-6):has(> .grid > div > label) > :not(.grid) {
        grid-column: 1 / -1;
    }
}

/* =====================================================================
   ADIM GÖSTERGESİ — calc-ui.js OnxSteps (Sizing ve sihirbazlı araçlar)
   ===================================================================== */
.st-tab { display: inline-flex !important; align-items: center; gap: .55rem; }

.st-dot {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 99px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    transition: background .25s, color .25s, box-shadow .25s;
}

.st-dot i { font-style: normal; }
.st-dot svg { display: none; width: 14px; height: 14px; }
.st-tab.st-cur .st-dot { background: #4f46e5; color: #fff; box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
.st-tab.st-done .st-dot { background: #10b981; color: #fff; }
.st-tab.st-done .st-dot i { display: none; }
.st-tab.st-done .st-dot svg { display: block; }
.st-tab.st-done { color: #047857 !important; }

.st-info {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .7rem 1.4rem .75rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.st-bar { height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.st-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #10b981, #4f46e5); transition: width .6s var(--onx-ease); }
.st-text { font-size: 12.5px; color: #64748b; line-height: 1.45; }
.st-text b { color: #0f172a; font-weight: 800; }
.st-text span { color: #4338ca; font-weight: 700; }
.st-text em { font-style: normal; color: #047857; font-weight: 700; }

/* İleri düğmesine dikkat çekme */
.st-nudge { animation: stNudge 1.2s ease-in-out infinite; }

@keyframes stNudge {
    0%, 100% { box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8), 0 0 0 0 rgba(99, 102, 241, .5); }
    50% { box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8), 0 0 0 9px rgba(99, 102, 241, 0); transform: translateX(2px); }
}

/* Sonuç kartında girdi kontrolü */
.st-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: .8rem .95rem;
    border-radius: 1.1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    text-align: left;
    font-size: 12px;
    line-height: 1.45;
    transition: transform .2s, box-shadow .2s;
}

.st-check:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -16px rgba(217, 119, 6, .6); }
.st-check b { color: #92400e; font-weight: 800; margin-right: .2rem; }
.st-check u { display: block; margin-top: .25rem; font-weight: 800; color: #b45309; text-underline-offset: 3px; }
.st-check.is-all { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.st-check.is-all b { color: #065f46; }
.st-c-dots { flex: none; display: inline-flex; gap: 3px; margin-top: .25rem; }
.st-c-dots i { width: 8px; height: 8px; border-radius: 99px; background: #fcd34d; opacity: .45; }
.st-c-dots i.on { opacity: 1; background: #f59e0b; }
.st-check.is-all .st-c-dots i { background: #10b981; opacity: 1; }


/* =====================================================================
   SIZING HAREKET ADIMI — wwwroot/js/sizing-motion.js
   ===================================================================== */
.mp-section { margin-bottom: 1.4rem; }
.mp-label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #64748b; margin-bottom: .6rem; }
.mp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.mp-head .mp-label { margin-bottom: 0; }

.mp-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .mp-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mp-profiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.mp-prof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .7rem .75rem .75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    text-align: left;
    transition: border-color .2s, box-shadow .2s, transform .2s, color .2s;
}

.mp-prof:hover { border-color: #c7d2fe; transform: translateY(-2px); color: #818cf8; }
.mp-prof svg { width: 100%; height: 34px; margin-bottom: .2rem; }
.mp-prof b { font-size: 13px; font-weight: 800; color: #0f172a; }
.mp-prof span { font-size: 11px; line-height: 1.35; color: #64748b; }
.mp-prof.is-on { border-color: #4f46e5; color: #4f46e5; background: linear-gradient(170deg, #fff, #eef2ff); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }

.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 1024px) { .mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-grid [hidden] { display: none !important; }

.mp-locked { background: #f1f5f9 !important; color: #64748b !important; border-style: dashed !important; cursor: not-allowed; }

.mp-note { margin-top: .8rem; padding: .6rem .8rem; border-radius: .8rem; font-size: 12.5px; font-weight: 600; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.mp-note.is-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.mp-note.is-err { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

.mp-adv { margin-top: 1rem; }
.mp-adv summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #64748b; }
.mp-adv summary:hover { color: #4338ca; }

.mp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
@media (min-width: 768px) { .mp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mp-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.mp-kpi { padding: .7rem .8rem; border-radius: 1rem; background: #f8fafc; border: 1px solid #eef2f7; min-width: 0; }
.mp-kpi .k-l { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.mp-kpi .k-v { margin-top: .15rem; font-size: 1.05rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.mp-kpi .k-v small { font-size: 11px; font-weight: 700; color: #64748b; }
.mp-kpi .k-s { margin-top: .1rem; font-size: 11px; font-weight: 600; color: #64748b; }

.mp-charts { border-radius: 1.4rem; border: 1px solid #e2e8f0; background: #fff; padding: .9rem 1rem .8rem; }
.mp-chart + .mp-chart { margin-top: .4rem; padding-top: .5rem; border-top: 1px dashed #eef2f7; }
.mp-chart-h { display: flex; justify-content: space-between; gap: .6rem; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin: 0 .25rem .2rem; }
.mp-chart-h b { font: 700 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; text-transform: none; color: #0f172a; }
.mp-legend { margin-top: .5rem; }
