/* ==========================================================================
   MillaFit · Beden Radarı
   ========================================================================== */
:root {
    --ink: #16141a;
    --ink-2: #3b3842;
    --muted: #77727f;
    --paper: #f7f3ee;
    --card: #ffffff;
    --line: #ebe5de;
    --accent: #f27a1a;
    --accent-2: #e8457c;
    --accent-3: #7b5cff;
    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
    --small: #ef6b5b;
    --true: #19a974;
    --large: #4c7dff;
    --radius: 22px;
    --shadow: 0 1px 2px rgba(22, 20, 26, .04), 0 12px 40px -12px rgba(22, 20, 26, .14);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); font-size: .9em; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: #120f17;
    color: #fff;
    padding: 0 20px 110px;
    isolation: isolate;
    transition: padding .4s ease;
}
.hero--compact { padding-bottom: 150px; }
.hero--compact .lead, .hero--compact .eyebrow { display: none; }
.hero--compact h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 18px; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    z-index: -1;
    animation: float 18s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: var(--accent); top: -180px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: var(--accent-2); top: 40px; right: -140px; animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; background: var(--accent-3); bottom: -220px; left: 40%; animation-delay: -12s; opacity: .4; }
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 20px) scale(.95); }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.02em;
}
.logo em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--grad);
    font-family: var(--sans);
    font-size: 17px;
    box-shadow: 0 8px 24px -6px rgba(232, 69, 124, .6);
}
.topbar-note { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .04em; }

.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; padding-top: 40px; }
.eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 99px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    margin: 0 0 22px;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0 0 18px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 620px; margin: 0 auto 34px; }

.search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
    transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 6px rgba(242,122,26,.18), 0 20px 60px -20px rgba(0,0,0,.6); }
.search-icon { width: 22px; height: 22px; margin-left: 12px; color: rgba(255,255,255,.6); flex: none; }
.search-input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: 0;
    color: #fff; font: 500 16px var(--sans);
    padding: 14px 6px;
}
.search-input::placeholder { color: rgba(255,255,255,.4); }
.search-btn {
    flex: none;
    border: 0; border-radius: 14px;
    padding: 15px 28px;
    font-weight: 700; color: #fff;
    background: var(--grad);
    background-size: 160% 100%;
    transition: background-position .4s, transform .15s;
    box-shadow: 0 10px 30px -8px rgba(232, 69, 124, .7);
}
.search-btn:hover { background-position: 100% 0; }
.search-btn:active { transform: scale(.97); }

.hero-options {
    display: flex; flex-wrap: wrap; gap: 14px 24px;
    justify-content: space-between; align-items: center;
    margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7);
}
.samples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sample {
    text-decoration: none; padding: 6px 12px; border-radius: 99px;
    border: 1px solid rgba(255,255,255,.18);
    transition: background .2s, border-color .2s;
}
.sample:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }

/* toggle */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui {
    position: relative; width: 38px; height: 22px; border-radius: 99px;
    background: rgba(127,127,127,.35); transition: background .2s; flex: none;
}
.toggle-ui::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle input:checked + .toggle-ui { background: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle.small { font-size: 13px; color: var(--ink-2); }

.upload {
    margin-top: 18px; text-align: left; font-size: 14px; color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05);
}
.upload summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: #fff; list-style: none; }
.upload summary::-webkit-details-marker { display: none; }
.upload summary::before { content: "＋"; margin-right: 8px; color: var(--accent); }
.upload[open] summary::before { content: "－"; }
.upload p { margin: 0 16px 12px; }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px 16px; align-items: flex-end; }
.file { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.file input { font-size: 13px; color: #fff; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25); width: 100%; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.alert {
    display: flex; gap: 12px; align-items: center; text-align: left;
    margin-top: 22px; padding: 14px 18px; border-radius: 14px;
    background: rgba(239, 107, 91, .16); border: 1px solid rgba(239, 107, 91, .45);
    color: #ffd8d2; font-weight: 500;
}
.alert svg { width: 22px; height: 22px; flex: none; }

/* ---------- SONUÇLAR ---------- */
.results { max-width: 1180px; margin: -120px auto 0; padding: 0 20px 60px; position: relative; z-index: 2; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22,20,26,.04);
    padding: 28px;
}

/* ürün */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 22px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #f1ece6; aspect-ratio: 4 / 5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity .25s, transform .6s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main img.fading { opacity: 0; }
.zoom-btn {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
    border: 0; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--ink);
}
.zoom-btn svg { width: 18px; height: 18px; }
.img-count {
    position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 600;
    padding: 6px 10px; border-radius: 99px; background: rgba(22,20,26,.7); color: #fff;
}
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb {
    flex: none; width: 74px; height: 92px; padding: 0; border-radius: 12px; overflow: hidden;
    border: 2px solid transparent; background: #f1ece6; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); opacity: 1; }

.product-info { padding: 14px 8px 8px 0; display: flex; flex-direction: column; }
.brand-pill {
    align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 99px; background: #fff1e6; color: #c45a06;
}
.product-name { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 12px; }
.rating-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.stars-big { position: relative; display: inline-block; color: #e3ddd5; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f5a623; }
.price {
    font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 8px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    align-self: flex-start;
}
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.meta div { padding: 10px 14px; border-radius: 12px; background: var(--paper); }
.meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 600; }
.mini-title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 8px 0 10px; font-weight: 600; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
    min-width: 50px; padding: 10px 14px; text-align: center; font-weight: 700;
    border-radius: 12px; border: 1.5px solid var(--ink); transition: background .2s, color .2s;
}
.size-chip:hover { background: var(--ink); color: #fff; }
.size-chip.soldout { border-color: var(--line); color: #bdb6ad; text-decoration: line-through; }
.size-chip.soldout:hover { background: transparent; color: #bdb6ad; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.proof { font-size: 13px; padding: 7px 12px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.proof b { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color .2s, transform .15s, background .2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2c2832; }

/* metrikler */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.metric-val { font-family: var(--serif); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.metric-val small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.metric-lbl { font-size: 13px; color: var(--muted); }
.metric.accent { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.metric.accent::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -80px; background: var(--grad); opacity: .7; filter: blur(30px); }
.metric.accent > * { position: relative; }
.metric.accent .metric-lbl { color: rgba(255,255,255,.7); }

.warn { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.card-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.card-head p { margin: 2px 0 0; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--paper); font-size: 22px; flex: none; }

.chart-wrap { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.chart-wrap img { width: 100%; transition: transform .5s; }
.chart-wrap:hover img { transform: scale(1.02); }
.chart-hint {
    position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 600;
    padding: 6px 10px; border-radius: 99px; background: rgba(22,20,26,.75); color: #fff;
    opacity: 0; transform: translateY(6px); transition: .25s;
}
.chart-wrap:hover .chart-hint { opacity: 1; transform: none; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; }
.empty.small { padding: 16px; font-size: 14px; }

/* kalıp ölçer */
.fit-meter { background: var(--paper); border-radius: 16px; padding: 18px; margin-bottom: 22px; }
.fit-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #e6e0d8; gap: 2px; }
.seg { width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.in .seg { width: var(--w); }
.seg-small { background: var(--small); }
.seg-true { background: var(--true); }
.seg-large { background: var(--large); }
.fit-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-small { background: var(--small); } .dot-true { background: var(--true); } .dot-large { background: var(--large); }
.verdict { margin: 12px 0 0; font-size: 15px; }

.stats { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: grid; grid-template-columns: 54px 1fr 64px 120px; gap: 12px; align-items: center; font-size: 14px; }
.stat-size { font-weight: 700; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--ink); color: #fff; }
.stat-bar { height: 10px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.stat-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.in .stat-bar span { width: var(--w); }
.stat-count { font-weight: 600; }
.stat-body { color: var(--muted); font-size: 13px; text-align: right; }

.finder { margin-top: 24px; padding: 20px; border-radius: 16px; border: 1.5px solid var(--line); background: linear-gradient(180deg, #fff, #fffaf5); }
.finder h4 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.finder p { margin: 4px 0 14px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.finder-row label {
    display: flex; align-items: center; gap: 6px; flex: 1 1 120px;
    padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
}
.finder-row label:focus-within { border-color: var(--accent); }
.finder-row label span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.finder-row input { width: 100%; border: 0; outline: 0; font: 600 16px var(--sans); padding: 12px 0; background: transparent; min-width: 0; }
.finder-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.finder-out:empty { display: none; }
.finder-out { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--ink); color: #fff; animation: pop .35s ease; }
.finder-out .big { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; margin-right: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finder-out .row { display: flex; align-items: center; }
.finder-out small { display: block; color: rgba(255,255,255,.65); margin-top: 8px; font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* yorumlar */
.reviews-card .card-head { flex-wrap: wrap; }
.legend-marks { margin-left: auto; display: flex; gap: 6px; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
    padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--ink-2); transition: .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.toolbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mini-search {
    border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 14px; font: 14px var(--sans);
    outline: 0; width: 220px; background: var(--paper);
}
.mini-search:focus { border-color: var(--accent); background: #fff; }

.review-grid { columns: 3 300px; column-gap: 16px; }
.review {
    break-inside: avoid; margin: 0 0 16px; padding: 18px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    animation: pop .4s ease both;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.review[hidden] { display: none; }
.review-head { display: flex; gap: 12px; align-items: center; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font-weight: 700; color: #fff; background: var(--grad);
}
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .muted { font-size: 12px; }
.stars { margin-left: auto; color: #f5a623; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #e3ddd5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.tags:empty { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--paper); color: var(--ink-2); }
.tag-size { background: var(--ink); color: #fff; }
.tag-size b { color: #ffb37a; }
.tag-muted { color: var(--muted); font-weight: 500; }
.fit-small { background: #fde9e6; color: #b2392b; }
.fit-true { background: #e2f6ee; color: #0c7a52; }
.fit-large { background: #e6edff; color: #2b55c4; }
.review-text { margin: 0; font-size: 15px; color: var(--ink-2); word-wrap: break-word; }
mark { border-radius: 5px; padding: 1px 4px; font-weight: 600; }
mark.hl-size { background: #ffe4cf; color: #a44a00; }
mark.hl-body { background: #ece6ff; color: #5236c9; }
mark.hl-fit { background: #dcf5ea; color: #0c7a52; }
mark.hl-word { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; padding: 0; }
.review-photo { display: block; margin-top: 14px; border-radius: 12px; overflow: hidden; cursor: zoom-in; max-height: 260px; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.review-photo:hover img { transform: scale(1.04); }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 0; }

/* açılış animasyonu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* yükleniyor */
.loader {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
    background: rgba(18, 15, 23, .72); backdrop-filter: blur(10px);
}
.loader[hidden] { display: none; }
.loader-card { width: min(380px, 90vw); padding: 32px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.hanger { width: 70px; height: 70px; margin: 0 auto 10px; color: var(--accent-2); animation: swing 1.4s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.loader-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.loader-steps { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 14px; color: var(--muted); }
.loader-steps li { padding: 7px 0 7px 28px; position: relative; transition: color .3s; }
.loader-steps li::before {
    content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
    border-radius: 50%; border: 2px solid var(--line); transition: .3s;
}
.loader-steps li.active { color: var(--ink); font-weight: 600; }
.loader-steps li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.loader-steps li.done { color: var(--ink-2); }
.loader-steps li.done::before { background: var(--true); border-color: var(--true); }
@keyframes spin { to { transform: rotate(360deg); } }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
    background: rgba(10, 8, 12, .92); padding: 40px 70px; animation: pop .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close, .lb-nav {
    position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.12);
    width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; display: grid; place-items: center;
    transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* ==========================================================================
   ÜYE MENÜSÜ
   ========================================================================== */
.user-menu { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.um-link { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.um-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.um-btn {
    text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 12px; color: var(--ink); background: #fff;
    transition: transform .15s;
}
.um-btn:hover { transform: translateY(-1px); }
.um-profile {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 600;
    padding: 5px 12px 5px 5px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.um-profile:hover { background: rgba(255,255,255,.16); }
.um-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 13px; }

/* ==========================================================================
   GİRİŞ / KAYIT
   ========================================================================== */
.auth-body { background: var(--paper); }
.auth-shell { display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.1fr; min-height: 100vh; }
.auth-side {
    position: relative; overflow: hidden; isolation: isolate; background: #120f17; color: #fff;
    padding: 34px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.auth-side::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
}
.auth-pitch h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 26px; }
.lead-sm { color: rgba(255,255,255,.72); font-size: 17px; max-width: 420px; }
.auth-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-benefits li {
    padding: 14px 16px 14px 48px; border-radius: 16px; position: relative; color: rgba(255,255,255,.72); font-size: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px);
}
.auth-benefits li::before {
    content: "✓"; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--grad); color: #fff;
}
.auth-benefits b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.auth-foot { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }
.auth-main { padding: 28px clamp(20px, 5vw, 70px) 50px; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; font-size: 14px; }
.auth-top a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.back-link { color: var(--ink) !important; }
.auth-card { width: 100%; max-width: 440px; margin: auto; }
.auth-card.wide { max-width: 680px; margin: 0 auto; }
.auth-card h2 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 4px; }
.auth-card > .muted { margin: 0 0 22px; }
.form-step { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.form-step h3 { margin: 0; font-size: 17px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--ink); font-size: 14px; }

.field {
    position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
    transition: border-color .2s, box-shadow .2s; flex-wrap: wrap;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,122,26,.12); }
.field > span {
    flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    padding-top: 10px;
}
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--sans); padding: 2px 0 11px; color: var(--ink); }
.field em { font-style: normal; color: var(--muted); font-size: 13px; padding-bottom: 10px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field input { width: 100%; }
.field-row .field { margin-bottom: 12px; }
.eye { position: absolute; right: 10px; bottom: 8px; border: 0; background: transparent; font-size: 16px; opacity: .45; padding: 4px; }
.eye.on { opacity: 1; }
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.pw-meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 2px 0 8px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s, background .3s; }
.pw-meter.s1 span { width: 20%; background: var(--small); }
.pw-meter.s2 span { width: 40%; background: #f5a623; }
.pw-meter.s3 span { width: 60%; background: #f5a623; }
.pw-meter.s4 span { width: 80%; background: var(--true); }
.pw-meter.s5 span { width: 100%; background: var(--true); }
.btn-block { width: 100%; justify-content: center; padding: 15px; font-size: 15px; margin-top: 18px; }
.btn-primary.btn-block { background: var(--grad); border: 0; box-shadow: 0 12px 30px -10px rgba(232,69,124,.6); }
.remember { margin: 6px 0 0; }
.form-alert, .form-info { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.form-alert { background: #fde9e6; color: #a3302a; border: 1px solid #f7c6bf; }
.form-info { background: #e2f6ee; color: #0c6b48; border: 1px solid #b8e8d4; }

/* ölçü alanları + figür */
.body-fields { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.bf-figure { position: sticky; top: 20px; text-align: center; }
.figure { width: 100%; max-width: 150px; }
.bf-line ellipse, .bf-line line { fill: none; stroke: #c9bfb5; stroke-width: 2; stroke-dasharray: 4 4; transition: stroke .25s; }
.bf-line text { font: 600 10px var(--sans); fill: #b3aaa1; transition: fill .25s; }
.bf-line.active ellipse, .bf-line.active line { stroke: var(--accent-2); stroke-dasharray: none; stroke-width: 3; }
.bf-line.active text { fill: var(--accent-2); }
.bf-tip { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; min-height: 50px; }

/* ==========================================================================
   KİŞİSEL ÖNERİ KARTI
   ========================================================================== */
.rec-card { margin-top: 18px; padding: 0; overflow: hidden; }
.rec-top { display: grid; grid-template-columns: 300px 1fr; }
.rec-hero {
    position: relative; overflow: hidden; isolation: isolate; background: #16121c; color: #fff;
    padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.rec-hero::before {
    content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; top: -120px; left: -60px; z-index: -1;
    background: var(--grad); filter: blur(70px); opacity: .45;
}
.eyebrow.dark { margin: 0 0 16px; font-size: 11px; }
.rec-ring { position: relative; width: 170px; height: 170px; }
.rec-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 9; }
.ring-fg {
    fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round;
    stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1) .2s;
}
.in .ring-fg { stroke-dashoffset: var(--off); }
.rec-size { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rec-size-val { font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.rec-size-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; letter-spacing: .06em; }
.rec-conf { margin: 14px 0 4px; font-size: 15px; color: rgba(255,255,255,.75); }
.rec-conf b { color: #fff; font-size: 20px; }
.rec-alt { margin: 4px 0; font-size: 14px; color: rgba(255,255,255,.75); }
.rec-alt b { color: #ffb37a; }
.rec-stock { margin: 8px 0 0; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(239,107,91,.25); color: #ffd2cb; }
.rec-weights { margin: auto 0 0; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,.5); }

.rec-detail { padding: 26px 28px; }
.rec-me { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; font-size: 13px; }
.pill { padding: 5px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-2); }
.pill b { color: var(--ink); }
.edit-link { margin-left: 4px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.reasons { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.reasons li { position: relative; padding: 10px 12px 10px 36px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.reasons li::before { content: "→"; position: absolute; left: 13px; top: 9px; font-weight: 700; color: var(--accent); }

.prob { display: flex; gap: 10px; align-items: flex-end; height: 150px; padding-top: 6px; }
.prob-col { flex: 1; max-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.prob-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; border-radius: 10px; background: var(--paper); overflow: hidden; }
.prob-bar span { display: block; width: 100%; height: 0; border-radius: 10px; background: #d9d1c8; transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.in .prob-bar span { height: var(--h); }
.prob-col.best .prob-bar span { background: var(--grad); }
.prob-pct { font-size: 12px; color: var(--muted); font-weight: 600; }
.prob-size { font-weight: 700; font-size: 14px; padding: 4px 8px; border-radius: 8px; }
.prob-col.best .prob-size { background: var(--ink); color: #fff; }
.prob-col.best .prob-pct { color: var(--ink); }
.prob-col.soldout .prob-size { text-decoration: line-through; color: #bdb6ad; }

.rec-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 0 28px 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.src-badge { margin-left: 8px; font-size: 10px; letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; background: var(--paper); color: var(--muted); vertical-align: middle; }
.src-badge.ocr { background: #e2f6ee; color: #0c7a52; }
.table-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.match-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.match-table th, .match-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.match-table thead th { background: var(--paper); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.match-table thead th small { display: block; text-transform: none; letter-spacing: 0; color: var(--accent-2); font-weight: 600; margin-top: 2px; }
.match-table tbody th { text-align: left; font-weight: 700; }
.match-table tbody tr:last-child th, .match-table tbody tr:last-child td { border-bottom: 0; }
.match-table tr.rec-row { background: #fff4ec; box-shadow: inset 4px 0 0 var(--accent); }
.match-table .star { color: var(--accent); }
td.c-ok { color: #0c7a52; font-weight: 600; background: rgba(25,169,116,.1); }
td.c-tight { color: #b2392b; background: rgba(239,107,91,.08); }
td.c-loose { color: #2b55c4; background: rgba(76,125,255,.07); }
td.c-na { color: var(--muted); }
.match-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.match-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.match-legend i.c-ok { background: var(--true); }
.match-legend i.c-tight { background: var(--small); }
.match-legend i.c-loose { background: var(--large); }

.neighbor { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.neighbor:last-child { border-bottom: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.nb-body { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nb-stats { font-size: 14px; font-weight: 600; }
.nb-sim { height: 5px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.nb-sim span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 1s ease .3s; }
.in .nb-sim span { width: var(--w); }
.nb-size { font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; }
.neighbor .tag { margin: 0; }

.rec-cta { margin-top: 18px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.rec-cta h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; }
.rec-cta p { margin: 0; max-width: 560px; }
.cta-text { flex: 1 1 320px; }
.cta-actions { display: flex; gap: 10px; }
.cta-art { display: flex; gap: 6px; }
.cta-art span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); }
.cta-art span.on { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-6px); box-shadow: 0 10px 24px -8px rgba(232,69,124,.6); }

/* ==========================================================================
   PROFİL
   ========================================================================== */
.hero--slim { padding-bottom: 130px; }
.profile-head { max-width: 1180px; margin: 20px auto 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin: 4px 0; letter-spacing: -.03em; }
.profile-head .eyebrow { margin: 0; }
.profile-head .btn-light { margin-left: auto; }
.muted-light { color: rgba(255,255,255,.6); margin: 0; font-size: 14px; }
.big-avatar { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-family: var(--serif); font-size: 36px; font-weight: 700; background: var(--grad); box-shadow: 0 16px 40px -12px rgba(232,69,124,.7); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.grid-2 > *, .product > *, .rec-top > *, .rec-bottom > * { min-width: 0; }
.profile .metric-val { font-size: 30px; }
.history { display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none;
    border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.history-item:hover { border-color: var(--ink); transform: translateX(3px); }
.history-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 10px; background: var(--paper); flex: none; }
.hi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hi-body strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-body .muted { font-size: 12px; }
.hi-size { font-family: var(--serif); font-size: 24px; font-weight: 700; text-align: center; min-width: 54px; line-height: 1; }
.hi-size small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
    .product { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { padding: 26px 22px; }
    .auth-pitch h1 { font-size: 30px; }
    .auth-benefits, .auth-foot { display: none; }
    .rec-top, .rec-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .body-fields { grid-template-columns: 1fr; }
    .bf-figure { display: none; }
    .user-menu .um-name { display: none; }
    .rec-detail, .rec-bottom { padding-left: 18px; padding-right: 18px; }
    .prob { gap: 6px; }
}
@media (max-width: 600px) {
    .hero { padding: 0 16px 90px; }
    .topbar-note { display: none; }
    .search { flex-wrap: wrap; }
    .search-icon { display: none; }
    .search-input { flex-basis: 100%; padding: 12px; }
    .search-btn { width: 100%; }
    .results { padding: 0 16px 40px; }
    .card { padding: 20px; }
    .product { padding: 14px; gap: 20px; }
    .stat-row { grid-template-columns: 48px 1fr 56px; }
    .stat-body { grid-column: 2 / -1; text-align: left; margin-top: -6px; }
    .mini-search { width: 100%; }
    .toolbar-right { width: 100%; }
    .legend-marks { margin-left: 0; }
    .lightbox { padding: 60px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .seg, .stat-bar span { width: var(--w); }
}
