/* =====================================================================
   FERMANOĞULLARI — "Hassas Kesim" tasarım sistemi
   Grafit + marka rengi, teknik çizim ızgarası, ölçü çizgileri,
   testere bıçağı motifi ve kenar bandı animasyonları
   ===================================================================== */
:root {
    --fm-primary: #E8702A;
    --fm-dark: #1E2A3B;
    --fm-accent: #9AA9BC;
    --ink: #10151C;
    --graphite: #161D26;
    --steel: #232E3C;
    --paper: #F5F2EC;
    --text: #27303C;
    --muted: #6B7686;
    --line: rgba(16, 21, 28, .08);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-display: 'Barlow Condensed', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: #fff; font-size: 15.5px; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .display-font { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
a { color: var(--fm-primary); text-decoration: none; transition: color .2s; }
a:hover { color: color-mix(in srgb, var(--fm-primary) 78%, #000); }
img { max-width: 100%; }
::selection { background: var(--fm-primary); color: #fff; }

.mono-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; color: var(--fm-primary); text-transform: uppercase; font-weight: 700; }
.text-fm { color: var(--fm-primary) !important; }
.bg-paper { background: var(--paper); }
.blueprint { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.blueprint-dark { background-color: var(--ink); color: #b9c3cf; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.blueprint-dark h2, .blueprint-dark h3 { color: #fff; }

/* ---------------- Butonlar ---------------- */
.btn-fm { background: var(--fm-primary); color: #fff; border: 0; font-weight: 600; padding: .72rem 1.35rem; border-radius: 10px; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.btn-fm:hover, .btn-fm:focus { color: #fff; background: var(--fm-primary); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--fm-primary); }
.btn-fm.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-cut::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 3px; left: -10%; background: rgba(255,255,255,.9); box-shadow: 0 0 14px 4px rgba(255,255,255,.6); transform: skewX(-20deg); transition: left .6s var(--ease); z-index: -1; }
.btn-cut:hover::after { left: 115%; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; font-weight: 600; padding: .72rem 1.35rem; border-radius: 10px; backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-ghost.btn-lg { padding: .95rem 1.6rem; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; padding: .72rem 1.35rem; }
.btn-ink:hover { background: #000; color: #fff; }

/* ---------------- Preloader ---------------- */
.preloader { position: fixed; inset: 0; z-index: 3000; background: var(--ink); display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { text-align: center; color: #fff; }
.pl-saw { width: 84px; height: 84px; color: var(--fm-primary); animation: spin .8s linear infinite; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--fm-primary) 55%, transparent)); }
.pl-text { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 4px; text-transform: uppercase; margin-top: 14px; }
.pl-bar { width: 180px; height: 3px; background: rgba(255,255,255,.1); margin: 12px auto 0; overflow: hidden; border-radius: 3px; }
.pl-bar span { display: block; height: 100%; width: 40%; background: var(--fm-primary); animation: plbar 1s var(--ease) infinite; }
@keyframes plbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--fm-primary); z-index: 2000; box-shadow: 0 0 10px var(--fm-primary); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); transition: background .35s, box-shadow .35s; }
.topbar { background: var(--ink); color: #aab5c2; font-size: 12.5px; padding: 7px 0; transition: margin .35s, opacity .35s; }
.topbar a, .topbar span { color: #aab5c2; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--fm-primary); margin-right: 5px; }
.site-header .navbar { padding: 12px 0; transition: padding .3s; }
.site-header.scrolled { box-shadow: 0 10px 40px -18px rgba(0,0,0,.25); }
.site-header.scrolled { }
body.home .site-header.scrolled .navbar { padding: 6px 0; }
body.home .site-header.scrolled .topbar { margin-top: -34px; opacity: 0; }
.brand-logo { max-height: 58px; width: auto; transition: max-height .3s; }
body.home .site-header.scrolled .brand-logo { max-height: 46px; }
.brand-text { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { background: var(--fm-primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; padding: 4px 10px; border-radius: 9px; letter-spacing: 1px; line-height: 1.2; box-shadow: 4px 4px 0 var(--ink); }
.brand-text.light .brand-mark { box-shadow: 4px 4px 0 rgba(255,255,255,.18); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-transform: uppercase; letter-spacing: .5px; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.3px; color: var(--muted); font-weight: 500; margin-top: 4px; text-transform: uppercase; }
.brand-text.light { color: #fff; }
.site-header .nav-link { font-weight: 600; color: var(--ink); font-size: 14px; padding: .55rem .9rem !important; position: relative; }
.site-header .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 3px; height: 2px; background: var(--fm-primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--fm-primary); }
.site-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; vertical-align: 0; font-size: 10px; margin-left: 4px; }
.site-header .dropdown-menu { border: 0; box-shadow: 0 24px 50px -20px rgba(0,0,0,.3); border-radius: 14px; padding: 10px; min-width: 260px; border-top: 3px solid var(--fm-primary); }
.site-header .dropdown-item { border-radius: 8px; padding: 9px 12px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.site-header .dropdown-item i { color: var(--fm-primary); }
.site-header .dropdown-item:hover { background: var(--paper); color: var(--ink); }
body.home .site-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
body.home .site-header .topbar { background: transparent; border-bottom: 1px solid rgba(255,255,255,.1); }
body.home .site-header:not(.scrolled) .nav-link, body.home .site-header:not(.scrolled) .brand-text { color: #fff; }
body.home .site-header:not(.scrolled) .brand-name small { color: rgba(255,255,255,.6); }
body.home .site-header:not(.scrolled) .brand-mark { box-shadow: 4px 4px 0 rgba(255,255,255,.2); }
body.home .site-header:not(.scrolled) .burger span { background: #fff; }
body.home .site-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.navbar-toggler { border: 0; padding: 8px; }
.navbar-toggler:focus { box-shadow: none; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; animation: dropIn .25s var(--ease); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) {
    .site-header .navbar-collapse { background: #fff; margin: 10px -12px -12px; padding: 12px 18px 20px; border-radius: 0 0 16px 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
    body.home .site-header .navbar-collapse .nav-link { color: var(--ink) !important; }
    .site-header .nav-link::after { display: none; }
}

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100vh; background: var(--ink); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .bg { position: absolute; inset: -4%; background-size: cover; background-position: center; transform: scale(1.12); }
.hero-slide.active .bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.15); } to { transform: scale(1.02) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,14,20,.95) 0%, rgba(10,14,20,.8) 42%, rgba(10,14,20,.4) 75%, rgba(10,14,20,.6) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero .container { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 120px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: 40px; backdrop-filter: blur(6px); text-transform: uppercase; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fm-primary); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fm-primary) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.8rem); font-weight: 800; line-height: .94; text-transform: uppercase; margin: 22px 0 18px; }
.hero h1 .accent { color: var(--fm-primary); }
.hero .lead-text { color: #c9d2dd; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 560px; line-height: 1.65; }
.hero-text > * { opacity: 0; transform: translateY(26px); }
.hero-text.in > * { animation: fadeUp .9s var(--ease) forwards; }
.hero-text.in > *:nth-child(2) { animation-delay: .1s; }
.hero-text.in > *:nth-child(3) { animation-delay: .22s; }
.hero-text.in > *:nth-child(4) { animation-delay: .34s; }
.hero-text.in > *:nth-child(5) { animation-delay: .46s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-chip { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #dfe6ee; display: inline-flex; gap: 8px; align-items: center; }
.hero-chip i { color: var(--fm-primary); }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 38px; display: flex; gap: 10px; }
.hero-dots button { width: 44px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; position: relative; }
.hero-dots button span { position: absolute; inset: 0; background: var(--fm-primary); transform: scaleX(0); transform-origin: left; }
.hero-dots button.active span { animation: dotfill 7s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.scroll-cue { position: absolute; z-index: 3; right: 34px; bottom: 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.6); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--fm-primary), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----- Hero: kesim sahnesi (SVG) ----- */
.cut-scene { position: relative; width: 100%; max-width: 560px; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.cut-scene svg { width: 100%; height: auto; overflow: visible; }
.cs-panel { fill: #E9DCC8; }
.cs-grain { stroke: rgba(140,105,60,.16); stroke-width: 1; fill: none; }
.cs-cutline { stroke: var(--fm-primary); stroke-width: 2.5; fill: none; stroke-dasharray: 440; stroke-dashoffset: 440; filter: drop-shadow(0 0 6px var(--fm-primary)); }
.cs-cutline.v { animation: cutV 10s linear infinite; }
.cs-cutline.h { animation: cutH 10s linear infinite; }
@keyframes cutV { 0% { stroke-dashoffset: 440; opacity: 1; } 18% { stroke-dashoffset: 0; opacity: 1; } 40% { opacity: 1; } 46%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cutH { 0%, 20% { stroke-dashoffset: 440; opacity: 1; } 38% { stroke-dashoffset: 0; opacity: 1; } 40% { opacity: 1; } 46%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.cs-blade { color: #d5dbe2; }
.cs-blade .spin { animation: spin .35s linear infinite; transform-box: fill-box; transform-origin: center; }
.cs-blade.v { animation: bladeV 10s linear infinite; }
.cs-blade.h { animation: bladeH 10s linear infinite; }
@keyframes bladeV { 0% { transform: translate(0, -10px); opacity: 1; } 18% { transform: translate(0, 290px); opacity: 1; } 19%, 100% { transform: translate(0, 290px); opacity: 0; } }
@keyframes bladeH { 0%, 19% { transform: translate(-20px, 0); opacity: 0; } 20% { transform: translate(-20px, 0); opacity: 1; } 38% { transform: translate(430px, 0); opacity: 1; } 39%, 100% { transform: translate(430px, 0); opacity: 0; } }
.cs-piece.p1 { animation: p1 10s var(--ease) infinite; }
.cs-piece.p2 { animation: p2 10s var(--ease) infinite; }
.cs-piece.p3 { animation: p3 10s var(--ease) infinite; }
.cs-piece.p4 { animation: p4 10s var(--ease) infinite; }
@keyframes p1 { 0%, 40% { transform: none; } 50%, 92% { transform: translate(-16px, -14px); } 100% { transform: none; } }
@keyframes p2 { 0%, 40% { transform: none; } 50%, 92% { transform: translate(16px, -14px); } 100% { transform: none; } }
@keyframes p3 { 0%, 40% { transform: none; } 50%, 92% { transform: translate(-16px, 14px); } 100% { transform: none; } }
@keyframes p4 { 0%, 40% { transform: none; } 50%, 92% { transform: translate(16px, 14px); } 100% { transform: none; } }
.cs-band { fill: none; stroke: var(--fm-primary); stroke-width: 5; stroke-dasharray: 760; stroke-dashoffset: 760; animation: band 10s linear infinite; }
.cs-band.b2 { animation-delay: .2s; } .cs-band.b3 { animation-delay: .4s; } .cs-band.b4 { animation-delay: .6s; }
@keyframes band { 0%, 50% { stroke-dashoffset: 760; opacity: 1; } 68%, 92% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.cs-dim { opacity: 0; animation: dim 10s linear infinite; }
@keyframes dim { 0%, 66% { opacity: 0; } 72%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cs-dim line { stroke: #fff; stroke-width: 1; }
.cs-dim text { fill: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.cs-label { font-family: var(--font-mono); font-size: 11px; fill: rgba(255,255,255,.5); letter-spacing: 1.5px; }
.cs-badge { position: absolute; background: rgba(16,21,28,.85); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); border-radius: 12px; padding: 10px 14px; color: #fff; font-size: 13px; display: flex; gap: 10px; align-items: center; animation: floaty 5s ease-in-out infinite; }
.cs-badge > i { width: 34px; height: 34px; border-radius: 9px; background: var(--fm-primary); display: grid; place-items: center; font-size: 16px; }
.cs-badge b { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.cs-badge small { color: #9aa6b4; font-size: 11px; }
.cs-badge.b-1 { left: -24px; top: 16%; }
.cs-badge.b-2 { right: -14px; bottom: 4%; animation-delay: -2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Malzeme şeridi ---------------- */
.marquee { background: var(--fm-primary); color: #fff; overflow: hidden; position: relative; z-index: 4; transform: rotate(-1.4deg); margin: -28px -10px 0; padding: 16px 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.marquee.alt { background: var(--ink); transform: rotate(1.2deg); margin-top: -48px; z-index: 3; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee.alt .marquee-track { animation-direction: reverse; animation-duration: 50s; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; text-transform: uppercase; letter-spacing: 1px; padding: 0 24px; display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: rgba(255,255,255,.75); animation: spin 3s linear infinite; }
.marquee.alt .marquee-item svg { color: var(--fm-primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Bölümler ---------------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; position: relative; z-index: 1; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); font-weight: 800; text-transform: uppercase; line-height: .96; margin: 12px 0 14px; }
.section-head h2 em { font-style: normal; color: var(--fm-primary); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.blueprint-dark .section-head p { color: #9aa6b4; }
.section-num { position: absolute; top: 50px; right: 4%; font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 14vw, 13rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(16,21,28,.07); pointer-events: none; user-select: none; }
.blueprint-dark .section-num { -webkit-text-stroke-color: rgba(255,255,255,.07); }

/* ---------------- Hizmet kartları ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.svc-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); isolation: isolate; }
.svc-card .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.1s var(--ease), filter .6s; z-index: -2; filter: saturate(.9); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,14,20,.05) 25%, rgba(10,14,20,.85) 70%, rgba(10,14,20,.96)); transition: background .5s; }
.svc-card:hover .img { transform: scale(1.1); filter: saturate(1.05); }
.svc-card:hover::before { background: linear-gradient(180deg, color-mix(in srgb, var(--fm-primary) 22%, transparent) 0%, rgba(10,14,20,.9) 70%); }
.svc-card .num { position: absolute; top: 20px; left: 22px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.8); letter-spacing: 2px; }
.svc-card .ico { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 22px; transition: .4s var(--ease); }
.svc-card:hover .ico { background: var(--fm-primary); border-color: var(--fm-primary); transform: rotate(-8deg) scale(1.06); }
.svc-card .body { padding: 26px; }
.svc-card h3 { color: #fff; font-size: 2rem; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; line-height: 1; }
.svc-card p { color: #c4ccd6; font-size: 14.5px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.svc-card:hover p, .svc-card:focus-visible p { max-height: 150px; opacity: 1; margin-bottom: 14px; }
.svc-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: 14px; }
.svc-card .go i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fm-primary); transition: transform .35s var(--ease); }
.svc-card:hover .go i { transform: translateX(5px) rotate(-45deg); }
.svc-card .edge { position: absolute; background: var(--fm-primary); z-index: 2; transition: transform .45s var(--ease); }
.svc-card .edge.t { top: 0; left: 0; right: 0; height: 4px; transform: scaleX(0); transform-origin: left; }
.svc-card .edge.r { top: 0; right: 0; bottom: 0; width: 4px; transform: scaleY(0); transform-origin: top; transition-delay: .1s; }
.svc-card .edge.b { bottom: 0; left: 0; right: 0; height: 4px; transform: scaleX(0); transform-origin: right; transition-delay: .2s; }
.svc-card .edge.l { top: 0; left: 0; bottom: 0; width: 4px; transform: scaleY(0); transform-origin: bottom; transition-delay: .3s; }
.svc-card:hover .edge.t, .svc-card:hover .edge.b { transform: scaleX(1); }
.svc-card:hover .edge.r, .svc-card:hover .edge.l { transform: scaleY(1); }
@media (hover: none) { .svc-card p { max-height: 150px; opacity: 1; margin-bottom: 14px; } }

/* ---------------- Hakkımızda ---------------- */
.about-visual { position: relative; padding: 0 0 50px 50px; }
.about-visual .main { border-radius: 18px; aspect-ratio: 4 / 4.6; background: var(--steel) center/cover; position: relative; overflow: hidden; }
.about-visual .frame { position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 2px solid var(--fm-primary); border-radius: 18px; z-index: -1; }
.about-visual .mini { position: absolute; right: -24px; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 16px; background: var(--steel) center/cover; border: 6px solid #fff; box-shadow: 0 30px 50px -20px rgba(0,0,0,.45); }
.about-visual .exp { position: absolute; left: 0; top: 40px; background: var(--ink); color: #fff; padding: 16px 20px; border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); display: flex; gap: 12px; align-items: center; z-index: 2; }
.about-visual .exp svg { width: 44px; height: 44px; color: var(--fm-primary); animation: spin 6s linear infinite; }
.about-visual .exp b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; }
.about-visual .exp small { color: #9aa6b4; font-size: 12px; }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { padding-left: 32px; position: relative; font-weight: 500; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--fm-primary) 14%, #fff); color: var(--fm-primary); display: grid; place-items: center; font-size: 15px; }
@media (max-width: 575px) { .check-list { grid-template-columns: 1fr; } }

/* ---------------- Sayaç bandı ---------------- */
.stats-band { position: relative; color: #fff; overflow: hidden; }
.stats-band .bgimg { position: absolute; inset: -25% 0; background: var(--ink) center/cover; filter: grayscale(.3) brightness(.32); will-change: transform; }
.stats-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.85), rgba(10,14,20,.5)); }
.stats-band .container { position: relative; z-index: 2; padding-top: 95px; padding-bottom: 95px; }
.stat-box { border-left: 2px solid rgba(255,255,255,.12); padding: 4px 0 4px 24px; position: relative; }
.stat-box::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--fm-primary); transition: height 1.2s var(--ease); }
.stat-box.in::before { height: 100%; }
.stat-box .val { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 800; line-height: 1; color: #fff; }
.stat-box .lbl { color: #aab5c2; margin-top: 8px; font-weight: 500; }

/* ---------------- Bant simülatörü ---------------- */
.sim-wrap { background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(16,21,28,.35); overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; }
.sim-stage { background: var(--ink); position: relative; padding: 50px 40px; min-height: 460px; display: grid; place-items: center; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 30px 30px; }
.sim-stage svg { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.sim-panel { fill: #E9DCC8; transition: all .5s var(--ease); }
.sim-edge { stroke: rgba(255,255,255,.2); stroke-linecap: butt; transition: stroke .3s, stroke-width .3s; pointer-events: none; }
.sim-edge.on { stroke: var(--fm-primary); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fm-primary) 70%, transparent)); }
.sim-hit { stroke: transparent; stroke-width: 44; cursor: pointer; }
.sim-hit:hover + .sim-edge:not(.on) { stroke: rgba(255,255,255,.5); }
.sim-dim line { stroke: rgba(255,255,255,.45); stroke-width: 1; }
.sim-dim text { fill: #fff; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.sim-tag { font-family: var(--font-mono); font-size: 11px; fill: rgba(255,255,255,.6); letter-spacing: 1px; pointer-events: none; }
.sim-hint { position: absolute; top: 18px; left: 22px; color: #9aa6b4; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; }
.sim-ctrl { padding: 36px; }
.sim-ctrl .lbl { font-weight: 600; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; display: block; }
.sim-input { display: flex; align-items: center; border: 1.5px solid #e1e5ea; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.sim-input:focus-within { border-color: var(--fm-primary); }
.sim-input input { border: 0; outline: 0; padding: 11px 12px; width: 100%; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.sim-input span { padding: 0 12px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-chip { border: 1.5px solid #e1e5ea; background: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-family: var(--font-mono); font-size: 13px; transition: .2s; }
.sim-chip:hover { border-color: var(--fm-primary); }
.sim-chip.on { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; }
.sim-out { background: var(--paper); border-radius: 12px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.sim-out b { color: var(--fm-primary); }
@media (max-width: 991px) { .sim-wrap { grid-template-columns: 1fr; } .sim-stage { min-height: 320px; padding: 40px 20px; } .sim-ctrl { padding: 24px; } }

/* ---------------- Süreç ---------------- */
.process { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 26px; }
.process-line { position: absolute; top: 45px; left: 8%; right: 8%; height: 2px; background: rgba(255,255,255,.1); }
.process-line span { position: absolute; inset: 0; background: var(--fm-primary); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); box-shadow: 0 0 12px var(--fm-primary); }
.process.in .process-line span { transform: scaleX(1); }
.p-step { position: relative; text-align: center; padding: 0 8px; }
.p-step .circle { width: 90px; height: 90px; margin: 0 auto 22px; border-radius: 50%; background: var(--graphite); border: 2px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 32px; color: var(--fm-primary); position: relative; transition: .5s var(--ease); }
.p-step .circle::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18); animation: spin 18s linear infinite; }
.p-step:hover .circle { background: var(--fm-primary); color: #fff; border-color: var(--fm-primary); transform: translateY(-6px); }
.p-step .n { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.p-step h5 { color: #fff; font-size: 1.5rem; text-transform: uppercase; }
.p-step p { color: #9aa6b4; font-size: 14.5px; }
@media (max-width: 991px) { .process { grid-template-columns: 1fr 1fr; } .process-line { display: none; } }
@media (max-width: 575px) { .process { grid-template-columns: 1fr; } }

/* ---------------- Galeri ---------------- */
.gal-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gal-mosaic .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-mosaic .g-item:nth-child(4) { grid-row: span 2; }
.gal-mosaic .g-item:nth-child(7) { grid-column: span 2; }
.g-item { position: relative; border-radius: 14px; overflow: hidden; display: block; background: var(--steel); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.g-item:hover img { transform: scale(1.08); filter: brightness(.7); }
.g-item .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; font-weight: 600; font-size: 14px; transform: translateY(14px); opacity: 0; transition: .4s var(--ease); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.g-item .cap small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--fm-primary); letter-spacing: 1.2px; text-transform: uppercase; }
.g-item:hover .cap { transform: none; opacity: 1; }
.g-item .zoom { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--fm-primary); color: #fff; display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: .4s var(--ease); }
.g-item:hover .zoom { transform: none; }
.g-item.hide { display: none; }
@media (max-width: 991px) { .gal-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gal-mosaic .g-item:nth-child(7) { grid-column: span 1; } }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.gallery-filter button { border: 1.5px solid #dfe3e8; background: #fff; padding: 9px 20px; border-radius: 40px; font-weight: 600; color: var(--ink); font-size: 14px; transition: .25s; }
.gallery-filter button .c { font-family: var(--font-mono); font-size: 11px; opacity: .6; margin-left: 4px; }
.gallery-filter button.active, .gallery-filter button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-filter button.active { box-shadow: inset 0 -3px 0 var(--fm-primary); }
.gallery-masonry { columns: 4 260px; column-gap: 14px; }
.gallery-masonry .g-item { break-inside: avoid; margin-bottom: 14px; }
.gallery-masonry .g-item img { height: auto; }
.gallery-masonry .g-item .cap { opacity: 1; transform: none; background: linear-gradient(transparent, rgba(0,0,0,.6)); left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; }
.photo-reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.photo-reel .track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.photo-reel:hover .track { animation-play-state: paused; }
.photo-reel .ph { width: 240px; height: 320px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; position: relative; display: block; }
.photo-reel .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo-reel .ph:hover img { transform: scale(1.08); }

/* ---------------- Animasyon yardımcıları ---------------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal-cut { position: relative; overflow: hidden; }
.reveal-cut::after { content: ""; position: absolute; inset: 0; background: var(--fm-primary); transform-origin: right; transition: transform 1.1s var(--ease); z-index: 3; }
.reveal-cut.in::after { transform: scaleX(0); }

/* ---------------- İç sayfa başlığı ---------------- */
.page-hero { position: relative; padding: 130px 0 100px; color: #fff; overflow: hidden; background: var(--ink); }
.page-hero .bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; filter: grayscale(.25) brightness(.42); will-change: transform; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.92), rgba(10,14,20,.4)); z-index: 1; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); text-transform: uppercase; font-weight: 800; margin: 10px 0 0; line-height: .95; animation: fadeUp .9s var(--ease) both; }
.page-hero .breadcrumb { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px; animation: fadeUp .9s .15s var(--ease) both; }
.page-hero .breadcrumb a { color: #c9d2dd; }
.page-hero .breadcrumb-item.active { color: var(--fm-primary); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #6b7686; content: "/"; }
.page-hero .ph-saw { position: absolute; z-index: 2; right: -90px; bottom: -160px; width: 380px; height: 380px; color: rgba(255,255,255,.06); animation: spin 30s linear infinite; }

/* ---------------- İçerik ---------------- */
.rich-content { font-size: 1.04rem; }
.rich-content p { line-height: 1.85; }
.rich-content img { border-radius: 12px; height: auto; }
.rich-content ul { padding-left: 0; list-style: none; }
.rich-content ul li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px dashed #e4e7eb; }
.rich-content ul li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 8px; color: var(--fm-primary); font-size: 20px; }
.side-box { background: var(--paper); border-radius: 16px; padding: 24px; }
.side-box a { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; margin: 0 -14px; border-radius: 10px; color: var(--ink); font-weight: 600; transition: .25s; }
.side-box a:hover { background: #fff; color: var(--fm-primary); padding-left: 20px; }
.feature-card { background: #fff; border-radius: 16px; padding: 28px; height: 100%; border: 1px solid #eceff2; transition: .35s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16,21,28,.35); border-color: transparent; }
.feature-card .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--fm-primary); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h5 { font-size: 1.45rem; text-transform: uppercase; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------------- İletişim ---------------- */
.contact-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #eceff2; display: flex; gap: 16px; align-items: flex-start; height: 100%; transition: .35s var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(16,21,28,.35); }
.contact-card > i { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--fm-primary); font-size: 21px; }
.contact-card h6 { margin-bottom: 4px; font-size: 1.2rem; text-transform: uppercase; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); }
.map-wrap { border-radius: 18px; overflow: hidden; height: 100%; min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.form-box { background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 40px 80px -45px rgba(16,21,28,.45); }
.form-control, .form-select { border-radius: 10px; padding: .72rem .95rem; border: 1.5px solid #e1e5ea; }
.form-control:focus, .form-select:focus { border-color: var(--fm-primary); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--fm-primary) 18%, transparent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state i { font-size: 52px; color: var(--fm-accent); }

/* ---------------- Footer ---------------- */
.site-footer { background-color: var(--ink); color: #9aa6b4; position: relative; margin-top: 60px; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; }
.footer-cta { transform: translateY(-60px); margin-bottom: -20px; }
body.no-fcta .footer-cta { display: none; }
body.no-fcta .site-footer { padding-top: 70px; margin-top: 0; }
.fcta-inner { background: var(--fm-primary); border-radius: 22px; padding: 40px 44px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; color: #fff; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--fm-primary) 80%, #000); }
.fcta-inner .mono-label { color: rgba(255,255,255,.75); }
.fcta-inner h3 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-transform: uppercase; font-weight: 800; margin: 6px 0; line-height: 1; }
.fcta-inner p { margin: 0; color: rgba(255,255,255,.88); }
.fcta-inner .btn-fm { background: var(--ink); }
.fcta-saw { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; color: rgba(255,255,255,.14); animation: spin 14s linear infinite; pointer-events: none; }
.site-footer h6 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #9aa6b4; }
.site-footer a:hover { color: var(--fm-primary); }
.site-footer li { padding: 5px 0; }
.site-footer ul a { display: inline-block; transition: transform .25s; }
.site-footer ul a:hover { transform: translateX(5px); }
.site-footer .footer-logo { max-height: 62px; }
.text-muted-light { color: #8693a3; line-height: 1.75; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: .3s; font-size: 17px; }
.site-footer .social a:hover { background: var(--fm-primary); color: #fff; transform: translateY(-3px); }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--fm-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 50px; padding: 22px 0; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #6f7c8c; }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 29px; box-shadow: 0 12px 26px rgba(37,211,102,.45); z-index: 1040; transition: transform .25s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.to-top { position: fixed; right: 27px; bottom: 92px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; z-index: 1039; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: .35s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--fm-primary); stroke-width: 2.5; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }

/* ============ Sipariş formu ============ */
.order-page { background: var(--paper); padding: 50px 0 90px; }
.order-sheet { background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 40px 80px -50px rgba(20, 30, 50, .45); border-top: 5px solid var(--fm-primary); }
.order-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.order-head h1 { font-size: 2.6rem; text-transform: uppercase; font-weight: 800; margin: 0; }
.order-date { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: var(--ink); background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.fm-grid { width: 100%; border-collapse: collapse; }
.fm-grid th, .fm-grid td { border: 1px solid #e3e7ec; }
.fm-grid th { background: #f4f6f8; font-weight: 600; font-size: 13.5px; text-align: center; padding: 9px 6px; color: var(--ink); white-space: nowrap; }
.fm-grid td { padding: 0; }
.fm-grid input[type=text], .fm-grid input:not([type]), .fm-grid input[type=email], .fm-grid input[type=tel] { width: 100%; border: 0; padding: 10px 12px; font-size: 14px; background: transparent; outline: none; min-width: 0; }
.fm-grid input:focus { background: color-mix(in srgb, var(--fm-primary) 7%, #fff); box-shadow: inset 0 0 0 2px var(--fm-primary); }
.fm-grid .lbl { background: #f4f6f8; text-align: center; font-weight: 600; font-size: 13.5px; padding: 9px; }
.cut-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e3e7ec; margin-top: 24px; }
.cut-table { border-collapse: collapse; width: 100%; min-width: 1060px; }
.cut-table th, .cut-table td { border: 1px solid #e8ebef; }
.cut-table thead th { background: #f4f6f8; font-weight: 600; font-size: 13px; text-align: center; padding: 7px 4px; color: var(--ink); white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.cut-table thead tr.grp th { background: var(--ink); color: #fff; letter-spacing: 1px; font-size: 12.5px; padding: 10px 4px; font-family: var(--font-mono); }
.cut-table thead tr.grp th.pvc { background: var(--fm-primary); }
.cut-table td { padding: 0; height: 38px; }
.cut-table td.sira { width: 46px; text-align: center; font-weight: 700; color: var(--muted); background: #fafbfc; font-size: 13px; font-family: var(--font-mono); transition: .2s; }
.cut-table td.cb, .cut-table td.rd { width: 52px; text-align: center; }
.cut-table td.act { width: 38px; text-align: center; }
.cut-table input.ci { width: 100%; height: 38px; border: 0; padding: 4px 8px; font-size: 14px; outline: none; background: transparent; }
.cut-table input.num { text-align: center; font-family: var(--font-mono); font-weight: 600; }
.cut-table input.ci:focus { background: color-mix(in srgb, var(--fm-primary) 7%, #fff); box-shadow: inset 0 0 0 2px var(--fm-primary); }
.cut-table input[type=checkbox], .cut-table input[type=radio] { width: 20px; height: 20px; accent-color: var(--fm-primary); cursor: pointer; vertical-align: middle; }
.cut-table thead input[type=checkbox] { width: 15px; height: 15px; margin-top: 3px; }
.cut-table tbody tr:hover td { background: #fffaf5; }
.cut-table tbody tr.filled td.sira { color: #fff; background: var(--fm-primary); }
.cut-table .col-boy, .cut-table .col-en { width: 90px; }
.cut-table .col-adet { width: 70px; }
.cut-table .col-pvc { width: 150px; }
.row-del { border: 0; background: transparent; color: #b4bcc6; font-size: 16px; line-height: 1; padding: 6px; }
.row-del:hover { color: #dc3545; }
.order-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 14px; }
.order-toolbar .btn { font-size: 14px; border-radius: 9px; }
.order-summary { display: flex; gap: 22px; font-weight: 600; color: var(--ink); }
.order-summary span b { color: var(--fm-primary); font-family: var(--font-mono); font-size: 1.25rem; }
.paste-hint { background: color-mix(in srgb, var(--fm-primary) 8%, #fff); border-left: 4px solid var(--fm-primary); padding: 13px 16px; border-radius: 10px; font-size: 14px; }
.order-success { max-width: 660px; margin: 40px auto; text-align: center; background: #fff; border-radius: 22px; padding: 56px 30px; box-shadow: 0 40px 80px -50px rgba(20, 30, 50, .45); border-top: 5px solid var(--fm-primary); }
.order-success .ok { width: 96px; height: 96px; border-radius: 50%; background: #e8f7ee; color: #1f9d55; display: grid; place-items: center; font-size: 50px; margin: 0 auto 22px; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }
.order-success .no { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--fm-primary); }

@media (max-width: 991px) {
    .section { padding: 80px 0; }
    .hero .container { padding-top: 120px; }
    .cut-scene { margin: 50px auto 0; max-width: 460px; }
    .cs-badge.b-1 { left: 0; }
    .scroll-cue { display: none; }
    .fcta-inner { padding: 30px 24px; }
    .about-visual { padding: 0 0 40px 30px; margin-bottom: 30px; }
    .about-visual .mini { right: 0; }
    .order-sheet { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal, .hero-text > * { opacity: 1; transform: none; }
    .reveal-cut::after { display: none; }
}

/* =====================================================================
   AHŞAP ZEMİN — beyaz yerine sıcak meşe/MDF tonu + ahşap damarı dokusu
   ===================================================================== */
:root {
    --wood-bg: #E6DCCB;        /* ana zemin */
    --wood-bg-2: #DACCB5;      /* alternatif bölüm */
    --paper: #EFE7DA;
}
body { background-color: var(--wood-bg); }
/* Ahşap damarı (SVG gürültü filtresiyle üretilen doku, resim dosyası gerektirmez) */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.18' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.27 0 0 0 0 0.13 1.4 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 900px 900px, 300px 300px;
    opacity: .55;
}
/* Beyaz bölümler şeffaf olsun ki ahşap zemin görünsün */
.bg-paper { background-color: rgba(190, 160, 120, .16); }
.section.bg-paper.blueprint, .bg-paper.blueprint { background-image: linear-gradient(rgba(70,45,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(70,45,20,.07) 1px, transparent 1px); }
.section-num { -webkit-text-stroke-color: rgba(70,45,20,.12); }
.section-head p, .text-secondary { color: #5f5446 !important; }
.mono-label { color: color-mix(in srgb, var(--fm-primary) 85%, #000); }

/* Header: buzlu ahşap */
.site-header, body.home .site-header.scrolled { background: rgba(232, 222, 205, .92); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(70,45,20,.12); }
.site-header .dropdown-menu { background: #F3ECE1; }
.site-header .dropdown-item:hover { background: #E6DCCB; }
@media (max-width: 991px) { .site-header .navbar-collapse { background: #F3ECE1; } }

/* Kartlar: zeminden ayrışan sıcak beyaz + yumuşak gölge */
.feature-card, .contact-card, .form-box, .sim-ctrl, .side-box, .order-sheet, .order-success {
    background: #FBF8F3; border-color: rgba(70,45,20,.1);
}
.side-box { background: #F3ECE1; }
.side-box a:hover { background: #FBF8F3; }
.sim-wrap { background: #FBF8F3; box-shadow: 0 40px 80px -40px rgba(60,40,15,.45); }
.sim-out { background: #EFE7DA; }
.sim-chip, .sim-input { background: #fff; }
.gallery-filter button { background: #FBF8F3; border-color: rgba(70,45,20,.15); }
.about-visual .mini { border-color: var(--wood-bg); }
.check-list li::before { background: rgba(255,255,255,.6); }
.order-page { background: transparent; }
.order-date { background: #EFE7DA; }
.rich-content ul li { border-bottom-color: rgba(70,45,20,.12); }

/* Bölüm aralarına ince "kenar bandı" çizgisi */
.section + .section:not(.blueprint-dark):not(.bg-paper)::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(1140px, 90%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(70,45,20,.25), transparent);
}

.cut-table select.ci-sel { width: 100%; height: 38px; border: 0; background: transparent; padding: 0 6px; font-size: 14px; outline: none; }
.cut-table select.ci-sel:focus { box-shadow: inset 0 0 0 2px var(--fm-primary); }

/* =====================================================================
   WHATSAPP — koyu hap + dönen testere dişi halkası + konuşma balonu
   ===================================================================== */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1045; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn { display: inline-flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px; border-radius: 60px; text-decoration: none;
    background: linear-gradient(135deg, #182029, #0E1319); color: #fff; border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 18px 40px -14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden; isolation: isolate; }
.wa-btn::after { content: ""; position: absolute; top: -30%; bottom: -30%; width: 40px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); animation: waShine 5s ease-in-out infinite; z-index: -1; }
@keyframes waShine { 0%, 70% { left: -60px; } 100% { left: 120%; } }
.wa-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(37,211,102,.55); }
.wa-ico { position: relative; width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 52px; }
.wa-saw { position: absolute; inset: 0; width: 52px; height: 52px; color: #25D366; animation: spin 9s linear infinite; filter: drop-shadow(0 0 8px rgba(37,211,102,.55)); }
.wa-btn:hover .wa-saw { animation-duration: 1.2s; }
.wa-logo { position: relative; width: 30px; height: 30px; color: #fff; z-index: 1; }
.wa-ico::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #1FB855; box-shadow: inset 0 -3px 6px rgba(0,0,0,.25); z-index: 1; }
.wa-logo { z-index: 2; }
.wa-ico::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: waRing 2.6s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
.wa-txt { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .5px; text-transform: uppercase; }
.wa-txt small { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 1.4px; color: #25D366; text-transform: uppercase; margin-bottom: 3px; }

.wa-bubble { position: relative; width: 290px; background: #FBF8F3; color: var(--text); border-radius: 18px 18px 4px 18px; padding: 16px 18px 14px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); border-top: 3px solid #25D366;
    opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; }
.wa-bubble-head { display: flex; gap: 10px; align-items: center; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--fm-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.wa-bubble-head b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); line-height: 1.1; }
.wa-bubble-head small { color: #1FB855; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.wa-bubble-head small i { width: 7px; height: 7px; border-radius: 50%; background: #25D366; display: inline-block; animation: pulseG 1.6s infinite; }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 100% { box-shadow: 0 0 0 7px transparent; } }
.wa-x { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: #9aa6b4; padding: 2px 6px; }
.wa-x:hover { color: var(--ink); }
.to-top { bottom: 104px; right: 30px; }
@media (max-width: 575px) {
    .wa-btn { padding: 6px; }
    .wa-txt { display: none; }
    .wa-bubble { width: 250px; }
    .to-top { bottom: 92px; right: 25px; }
}

/* =====================================================================
   3D KAPAK STÜDYOSU
   ===================================================================== */
.nav-3d { display: inline-block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1px; line-height: 1; padding: 3px 5px 2px; margin-left: 3px; border-radius: 3px; background: var(--fm-primary); color: #fff; vertical-align: 2px; }
.studio-sec { padding: 46px 0 80px; position: relative; z-index: 1; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; border-radius: 18px; overflow: hidden; background: #0F1318; box-shadow: 0 30px 80px -30px rgba(10, 8, 5, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
@media (max-width: 991.98px) { .studio { grid-template-columns: 1fr; } }

.studio-stage { position: relative; min-height: 640px; height: calc(100vh - 140px); max-height: 860px; overflow: hidden; cursor: grab;
    background:
        radial-gradient(ellipse 60% 55% at 50% 42%, rgba(232, 112, 42, .16), transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(0, 0, 0, .7), transparent 70%),
        linear-gradient(180deg, #2A221B 0%, #1A1612 55%, #0E0C0A 100%); }
.studio-stage:active { cursor: grabbing; }
.studio-stage:fullscreen { max-height: none; height: 100vh; }
@media (max-width: 991.98px) { .studio-stage { min-height: 0; height: 62vh; } }
.studio-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%); }
#stCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.st-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: #cdb9a6; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; background: #14110E; transition: opacity .6s .2s, visibility .6s .2s; }
.st-loading.done { opacity: 0; visibility: hidden; }
.st-saw { width: 54px; height: 54px; color: var(--fm-primary); animation: stSpin 1.1s linear infinite; }
@keyframes stSpin { to { transform: rotate(360deg); } }

.st-tag { position: absolute; left: 26px; top: 22px; z-index: 2; pointer-events: none; }
.st-code { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: .9; letter-spacing: 1px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
.st-name { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--fm-primary); }

.st-tools { position: absolute; right: 18px; top: 18px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.st-tool { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(20, 18, 15, .55); color: #d9cfc4; backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; transition: all .25s var(--ease); }
.st-tool i { font-size: 15px; }
.st-tool span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease); }
.st-tool:hover span { max-width: 80px; }
.st-tool:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.st-tool.on { color: #fff; background: rgba(232, 112, 42, .85); border-color: transparent; box-shadow: 0 6px 18px -6px rgba(232, 112, 42, .8); }

.st-dims { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 2; display: flex; gap: 18px; align-items: baseline; padding: 8px 18px; border-radius: 40px; background: rgba(15, 13, 11, .6); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; color: #a89c90; white-space: nowrap; pointer-events: none; }
.st-dims b { color: #fff; font-size: 14px; margin-left: 4px; }
.st-dims small { color: var(--fm-primary); }
.st-hint { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .42); pointer-events: none; }
.st-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(232, 112, 42, .7), transparent); box-shadow: 0 0 18px 2px rgba(232, 112, 42, .45); opacity: 0; }
.studio-stage.rebuild .st-scan { animation: stScan .9s var(--ease); }
@keyframes stScan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* panel */
.studio-panel { background: linear-gradient(180deg, #171C23, #12161B); color: #b7c0cb; padding: 26px 24px 22px; border-left: 1px solid rgba(255, 255, 255, .05); max-height: 860px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2d3642 transparent; }
@media (max-width: 991.98px) { .studio-panel { max-height: none; border-left: 0; } }
.st-lead { font-size: 13.5px; line-height: 1.6; color: #9aa6b4; margin-bottom: 18px; }
.st-step { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.st-step-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.st-step-h span { font-family: var(--font-mono); font-size: 11px; color: var(--fm-primary); letter-spacing: 1px; }
.st-step-h small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: #7d8896; text-transform: none; letter-spacing: .5px; }

.st-models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-model { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .025); color: #c9d0d8; transition: all .2s var(--ease); min-width: 0; }
.st-model canvas { width: 100%; max-width: 70px; height: auto; aspect-ratio: 84/120; transition: transform .3s var(--ease); }
.st-model b { font-family: var(--font-mono); font-size: 10.5px; color: #fff; letter-spacing: .5px; }
.st-model em { font-style: normal; font-size: 10px; color: #7d8896; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-model:hover { border-color: rgba(255, 255, 255, .18); }
.st-model:hover canvas { transform: translateY(-3px) rotate(-2deg); }
.st-model.on { border-color: var(--fm-primary); background: rgba(232, 112, 42, .1); box-shadow: 0 0 0 1px var(--fm-primary) inset; }
.st-desc { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; }
.st-desc p { margin: 0; font-size: 13px; line-height: 1.55; color: #9aa6b4; flex: 1; }
.st-real { position: relative; flex: 0 0 92px; height: 64px; border-radius: 8px; overflow: hidden; display: block; }
.st-real img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.st-real span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 4px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.st-real:hover img { transform: scale(1.08); }

.st-lbl { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #7d8896; margin-bottom: 5px; }
.st-in { position: relative; }
.st-in input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: #0E1216; color: #fff; font-family: var(--font-mono); font-size: 17px; font-weight: 600; padding: 0 34px 0 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.st-in input:focus { border-color: var(--fm-primary); box-shadow: 0 0 0 3px rgba(232, 112, 42, .2); }
.st-in span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #6b7686; }
.st-chips { display: flex; gap: 4px; }
.st-chip { flex: 1; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: #0E1216; color: #9aa6b4; font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 0; transition: all .2s; }
.st-chip.on { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; }
.st-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.st-presets button { border: 1px dashed rgba(255, 255, 255, .14); background: transparent; color: #8c98a6; border-radius: 30px; font-size: 11.5px; padding: 4px 10px; transition: all .2s; }
.st-presets button:hover { color: #fff; border-color: var(--fm-primary); border-style: solid; }
.st-err { color: #ff8a65; font-size: 12.5px; margin-top: 8px; min-height: 0; }
.st-err:empty { display: none; }

.st-colors { display: flex; flex-wrap: wrap; gap: 9px; }
.st-color { position: relative; width: 38px; height: 38px; border-radius: 50%; padding: 0; border: 2px solid rgba(255, 255, 255, .08); background: var(--c); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25), inset 0 4px 8px rgba(255, 255, 255, .12); transition: transform .2s var(--ease), border-color .2s; }
.st-color.f-parlak { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 12%, transparent 30%), var(--c); }
.st-color.f-ahsap { background: repeating-linear-gradient(95deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 4px), repeating-linear-gradient(88deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 7px), var(--c); }
.st-color:hover { transform: scale(1.1); }
.st-color.on { border-color: var(--fm-primary); transform: scale(1.12); }
.st-color.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(232, 112, 42, .55); }

.st-qty { display: flex; align-items: center; height: 48px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: #0E1216; overflow: hidden; }
.st-qty button { width: 34px; height: 100%; border: 0; background: transparent; color: #9aa6b4; font-size: 18px; }
.st-qty button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.st-qty input { width: 46px; height: 100%; border: 0; background: transparent; color: #fff; text-align: center; font-family: var(--font-mono); font-size: 16px; font-weight: 600; outline: none; }
#stAdd { height: 48px; }
#stAdd.added { background: #2e9d5b; border-color: #2e9d5b; }

.st-cart { margin-top: 6px; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(232, 112, 42, .16), rgba(232, 112, 42, .04)); border: 1px solid rgba(232, 112, 42, .35); animation: stIn .4s var(--ease); }
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } }
.st-cart-h { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.st-cart-h b { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--fm-primary); }
.st-cart ul { list-style: none; padding: 0; margin: 0 0 12px; }
.st-cart li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.st-cart li .sw { flex: 0 0 22px; height: 30px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.st-cart li div { flex: 1; min-width: 0; line-height: 1.25; }
.st-cart li b { display: block; color: #fff; font-size: 13px; }
.st-cart li small { color: #8c98a6; font-size: 11.5px; }
.st-cart li button { border: 0; background: transparent; color: #7d8896; padding: 4px; }
.st-cart li button:hover { color: #ff8a65; }
.st-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: #6b7686; }

/* anasayfa tanıtım */
.studio-teaser { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #13171C 0%, #1D1915 60%, #2A1E14 100%); padding: 54px 48px; color: #b7c0cb; }
.studio-teaser::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; background: radial-gradient(circle, rgba(232, 112, 42, .22), transparent 60%); pointer-events: none; }
.studio-teaser h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1; margin: 10px 0 16px; }
.studio-teaser h2 em { font-style: normal; color: var(--fm-primary); }
.studio-teaser p { color: #9aa6b4; max-width: 460px; }
.teaser-doors { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; perspective: 900px; min-height: 280px; }
.teaser-doors canvas { width: 118px; height: auto; transform: rotateY(-18deg); transition: transform .6s var(--ease); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .45)); animation: tdFloat 6s ease-in-out infinite; }
.teaser-doors canvas:nth-child(2) { width: 140px; animation-delay: -1.5s; }
.teaser-doors canvas:nth-child(3) { animation-delay: -3s; }
.teaser-doors canvas:nth-child(4) { width: 100px; animation-delay: -4.5s; }
.teaser-doors:hover canvas { transform: rotateY(0deg) translateY(-8px); }
@keyframes tdFloat { 50% { translate: 0 -10px; } }
.teaser-badge { position: absolute; right: 8%; top: 4%; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--fm-primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 26px; box-shadow: 0 10px 30px -8px rgba(232, 112, 42, .8), 0 0 0 8px rgba(232, 112, 42, .15); }
@media (max-width: 767.98px) { .studio-teaser { padding: 36px 22px; } .teaser-doors canvas { width: 70px; } .teaser-doors canvas:nth-child(2) { width: 86px; } .teaser-doors canvas:nth-child(4) { display: none; } .teaser-doors { min-height: 180px; margin-top: 24px; } }

/* sipariş formunda stüdyodan gelen bilgi */
.studio-flash { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; background: rgba(232, 112, 42, .1); border: 1px solid rgba(232, 112, 42, .35); font-size: 14px; }
.studio-flash i { font-size: 22px; color: var(--fm-primary); }

/* =====================================================================
   CANLI PLAKA YERLEŞİM PLANI (sipariş formu)
   ===================================================================== */
.plan-box { margin-top: 26px; border-radius: 16px; padding: 26px 26px 20px; color: #b7c0cb; position: relative; overflow: hidden;
    background-color: #12171D;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 32px 32px; box-shadow: 0 24px 60px -30px rgba(10, 8, 5, .6); }
.plan-box::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 112, 42, .18), transparent 65%); pointer-events: none; }
.plan-head { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end; position: relative; }
.plan-head h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 6px 0 6px; }
.plan-head p { max-width: 620px; font-size: 14px; color: #8f9aa8; margin: 0; }
.plan-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-rules span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); font-size: 12.5px; color: #aab4c0; }
.plan-rules b { color: #fff; }
.plan-rules small { color: #6f7a88; }
.plan-rules i { color: var(--fm-primary); }

.plan-ctrl { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; margin: 20px 0 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); position: relative; }
.plan-lbl { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #7d8896; margin-bottom: 8px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-chip { cursor: pointer; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #0D1115; color: #c3cbd4; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; transition: all .2s var(--ease); user-select: none; }
.plan-chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-check:checked + .plan-chip { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(232, 112, 42, .9); }
.btn-check:focus-visible + .plan-chip { outline: 2px solid #fff; outline-offset: 2px; }
.plan-custom { display: inline-flex; align-items: center; gap: 6px; opacity: .45; transition: opacity .2s; }
.plan-custom.on { opacity: 1; }
.plan-custom input { width: 78px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #0D1115; color: #fff; font-family: var(--font-mono); font-size: 14px; text-align: center; outline: none; }
.plan-custom input:focus { border-color: var(--fm-primary); }
.plan-custom span { color: #6f7a88; }
.plan-plate-err { color: #ff8a65; font-size: 12.5px; margin-top: 6px; }
.plan-plate-err:empty { display: none; }

.plan-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.plan-switch input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.plan-switch .sw { flex: 0 0 46px; height: 26px; border-radius: 26px; background: #2a323d; position: relative; transition: background .25s; }
.plan-switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.plan-switch input:checked + input + .sw { background: var(--fm-primary); }
.plan-switch input:checked + input + .sw::after { transform: translateX(20px); }
.plan-switch b { display: block; color: #fff; font-size: 14px; }
.plan-switch small { color: #7d8896; font-size: 12px; }

.plan-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 1199.98px) { .plan-stats { grid-template-columns: repeat(3, 1fr); } }
.plan-stats .ps b small { font-size: 15px; color: #8f9aa8; font-family: var(--font-mono); }
@media (max-width: 767.98px) { .plan-stats { grid-template-columns: repeat(2, 1fr); } }
.plan-stats .ps { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); animation: stIn .4s var(--ease); }
.plan-stats .ps b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; color: #fff; }
.plan-stats .ps:first-child b { color: var(--fm-primary); }
.plan-stats .ps span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.4px; color: #8f9aa8; margin-top: 6px; }
.plan-stats .ps small { color: #5f6a78; font-size: 11.5px; }
.plan-warn { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; background: rgba(255, 90, 60, .12); border: 1px solid rgba(255, 90, 60, .4); color: #ffb39e; font-size: 13.5px; }
.plan-empty { display: flex; align-items: center; gap: 14px; padding: 26px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .14); color: #7d8896; font-size: 14px; }
.plan-empty[hidden] { display: none; }
.plan-empty-saw { flex: 0 0 34px; width: 34px; height: 34px; color: var(--fm-primary); animation: stSpin 3s linear infinite; opacity: .8; }

.plan-plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.plan-plate { background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px 12px; animation: stIn .45s var(--ease); }
.pp-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: #fff; }
.pp-h small { color: #6f7a88; }
.pp-h em { font-style: normal; color: #7d8896; font-size: 11.5px; margin-left: auto; }
.pp-h b { color: var(--fm-primary); font-size: 13px; }
.pp-svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.pp-trim { fill: #8C7A66; }
.pp-waste { fill: #3A342D; }
.pp-part { animation: ppIn .5s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes ppIn { from { opacity: 0; transform: scale(.4) translateY(-30px); } 60% { opacity: 1; } }
.pp-rect { fill: #F1E3C8; stroke: #2B2620; }
.pp-part:hover .pp-rect { fill: #FFF3DA; }
.pp-band { stroke: #E8702A; stroke-linecap: square; }
.pp-lbl { fill: #2A241E; font-family: 'JetBrains Mono', monospace; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.pp-row { fill: #C25A1E; font-family: 'JetBrains Mono', monospace; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
/* Temiz fire (kullanılabilir artık parça) */
.pp-off-rect { fill: #CFE6D8; }
.pp-off-cut { fill: none; stroke: #13804F; }
.pp-off:hover .pp-off-rect { fill: #DDF0E4; }
.pp-off-lbl { fill: #0E5E3A; font-family: 'JetBrains Mono', monospace; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.pp-off-tag { fill: #13804F; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.pp-offs { margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: #8f9aa8; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pp-offs span { color: #6fcf97; letter-spacing: 1px; }
.pp-offs b { color: #d7f3e2; font-weight: 600; }
.plan-legend .lg-off { background: #CFE6D8; outline: 1.5px dashed #13804F; outline-offset: -1px; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: #7d8896; }
.plan-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
.lg-part { background: #F1E3C8; }
.lg-band { background: #E8702A; height: 4px !important; vertical-align: 2px !important; }
.lg-waste { background: #3A342D; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.lg-trim { background: #8C7A66; }
.plan-note { margin: 10px 0 0; font-size: 12px; color: #5f6a78; }



/* ================= Modül Tasarla ================= */
.md-sec { padding: 34px 0 80px; background: var(--paper); }
.md-intro { max-width: 820px; color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.md-app { display: grid; grid-template-columns: 270px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1199.98px) { .md-app { grid-template-columns: 250px minmax(0, 1fr); } .md-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 767.98px) { .md-app { grid-template-columns: 1fr; } .md-right { grid-template-columns: 1fr; } }
.md-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 14px 34px -28px rgba(16, 21, 28, .35); }
.md-side .md-card + .md-card { margin-top: 18px; }
@media (max-width: 1199.98px) { .md-right .md-card + .md-card { margin-top: 0; } }
.md-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.md-link { border: 0; background: none; color: var(--muted); padding: 4px 6px; border-radius: 8px; }
.md-link:hover { color: #c0392b; background: rgba(192, 57, 43, .08); }
.md-mods { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.md-mod { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.md-mod:hover { border-color: rgba(242, 112, 7, .45); }
.md-mod.active { border-color: var(--fm-primary); background: rgba(242, 112, 7, .07); }
.md-mod-n { flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; }
.md-mod.active .md-mod-n { background: var(--fm-primary); }
.md-mod-b { min-width: 0; flex: 1; line-height: 1.25; }
.md-mod-b b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-mod-b small { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }
.md-mod-a { display: flex; gap: 2px; }
.md-mod-a button { border: 0; background: none; color: var(--muted); padding: 4px 6px; border-radius: 7px; font-size: 13px; }
.md-mod-a button:hover { background: var(--paper); color: var(--ink); }
.md-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.md-tabs button { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.md-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.md-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.md-toggle input { accent-color: var(--fm-primary); width: 16px; height: 16px; }
.md-stage { position: relative; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px, #FBFAF7; border-radius: 12px; border: 1px solid var(--line); height: min(68vh, 640px); min-height: 380px; overflow: hidden; }
.md-2d { width: 100%; height: 100%; display: block; }
.md-3d { position: absolute; inset: 0; }
.md-3d canvas { width: 100%; height: 100%; display: block; }
.md-3d-hint { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 4px 8px; border-radius: 6px; }
.md-floor { stroke: #9aa2ad; stroke-width: 2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.md-plinth { fill: #3b4148; }
.md-leg { fill: #8a8f96; }
.md-carcass { stroke: #10151C; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.md-cell { fill: #FFFDF9; stroke: rgba(16, 21, 28, .14); stroke-width: 1; cursor: pointer; transition: fill .15s; vector-effect: non-scaling-stroke; }
.md-cell:hover { fill: rgba(242, 112, 7, .07); }
.md-cell.sel { fill: rgba(242, 112, 7, .16); stroke: var(--fm-primary); stroke-width: 2.5; }
.md-panel { stroke: #10151C; stroke-width: 1.1; pointer-events: none; vector-effect: non-scaling-stroke; }
.md-rod { stroke: #6b7280; stroke-width: 9; stroke-linecap: round; pointer-events: none; }
.md-hanger { fill: none; stroke: #9aa2ad; stroke-width: 3; pointer-events: none; }
.md-cdim { fill: rgba(16, 21, 28, .45); font-family: var(--font-mono); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.md-front { pointer-events: none; }
.md-front-r { fill-opacity: .55; stroke: #10151C; stroke-width: 1.8; stroke-opacity: .85; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 0 rgba(16,21,28,.25)); }
.md-hinge { fill: none; stroke: #10151C; stroke-width: 1; stroke-dasharray: 6 5; opacity: .55; vector-effect: non-scaling-stroke; }
.md-handle { stroke: #10151C; stroke-width: 7; stroke-linecap: round; opacity: .7; }
.md-dim line { stroke: #6B7686; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.md-dimt { fill: var(--ink); font-family: var(--font-mono); font-weight: 700; text-anchor: middle; }
.md-dimt.v { text-anchor: start; dominant-baseline: middle; }
.md-title { fill: var(--muted); font-family: var(--font-mono); }
.md-celltools { margin-top: 14px; }
.md-ct-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.md-ct-h b { font-family: var(--font-mono); font-size: 14px; }
.md-ct-grid { display: grid; gap: 12px; }
.md-ct-g > small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.md-ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.md-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.md-btns button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink); transition: all .15s; }
.md-btns button:hover { border-color: var(--fm-primary); color: var(--fm-primary); }
.md-btns button.on { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; }
.md-btns button.md-danger:hover { border-color: #c0392b; color: #c0392b; }
.md-step { display: inline-flex; align-items: center; gap: 8px; }
.md-step small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.md-step button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.md-step button:hover { border-color: var(--fm-primary); color: var(--fm-primary); }
.md-step b { min-width: 18px; text-align: center; font-family: var(--font-mono); }
.md-f { display: block; margin: 10px 0 0; }
.md-f > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.md-f input, .md-f select { width: 100%; border: 1px solid rgba(16, 21, 28, .15); border-radius: 9px; padding: 7px 10px; font-size: 14px; background: #fff; }
.md-f input:focus, .md-f select:focus { outline: none; border-color: var(--fm-primary); box-shadow: 0 0 0 3px rgba(242, 112, 7, .15); }
.md-f-in { margin: 0; min-width: 210px; }
.md-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.md-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.md-warn { margin-top: 12px; background: #FFF6E5; border: 1px solid #F5D9A8; color: #8A5A00; border-radius: 10px; padding: 9px 12px; font-size: 13px; display: grid; gap: 3px; }
.md-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.md-sum div { background: var(--paper); border-radius: 10px; padding: 9px; text-align: center; }
.md-sum b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; }
.md-sum small { font-size: 11px; color: var(--muted); }
.md-ptable { width: 100%; font-size: 13px; margin-bottom: 8px; }
.md-ptable td { padding: 5px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.md-ptable td small { display: block; color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.md-ptable td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.md-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 4px; }
.md-total span { font-weight: 600; }
.md-total b { font-family: var(--font-display); font-size: 34px; color: var(--fm-primary); line-height: 1; }
.md-price .btn { margin-top: 12px; }
.md-bottom { margin-top: 18px; }
.md-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.md-table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.md-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.md-table .r { text-align: right; font-family: var(--font-mono); }
.md-table .md-lbl { color: var(--muted); font-size: 12px; max-width: 360px; }
.md-bands { display: inline-grid; grid-template-columns: repeat(4, 12px); gap: 3px; }
.md-bi { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid rgba(16, 21, 28, .25); display: block; }
.md-bi.on { background: var(--fm-primary); border-color: var(--fm-primary); }
.md-nest-m + .md-nest-m { margin-top: 18px; }
.md-nest-h { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 10px; }
.md-nest-h span { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.md-plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.md-plates figure { margin: 0; }
.md-plate { width: 100%; height: auto; display: block; border-radius: 6px; }
.md-plate .pl { fill: #3A342D; }
.md-plate .pp { fill: #F1E3C8; stroke: #10151C; stroke-width: 4; }
.md-plate .po { fill: #CFE6D8; stroke: #13804F; stroke-width: 6; stroke-dasharray: 22 12; }
.md-plates figcaption { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.md-modal { position: fixed; inset: 0; z-index: 1080; background: rgba(16, 21, 28, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.md-modal[hidden] { display: none; }
.md-modal-box { background: #fff; border-radius: 18px; width: min(1000px, 100%); max-height: 88vh; overflow: auto; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.md-modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.md-tpl-g + .md-tpl-g { margin-top: 18px; }
.md-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.md-tpl { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; text-align: left; transition: all .2s; }
.md-tpl:hover { border-color: var(--fm-primary); transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(242, 112, 7, .8); }
.md-tpl svg { width: 100%; height: 110px; display: block; margin-bottom: 8px; }
.md-tpl b { display: block; font-size: 13px; line-height: 1.25; }
.md-tpl small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
/* Menüde bir öğe daha var: orta genişlikte sıkıştır */
@media (min-width: 1200px) and (max-width: 1499.98px) { .site-header .nav-link { padding: .55rem .6rem !important; font-size: 14px; } }

/* ===================================================================== Oda Tasarla (rp-*) */
.rp-wrap { max-width: 1880px; padding-left: clamp(10px, 2vw, 28px); padding-right: clamp(10px, 2vw, 28px); }
.rp-app { display: grid; grid-template-columns: 236px minmax(0, 1fr) 330px; grid-template-rows: auto minmax(0, 1fr); gap: 14px;
          height: clamp(560px, calc(100vh - 150px), 900px); }
.rp-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--ink); border-radius: 14px; padding: 7px; }
.rp-grp { display: flex; gap: 3px; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 3px; }
.rp-tb { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #c9d1da; font-size: 13px; font-weight: 600;
         padding: 7px 11px; border-radius: 8px; cursor: pointer; line-height: 1; transition: background .15s, color .15s; }
.rp-tb i { font-size: 15px; }
.rp-tb:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.rp-tb.active { background: var(--fm-primary); color: #fff; }
.rp-tb:disabled { opacity: .35; cursor: default; background: transparent; }
.rp-lib, .rp-side { min-height: 0; overflow: auto; scrollbar-width: thin; }
.rp-side .md-card + .md-card { margin-top: 14px; }
.rp-lib { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.rp-lib-h { padding: 2px 4px 8px; }
.rp-lib-h small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rp-lg { border-top: 1px solid var(--line); padding: 6px 0; }
.rp-lg summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 6px 4px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rp-lg summary::-webkit-details-marker { display: none; }
.rp-lg summary small { font-weight: 600; color: var(--muted); background: var(--paper); border-radius: 20px; padding: 1px 8px; font-size: 11px; }
.rp-lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 0 6px; }
.rp-li { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--line); background: #FBFAF7; border-radius: 10px; padding: 7px 5px 6px;
         cursor: grab; text-align: center; user-select: none; -webkit-user-select: none; touch-action: pan-y; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rp-li:hover { border-color: var(--fm-primary); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(16, 21, 28, .4); }
.rp-li svg { width: 100%; height: 62px; pointer-events: none; }
.rp-li > i { font-size: 26px; color: var(--steel); height: 40px; display: flex; align-items: center; }
.rp-li b { font-size: 11.5px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.rp-li small { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }
.rp-dragchip { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600;
               padding: 6px 10px; border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); opacity: .9; }
.rp-dragchip.over { background: var(--fm-primary); }
.rp-stage { position: relative; min-height: 0; background: #FBFAF7; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rp-plan { width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: default; user-select: none; -webkit-user-select: none; }
.rp-plan[data-tool="wall"], .rp-plan[data-tool="kapi"], .rp-plan[data-tool="pencere"], .rp-plan[data-tool="gecit"] { cursor: crosshair; }
.rp-plan * { vector-effect: non-scaling-stroke; }
.rp-plan .g1 { fill: none; stroke: rgba(16, 21, 28, .05); stroke-width: 1; }
.rp-plan .g2 { fill: none; stroke: rgba(16, 21, 28, .12); stroke-width: 1; }
.rp-plan .rp-floor { fill-opacity: .35; stroke: none; }
.rp-plan .rp-wall { fill: #2E3540; stroke: #1A1F26; stroke-width: 1; cursor: move; }
.rp-plan .rp-wall:hover { fill: #3b4452; }
.rp-plan .rp-wall.sel { fill: var(--fm-primary); stroke: #b4510a; }
.rp-plan .rp-hdl { fill: #fff; stroke: var(--fm-primary); stroke-width: 2.5; cursor: grab; }
.rp-plan .rp-it { cursor: move; }
.rp-plan .rp-it .b { stroke: #4A5361; stroke-width: 1.2; }
.rp-plan .rp-it.m .b { fill-opacity: .92; }
.rp-plan .rp-it.c-boy .b { stroke-width: 1.8; }
.rp-plan .rp-it .fr { stroke: #10151C; stroke-width: 2.6; }
.rp-plan .rp-it.up .b { fill-opacity: .38; stroke-dasharray: 6 4; stroke: #2a3340; }
.rp-plan .rp-it.up .fr { stroke-dasharray: 6 4; stroke-width: 1.6; }
.rp-plan .rp-it .t { font-family: var(--font-display); font-weight: 700; fill: #10151C; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.rp-plan .rp-it .t2 { font-family: var(--font-mono); fill: #4A5361; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.rp-plan .rp-it .ic { fill: none; stroke: #9aa2ad; stroke-width: 1.2; }
.rp-plan .rp-it.a-evye .ic, .rp-plan .rp-it.a-evye .ic2 { stroke: #5a626d; fill: rgba(255, 255, 255, .25); }
.rp-plan .rp-it .ic2 { fill: none; stroke: #6b7686; stroke-width: 1; }
.rp-plan .rp-it.a-davlumbaz .b { fill-opacity: .25; stroke-dasharray: 3 3; }
.rp-plan .rp-it.sel .b { stroke: var(--fm-primary); stroke-width: 2.6; fill-opacity: .95; }
.rp-plan .rp-it.up.sel .b { fill-opacity: .55; }
.rp-plan .rp-it:hover .b { stroke: var(--fm-primary); }
.rp-plan .rp-top { fill-opacity: .75; stroke: #7d756a; stroke-width: 1; pointer-events: none; }
.rp-plan .rp-op { cursor: ew-resize; }
.rp-plan .rp-op .clr { fill: #FBFAF7; stroke: none; }
.rp-plan .rp-op .gl { stroke: #4F8FB3; stroke-width: 1.6; }
.rp-plan .rp-op .fr { fill: none; stroke: #2E3540; stroke-width: 1.4; }
.rp-plan .rp-op .sw { fill: rgba(242, 112, 7, .05); stroke: #8b939e; stroke-width: 1; stroke-dasharray: 5 4; }
.rp-plan .rp-op .leaf { stroke: #2E3540; stroke-width: 3; }
.rp-plan .rp-op .gc { stroke: #8b939e; stroke-width: 1; stroke-dasharray: 3 3; }
.rp-plan .rp-op .lab { font-family: var(--font-mono); fill: var(--fm-primary); text-anchor: middle; dominant-baseline: middle; font-weight: 700; }
.rp-plan .rp-op.sel .clr { fill: rgba(242, 112, 7, .22); }
.rp-plan .rp-op.ghost { opacity: .75; pointer-events: none; }
.rp-plan .rp-op.ghost .clr { fill: rgba(242, 112, 7, .35); }
.rp-plan .rp-dim line { stroke: #8b939e; stroke-width: 1; }
.rp-plan .rp-dim text { font-family: var(--font-mono); fill: #4A5361; text-anchor: middle; }
.rp-plan .rp-dim.on line { stroke: var(--fm-primary); } .rp-plan .rp-dim.on text { fill: var(--fm-primary); font-weight: 700; }
.rp-plan .rp-dim.gap line { stroke: var(--fm-primary); stroke-dasharray: 4 3; } .rp-plan .rp-dim.gap text { fill: var(--fm-primary); font-weight: 700; }
.rp-plan .rp-ghost { fill: rgba(242, 112, 7, .22); stroke: var(--fm-primary); stroke-width: 2; stroke-dasharray: 6 4; pointer-events: none; }
.rp-plan .rp-draw { fill: none; stroke: var(--fm-primary); stroke-width: 6; stroke-linejoin: round; opacity: .85; pointer-events: none; }
.rp-plan .rp-rubber { stroke: var(--fm-primary); stroke-width: 2; stroke-dasharray: 8 5; pointer-events: none; }
.rp-plan .rp-dpt { fill: #fff; stroke: var(--fm-primary); stroke-width: 2; pointer-events: none; }
.rp-plan .rp-dpt.first { fill: var(--fm-primary); }
.rp-plan .rp-dlab { font-family: var(--font-mono); font-weight: 700; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4; pointer-events: none; }
.rp-plan .rp-guide { stroke: #3b82c4; stroke-width: 1; stroke-dasharray: 2 4; pointer-events: none; }
.rp-plan .rp-snap { fill: none; stroke: #3b82c4; stroke-width: 2; pointer-events: none; }
.rp-plan .rp-empty { font-family: var(--font-display); font-weight: 600; fill: var(--muted); text-anchor: middle; }
.rp-status { position: absolute; left: 10px; right: 64px; bottom: 10px; display: flex; gap: 12px; justify-content: space-between; align-items: center; pointer-events: none;
             font-size: 11.5px; color: var(--muted); }
.rp-status span { background: rgba(255, 255, 255, .88); padding: 4px 9px; border-radius: 7px; max-width: 75%; }
.rp-status b { font-family: var(--font-mono); font-weight: 600; background: rgba(255, 255, 255, .88); padding: 4px 9px; border-radius: 7px; white-space: nowrap; }
.rp-status .warn { color: #8A5A00; background: #FFF6E5; }
.is-3d .rp-status { display: none; }
.rp-lenbox { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
             border-radius: 10px; padding: 6px 10px; font-size: 12.5px; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }
.rp-lenbox input { width: 96px; border: 0; border-radius: 6px; padding: 4px 8px; font-family: var(--font-mono); font-size: 14px; }
.rp-lenbox small { color: #9aa9bc; }
.rp-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 4px; }
.rp-zoom button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .4); }
.rp-zoom button:hover { color: var(--fm-primary); }
.rp-3d { position: absolute; inset: 0; background: linear-gradient(#f6f3ee, #e6dfd3); }
.rp-3d canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.rp-3d-hint { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 8px; border-radius: 6px; }
.rp-elev { position: absolute; inset: 0; display: flex; flex-direction: column; }
.rp-elev[hidden] { display: none; }
.rp-elev-h { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.rp-sel { border: 1px solid rgba(16, 21, 28, .15); border-radius: 9px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; }
.rp-hint { font-size: 12px; color: var(--muted); }
#rpElevSvg { flex: 1; width: 100%; min-height: 0; display: block; }
#rpElevSvg * { vector-effect: non-scaling-stroke; }
#rpElevSvg .ev-wall { stroke: #b8b0a3; stroke-width: 1; }
#rpElevSvg .ev-floor { stroke: #10151C; stroke-width: 2.5; }
#rpElevSvg .ev-ceil { stroke: #8b939e; stroke-width: 1; stroke-dasharray: 8 6; }
#rpElevSvg .ev-op rect { fill: #DDEAF1; stroke: #4F8FB3; stroke-width: 1.4; }
#rpElevSvg .ev-op line { stroke: #4F8FB3; stroke-width: 1; }
#rpElevSvg .ev-op.k-kapi rect { fill: #EDE3D3; stroke: #8b6a3e; }
#rpElevSvg .ev-op.k-gecit rect { fill: #F6F3EE; stroke: #8b939e; stroke-dasharray: 6 4; }
#rpElevSvg .ev-op .sill { fill: #e9e6e0; stroke: #9a948a; }
#rpElevSvg .ev-op .sw { fill: none; stroke: #8b6a3e; stroke-width: 1; stroke-dasharray: 6 5; }
#rpElevSvg .ev-mod, #rpElevSvg .ev-ap { cursor: pointer; }
#rpElevSvg .ev-car { stroke: #10151C; stroke-width: 1.6; }
#rpElevSvg .ev-pan { stroke: #10151C; stroke-width: .8; }
#rpElevSvg .ev-plinth { fill: #3a3f46; }
#rpElevSvg .ev-leg { fill: #8a8f96; }
#rpElevSvg .ev-front { stroke: #10151C; stroke-width: 1.2; }
#rpElevSvg .ev-handle { stroke: #2b2f35; stroke-width: 3; stroke-linecap: round; }
#rpElevSvg .ev-hinge { fill: none; stroke: #8b939e; stroke-width: .9; stroke-dasharray: 6 5; }
#rpElevSvg .ev-no { font-family: var(--font-display); font-weight: 700; fill: var(--fm-primary); text-anchor: middle; }
#rpElevSvg .ev-mod.sel .ev-car, #rpElevSvg .ev-mod.sel .ev-front { stroke: var(--fm-primary); stroke-width: 2.4; }
#rpElevSvg .ev-ap rect, #rpElevSvg .ev-ap path, #rpElevSvg .ev-ap circle { stroke: #4A5361; stroke-width: 1.2; }
#rpElevSvg .ev-ap line { stroke: #4A5361; stroke-width: 1; }
#rpElevSvg .ev-ap .hd { stroke: #6b7686; stroke-width: 3; stroke-linecap: round; }
#rpElevSvg .ev-ap .pn { fill: rgba(16, 21, 28, .12); }
#rpElevSvg .ev-ap.sel rect, #rpElevSvg .ev-ap.sel path { stroke: var(--fm-primary); stroke-width: 2.4; }
#rpElevSvg .ev-top { stroke: #6f675c; stroke-width: 1.2; }
#rpElevSvg .ev-counter { fill: #1C2026; } #rpElevSvg .ev-counter.k-evye { fill: #aab0b7; }
#rpElevSvg .ev-dim line { stroke: #6b7686; stroke-width: 1; }
#rpElevSvg .ev-dim text { font-family: var(--font-mono); fill: #27303C; text-anchor: middle; }
#rpElevSvg .ev-dim text.gap { fill: var(--fm-primary); font-weight: 700; }
#rpElevSvg .ev-dim text.l { text-anchor: start; }
#rpElevSvg .ev-dim.tot text { font-weight: 700; }
.rp-props .md-card-h { margin-bottom: 4px; }
.rp-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--paper); border-radius: 20px; padding: 3px 9px; }
.rp-pill.on { color: #1f7a4a; background: #e3f4ea; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rp-acts .btn { border-radius: 9px; }
.rp-acts .btn-fm { padding: .38rem .8rem; font-size: 13px; }
.rp-props input[type="color"] { height: 36px; padding: 3px; }
.rp-bottom { margin-top: 14px; }
.rp-mtable tbody tr { cursor: pointer; }
.rp-mtable tbody tr.sel td { background: rgba(242, 112, 7, .08); }
.rp-room-box { width: min(1180px, 100%); }
.rp-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.rp-preset { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #FBFAF7; }
.rp-preset svg { width: 100%; height: 86px; }
.rp-preset svg rect, .rp-preset svg path { fill: rgba(16, 21, 28, .04); stroke: var(--ink); stroke-width: 3; }
.rp-preset svg .f { fill: rgba(242, 112, 7, .35); stroke: var(--fm-primary); stroke-width: 1.5; }
.rp-preset svg circle { fill: var(--fm-primary); }
.rp-preset .btn { margin-top: auto; }
.rp-pin { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-pin label { font-size: 11px; color: var(--muted); font-weight: 600; }
.rp-pin input { width: 100%; border: 1px solid rgba(16, 21, 28, .15); border-radius: 7px; padding: 4px 7px; font-size: 13px; font-family: var(--font-mono); }
.rp-in-box { width: min(1180px, 100%); }
.rp-in-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; align-items: start; }
.rp-in-grid .md-2d { height: min(62vh, 620px); background: #FBFAF7; border: 1px solid var(--line); border-radius: 12px; }
.rp-in-grid .md-celltools { margin-top: 0; }
@media (max-width: 1399.98px) { .rp-app { grid-template-columns: 210px minmax(0, 1fr) 300px; } .rp-tb span { display: none; } .rp-views .rp-tb span { display: inline; } }
@media (max-width: 1099.98px) {
    .rp-app { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .rp-stage { height: 64vh; min-height: 420px; order: 2; }
    .rp-bar { order: 1; } .rp-lib { order: 3; max-height: none; } .rp-side { order: 4; overflow: visible; }
    .rp-lgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
    .rp-presets { grid-template-columns: 1fr 1fr; }
    .rp-in-grid { grid-template-columns: 1fr; }
    .rp-status span { display: none; }
}
@media (max-width: 575.98px) { .rp-tb { padding: 7px 8px; } .rp-views .rp-tb span { display: none; } .rp-presets { grid-template-columns: 1fr; } }
.rp-plan .rp-lbl { pointer-events: none; }
.rp-plan .rp-lbl .t { font-family: var(--font-display); font-weight: 700; fill: #10151C; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 3; }
.rp-plan .rp-lbl .t2 { font-family: var(--font-mono); fill: #4A5361; text-anchor: middle; dominant-baseline: middle; }
.rp-plan .rp-lbl.up .t { fill: #33404f; }
.rp-plan .rp-lbl.sel .t { fill: var(--fm-primary); }
.is-elev .rp-status, .is-elev .rp-zoom { display: none; }
/* bağlantı + delik çizimi */
.md-2d .md-conn .kam { fill: rgba(225, 29, 46, .25); stroke: #E11D2E; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.md-2d .md-conn .pimd { fill: #fff; stroke: #E11D2E; stroke-width: 1; vector-effect: non-scaling-stroke; }
.md-2d .md-conn .pim { fill: #E11D2E; }
.md-2d .md-conn .men { fill: none; stroke: #E11D2E; stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.md-smode { flex-basis: 100%; }
.rp-hw { margin-top: 14px; }
.rp-hwl { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.rp-hwl li { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.rp-hwl li b { font-family: var(--font-mono); }
.rp-hwl li.tot { border-bottom: 0; color: var(--muted); }
.rp-hwbox summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.rp-drill { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rp-drill-h { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rp-drill-leg { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.rp-drill-leg i, .rp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.rp-drill-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
#rpDrillSvg { width: 100%; height: 360px; background: #FBFAF7; border: 1px solid var(--line); border-radius: 12px; }
#rpDrillSvg * { vector-effect: non-scaling-stroke; }
#rpDrillSvg .pnl { fill: #F3EEE6; stroke: #10151C; stroke-width: 1.5; }
#rpDrillSvg .bnd { stroke: var(--fm-primary); stroke-width: 4; }
#rpDrillSvg .h { stroke-width: 1.4; }
#rpDrillSvg .h.fb { fill: none !important; stroke-dasharray: 3 2; }
#rpDrillSvg .he { stroke-width: 3; }
#rpDrillSvg .dt { font-family: var(--font-mono); fill: #27303C; text-anchor: middle; }
#rpDrillSvg .nt { font-family: var(--font-mono); fill: var(--muted); }
.rp-drill-tbl { max-height: 360px; overflow: auto; }
.k-kam { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.k-civata { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.k-kavela { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.k-pim { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.k-mentese, .k-plaka { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.k-ray { fill: rgba(138, 148, 163, .35); stroke: #5F6B7A; background: #8A94A3; }
.k-vida, .k-aski { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
#rpDrillSvg line.k-kam, #rpDrillSvg line.k-civata, #rpDrillSvg line.k-kavela, #rpDrillSvg line.k-vida { fill: none; }
@media (max-width: 991.98px) { .rp-drill-grid { grid-template-columns: 1fr; } }
.rp-3d-tools { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.rp-3d-tools button { border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; border-radius: 9px; padding: 6px 11px; box-shadow: 0 6px 14px -10px rgba(0,0,0,.4); }
.rp-3d-tools button.on { background: #1f6fb6; border-color: #1f6fb6; color: #fff; }
.md-pinsel { flex-basis: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-pinsel small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rp-conn { margin-top: 16px; }
.rp-ctbl { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: 12.5px; }
.rp-ctbl th { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: left; padding: 4px; text-transform: uppercase; }
.rp-ctbl td { padding: 3px 4px; border-top: 1px solid var(--line); }
.rp-ctbl td:first-child { font-weight: 600; white-space: nowrap; }
.rp-ctbl select, .rp-ctbl input { width: 100%; border: 1px solid rgba(16,21,28,.15); border-radius: 7px; padding: 4px 6px; font-size: 12.5px; background: #fff; }
.rp-ctbl input { width: 62px; font-family: var(--font-mono); }
.rp-ctbl input:disabled { background: var(--paper); opacity: .6; }
.rp-xbtn { background: #1f6fb6; color: #fff; border-color: #1f6fb6; } .rp-xbtn:hover { background: #185a95; color: #fff; }
.rp-3d-leg { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 12px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.4); }
.rp-3d-leg[hidden] { display: none; }
.rp-3d-leg span { display: flex; align-items: center; gap: 7px; }
.rp-3d-leg i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(16,21,28,.8); }
.rp-3d-leg b { margin-left: auto; padding-left: 10px; font-family: var(--font-mono); }


/* Menüde öğe arttığı için orta genişlikte sığdır */
@media (min-width: 992px) and (max-width: 1199.98px) { .site-header .nav-link { padding: .55rem .5rem !important; font-size: 13px; } .site-header .nav-link::after { left: .5rem; right: .5rem; } }
.rp-tb.rp-ordx { background: rgba(242,112,7,.18); color: #ffb57a; } .rp-tb.rp-ordx:hover { background: var(--fm-primary); color: #fff; }
.k-cep, .k-kelebek { fill: rgba(225, 29, 46, .3); stroke: #E11D2E; background: #E11D2E; }
.rp-ctbl select { min-width: 150px; }

/* Kertme + arkalık markalama */
.rp-kert { margin: 10px 0 4px; border: 1px solid var(--line, #e7e1d8); border-radius: 12px; padding: 8px 10px; background: rgba(242,112,7,.03); }
.rp-kert > summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 4px; }
.rp-kert > summary::-webkit-details-marker { display: none; }
.rp-kert > summary small { margin-left: auto; color: #F27007; font-weight: 600; }
.rp-kert[open] > summary { margin-bottom: 8px; }
.rp-kert .md-hint { font-size: 11.5px; margin: -2px 0 8px; }
#rpDrillSvg .kcut { fill: #fff; stroke: #F27007; stroke-width: 2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
#rpDrillSvg .kct { fill: #F27007; text-anchor: middle; font-family: 'JetBrains Mono', monospace; }
.k-marka { fill: rgba(46, 53, 64, .35); stroke: #2E3540; background: #2E3540; }
.k-kertme { background: transparent; border: 2px dashed #F27007; }
.k-kertme { border-radius: 2px !important; }

/* ---- Malzeme kataloğu: sipariş formu ve Modül Tasarla renk seçimi ---- */
.fm-grid select { width: 100%; border: 0; padding: 10px 10px; font-size: 14px; background: transparent; outline: none; min-width: 0; cursor: pointer; }
.fm-grid select:focus { background: color-mix(in srgb, var(--fm-primary) 7%, #fff); box-shadow: inset 0 0 0 2px var(--fm-primary); }
.fm-grid .mat-col-td { position: relative; }
.fm-grid .mat-col-td select { padding-left: 30px; }
.fm-grid .mat-sw { position: absolute; left: 9px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); background: repeating-linear-gradient(45deg, #eee 0 3px, #fff 3px 6px); pointer-events: none; }
.md-matpick { align-items: end; }
.md-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); vertical-align: -1px; margin-left: 3px; }


/* Montaj şekli seçimi */
.md-montaj { display: flex; gap: 10px; align-items: flex-end; }
.md-montaj .md-f { flex: 1; min-width: 0; }
.md-montaj-svg { width: 58px; height: 46px; flex: none; margin-bottom: 10px; background: #fff; border: 1px solid var(--line, #e7e1d8); border-radius: 8px; padding: 4px; }
.md-montaj-svg .ms-s { fill: #F27007; }
.md-montaj-svg .ms-t { fill: #2E3540; }

/* ===== Sipariş formu: malzeme malzeme giriş ===== */
.mat-pick { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--fm-primary); border-radius: 14px; padding: 14px 16px; background: color-mix(in srgb, var(--fm-primary) 5%, #fff); height: 100%; }
.mat-pick .mp-step { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--fm-primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.mat-pick .mp-body { flex: 1; min-width: 0; }
.mat-pick .mp-title { font-weight: 700; margin-bottom: 8px; }
.mat-pick .mp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mat-pick select { border: 1px solid #d5dbe2; border-radius: 9px; padding: 8px 10px; font-size: 14px; background: #fff; min-width: 0; }
.mat-pick #apMat { flex: 1 1 220px; }
.mat-pick .mp-col { position: relative; flex: 1 1 200px; display: flex; }
.mat-pick .mp-col select { width: 100%; padding-left: 32px; }
.mat-pick .mp-col .mat-sw { position: absolute; left: 10px; top: 50%; margin-top: -8px; }
.mat-pick .mp-size { font-size: 13px; color: #6b7685; white-space: nowrap; }
.mat-pick .mp-hint { font-size: 12.5px; color: #6b7685; margin-top: 8px; }
.mat-sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); background: repeating-linear-gradient(45deg, #eee 0 3px, #fff 3px 6px); vertical-align: -3px; flex: 0 0 16px; }
.ap-now { margin-top: 24px; padding: 9px 14px; border-radius: 10px; background: #eef7ee; color: #1f5f2a; font-size: 14px; }
.ap-now.empty { background: #fff4ec; color: #9a4a12; }
.ap-now .mat-sw { margin-right: 4px; }
.mat-layout .cut-wrap { margin-top: 10px; }
.mat-groups { position: sticky; top: 90px; margin-top: 24px; border: 1px solid #e3e7ec; border-radius: 14px; background: #fff; padding: 12px; font-size: 14px; }
.mat-groups .mg-head { font-weight: 700; margin-bottom: 10px; }
.mat-groups .mg-item { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; border: 1px solid #edf0f3; margin-bottom: 8px; }
.mat-groups .mg-txt { flex: 1; min-width: 0; line-height: 1.25; }
.mat-groups .mg-txt b { display: block; font-size: 13.5px; word-break: break-word; }
.mat-groups .mg-txt small { color: #6b7685; }
.mat-groups .mg-act { display: flex; gap: 4px; }
.mat-groups .mg-act button { border: 0; background: #f4f6f8; border-radius: 7px; width: 30px; height: 30px; color: #44505e; }
.mat-groups .mg-act .mg-del:hover { background: #fde8e8; color: #c62828; }
.mat-groups .mg-act .mg-edit:hover { background: #fff1e6; color: var(--fm-primary); }
.mat-groups .mg-now { border: 1px dashed var(--fm-primary); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; color: #9a4a12; font-size: 13px; }
.mat-groups .mg-now small { display: block; color: #6b7685; margin-top: 2px; }
.mat-groups .mg-empty { color: #6b7685; font-size: 13px; }
.mat-groups .mg-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid #edf0f3; font-size: 13px; }
.mat-groups .mg-total:empty { display: none; }
@media (max-width: 1199.98px) { .mat-groups { position: static; margin-top: 8px; } }

/* ===== Modül editörü — atölye teması (koyu kumanda, sıcak çalışma alanı, turuncu vurgu) ===== */
.me-modal { padding: 0; background: var(--paper); display: block; }
body.me-open { overflow: hidden; }
.me-app { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) 30px; background: var(--paper); color: var(--text); }
.me-top { display: flex; align-items: center; gap: 14px; padding: 7px 14px; background: var(--graphite); color: #EDE7DC; box-shadow: inset 0 -3px 0 var(--fm-primary); min-width: 0; }
.me-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.me-title i { color: #fff; background: var(--fm-primary); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
.me-title h3 { color: #fff; font-size: 1.3rem; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.me-tb { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; justify-content: center; }
.me-grp { display: flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.me-tb button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 4px 6px; border: 0; border-radius: 9px; background: transparent; color: #CFC7BA; font-size: 10.5px; font-weight: 600; line-height: 1.1; letter-spacing: .2px; }
.me-tb button i { font-size: 1.1rem; color: #E6DED1; }
.me-tb button:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.me-tb button:disabled { opacity: .3; cursor: default; }
.me-tb button.on { background: var(--fm-primary); color: #fff; }
.me-tb button.on i { color: #fff; }
.me-done { white-space: nowrap; padding: .5rem 1rem; }
.me-body { display: grid; grid-template-columns: 78px minmax(0, 1fr) 330px; min-height: 0; }
.me-tools { display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; background: var(--fm-dark); overflow-y: auto; }
.me-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 10.5px; font-weight: 600; color: #D9D2C5; line-height: 1.15; text-align: center; transition: background .15s, transform .15s; }
.me-tools button i { font-size: 1.3rem; color: #F2C9A8; }
.me-tools button:hover { background: rgba(255,255,255,.1); color: #fff; }
.me-tools button.on { background: var(--fm-primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(232,112,42,.9); }
.me-tools button.on i { color: #fff; }
.me-tools button[data-tool="opts"] { margin-bottom: 8px; position: relative; }
.me-tools button[data-tool="opts"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -8px; height: 1px; background: rgba(255,255,255,.12); }
.me-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.me-3d { position: absolute; inset: 0; background-color: #EFE8DC; background-image: radial-gradient(rgba(16,21,28,.10) 1px, transparent 1.2px), linear-gradient(180deg, #F8F4EE 0%, #E7DDCD 100%); background-size: 22px 22px, 100% 100%; }
.me-3d canvas { width: 100%; height: 100%; display: block; outline: none; }
.me-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.me-dim { position: absolute; transform: translate(-50%, -50%); background: var(--ink); border: 0; border-bottom: 2px solid var(--fm-primary); color: #fff; font: 600 11.5px/1 var(--font-mono); padding: 5px 7px 4px; border-radius: 5px; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(0,0,0,.45); pointer-events: none; }
.me-dim.ed { pointer-events: auto; cursor: text; }
.me-dim.ed:hover { background: var(--fm-primary); }
.me-dim.sel { background: var(--fm-primary); border-bottom-color: var(--ink); }
.me-dim.pv { background: #fff; color: var(--ink); border: 1.5px solid var(--fm-primary); border-bottom-width: 3px; }
.me-dim.pv.ed:hover { background: #FFF1E6; }
.me-dim.gap { background: #fff; color: var(--ink); border: 1.5px dashed var(--fm-primary); border-bottom-width: 1.5px; }
.me-dim.gap:hover { background: #FFF1E6; }
.me-dim-in { position: absolute; transform: translate(-50%, -50%); width: 86px; font: 700 13px var(--font-mono); padding: 4px 6px; border: 2px solid var(--fm-primary); border-radius: 6px; text-align: center; pointer-events: auto; z-index: 3; background: #fff; }
.me-2d { position: absolute; inset: 0; padding: 58px 14px 14px; display: flex; flex-direction: column; }
.me-2d .md-2d { flex: 1 1 auto; min-height: 0; background: #FBFAF7; border: 1px solid var(--line); border-radius: 14px; }
.me-drill { position: absolute; inset: 0; margin: 0; padding: 58px 14px 14px; overflow: auto; background: #fff; border-top: 0; }
.me-drill .rp-drill-tbl { max-height: none; }
.me-2d[hidden], .me-3d[hidden], .me-drill[hidden], .me-panel[hidden], .me-opts[hidden], .me-part[hidden], .md-celltools[hidden] { display: none; }
/* sağ denetçi: araç kartı / parça özellikleri / seçili hacim */
.me-side { background: #FBF9F5; border-left: 1px solid rgba(16,21,28,.1); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.me-panel, .me-part { background: #fff; border-radius: 14px; border: 1px solid rgba(16,21,28,.08); box-shadow: 0 10px 24px -18px rgba(16,21,28,.5); overflow: hidden; }
.me-panel { border-top: 4px solid var(--fm-primary); }
.me-panel-h, .me-card-h { padding: 10px 14px 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--fm-primary); }
.me-panel-h::before, .me-card-h::before { content: "// "; color: var(--muted); }
.me-panel-h i, .me-card-h i { margin-right: 4px; }
.me-panel-b { padding: 2px 14px 4px; display: grid; gap: 10px; }
.me-panel-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 14px; }
.me-part { padding-bottom: 12px; }
.me-part > *:not(.me-card-h) { margin-left: 14px; margin-right: 14px; }
.me-part .me-f, .me-part .me-c { margin-top: 10px; }
.me-kv { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 5px 10px; margin: 2px 14px 4px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 12.5px; }
.me-kv dt { color: var(--muted); font-weight: 600; }
.me-kv dd { margin: 0; color: var(--ink); }
.me-bands { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 14px; }
.me-bands .me-c { white-space: nowrap; font-weight: 500; }
.me-f.me-fb { grid-template-columns: 1fr; gap: 6px; }
.me-side > * { flex: 0 0 auto; }
.me-viewbar { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; gap: 2px; padding: 4px; background: rgba(22,29,38,.92); border-radius: 12px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.me-viewbar button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: #D9D2C5; font-size: 12px; font-weight: 600; white-space: nowrap; }
.me-viewbar button i { color: #F2C9A8; }
.me-viewbar button:hover { background: rgba(255,255,255,.1); color: #fff; }
.me-viewbar button.on { background: var(--fm-primary); color: #fff; }
.me-viewbar button.on i { color: #fff; }
@media (max-width: 767.98px) { .me-viewbar button span { display: none; } .me-viewbar { top: 8px; right: 8px; } }
.me-psec { margin: 10px 14px 4px !important; padding: 10px 12px 12px; border-radius: 10px; background: #FFF6EE; border: 1px solid color-mix(in srgb, var(--fm-primary) 28%, transparent); display: grid; gap: 9px; }
.me-psec-h { font-weight: 700; font-size: 12.5px; color: var(--fm-primary); }
.me-psec .btn { justify-self: start; }
.me-nocut { padding: 8px 10px; background: #FFF4EC; border-radius: 8px; }
.me-part-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.me-f { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.me-f > span { font-weight: 600; color: var(--ink); }
.me-f input, .me-f select { width: 100%; min-width: 0; padding: 6px 9px; border: 1px solid rgba(16,21,28,.18); border-radius: 8px; font-size: 13px; background: #fff; }
.me-f input[type=radio], .me-f input[type=checkbox] { width: auto; padding: 0; }
.me-f.me-fb .me-rs-col { padding-left: 2px; }
.me-f input:focus, .me-f select:focus { outline: 2px solid color-mix(in srgb, var(--fm-primary) 45%, transparent); border-color: var(--fm-primary); }
.me-rs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.me-rs-col { flex-direction: column; }
.me-r { white-space: nowrap; }
.me-r, .me-c { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 0; cursor: pointer; }
.me-r input, .me-c input { accent-color: var(--fm-primary); }
.me-c { font-weight: 600; }
.me-note { font-size: 11.5px; color: var(--muted); margin: 0; }
.me-opts { position: absolute; top: 12px; left: 12px; bottom: 12px; width: 360px; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -22px rgba(16,21,28,.55); z-index: 5; display: flex; flex-direction: column; overflow: hidden; }
.me-opts-h { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--fm-dark); color: #fff; }
.me-opts-h .md-link { color: #fff; }
.me-opts-b { overflow-y: auto; padding: 12px 14px; }
.me-opts-b .rp-acts, .me-opts-b [data-act="inner"] { display: none !important; }
.me-side .md-celltools .md-ct-grid { grid-template-columns: 1fr; }
.me-side .md-celltools { background: #fff; border-radius: 14px; border: 1px solid rgba(16,21,28,.08); padding: 12px 14px; }
.me-sec { background: #fff; border-radius: 14px; border: 1px solid rgba(16,21,28,.08); padding: 10px 14px; }
.me-sec > summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 13px; }
.me-sec[open] > summary { margin-bottom: 8px; }
.me-sec .rp-conn table { font-size: 12px; }
.me-status { display: flex; align-items: center; padding: 0 14px; background: var(--graphite); color: #D9D2C5; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-status i { color: var(--fm-primary); }
@media (max-width: 1199.98px) {
    .me-tb button span { display: none; }
    .me-tb button { min-width: 34px; padding: 7px 6px; }
    .me-body { grid-template-columns: 70px minmax(0, 1fr) 300px; }
}
@media (max-width: 991.98px) {
    .me-body { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .me-tools { grid-row: 1 / span 2; }
    .me-side { grid-column: 2; max-height: 40vh; border-left: 0; border-top: 1px solid rgba(16,21,28,.1); padding: 10px; }
}
@media (max-width: 767.98px) {
    .me-top { flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px; }
    .me-title { flex: 1 1 0; }
    .me-title i { width: 28px; height: 28px; }
    .me-title h3 { max-width: none; font-size: 1rem; }
    .me-tb { order: 3; flex: 1 1 100%; justify-content: space-between; gap: 3px; }
    .me-grp { padding: 2px; }
    .me-tools { padding: 8px 5px; }
    .me-tools button { font-size: 9.5px; }
    .me-opts { width: calc(100% - 24px); }
}

/* ===== Yüzey işlemleri (parça: LED kanalı, delik, oyma, köşe radüsü) ===== */
.me-surf { position: absolute; inset: 52px 12px 12px; z-index: 6; background: #FDFBF8; border: 1px solid #E3DCD2; border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(16, 21, 28, .45); display: flex; flex-direction: column; overflow: hidden; }
.me-surf[hidden] { display: none; }
.me-sf-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #1E2A3B; color: #fff; }
.me-sf-h > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.me-sf-h .mono-label { color: #F6A35C; }
.me-sf-h b { font-size: 15px; }
.me-sf-h small { color: #b8c2cf; font-family: var(--font-mono, monospace); font-size: 12px; }
.me-sf-h .md-link { color: #fff; }
.me-sf-b { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.me-sf-cv { display: flex; flex-direction: column; min-height: 0; padding: 12px; background-image: radial-gradient(#e2d9cc 1px, transparent 1px); background-size: 18px 18px; }
.me-sf-cv svg { flex: 1; min-height: 0; width: 100%; }
.me-sf-cv .me-note { margin: 6px 0 0; font-size: 11.5px; }
.me-sf-side { border-left: 1px solid #E8E1D7; padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.me-sf-row { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.me-sf-row > span { color: var(--muted); font-weight: 600; }
.me-sf-row input[type=number] { width: 100%; border: 1px solid #DCD4C8; border-radius: 8px; padding: 5px 8px; font-family: var(--font-mono, monospace); font-size: 13px; }
.me-seg { display: flex; border: 1px solid #DCD4C8; border-radius: 9px; overflow: hidden; grid-column: span 2; }
.me-seg button { flex: 1; border: 0; background: #fff; padding: 6px 8px; font-size: 12.5px; font-weight: 600; color: #4a5260; }
.me-seg button + button { border-left: 1px solid #DCD4C8; }
.me-seg button.on { background: #1E2A3B; color: #fff; }
.me-sf-add { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.me-sf-add button { border: 1px dashed #E8702A; background: #FFF6EE; border-radius: 10px; padding: 8px 4px; font-size: 11.5px; font-weight: 700; color: #9a3f06; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.me-sf-add button i { font-size: 17px; }
.me-sf-add button:hover { background: #FDE7D3; }
.me-sf-draft { border: 1px solid #F2C59D; background: #FFFAF5; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.me-sf-dh { display: flex; justify-content: space-between; font-size: 13px; }
.me-sf-dh span { color: #9a3f06; font-size: 12px; }
.me-sf-cap { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.me-sf-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.me-sf-pos .me-sf-cap, .me-sf-pos .me-sf-c { grid-column: span 2; }
.me-sf-pos label, .me-sf-rad label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); gap: 2px; }
.me-sf-pos input, .me-sf-rad input { border: 1px solid #DCD4C8; border-radius: 8px; padding: 5px 8px; font-family: var(--font-mono, monospace); font-size: 13px; width: 100%; }
.me-sf-c { display: flex; gap: 6px; }
.me-sf-c button { flex: 1; border: 1px solid #DCD4C8; background: #fff; border-radius: 8px; font-size: 12px; padding: 5px; }
.me-sf-acts { display: flex; gap: 6px; }
.me-sf-acts .btn { flex: 1; }
.me-sf-it { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #EEE7DD; border-radius: 9px; cursor: pointer; font-size: 12.5px; margin-bottom: 5px; }
.me-sf-it span { flex: 1; display: flex; flex-direction: column; }
.me-sf-it small { color: var(--muted); font-family: var(--font-mono, monospace); font-size: 11px; }
.me-sf-it.on, .me-sf-it:hover { border-color: #E8702A; background: #FFF6EE; }
.me-sf-it button { border: 0; background: none; color: #b42318; }
.me-sf-rad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.me-sf-rad .me-sf-cap { grid-column: span 2; }
#meSurfSvg .sf-pnl { fill: #F4EEE6; stroke: #1E2A3B; stroke-width: 2; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-h { fill: #c9c2b8; }
#meSurfSvg .sf-h.fb { fill: none; stroke: #c9c2b8; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sf-op { stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.sf-op.k-led { fill: rgba(59, 130, 196, .55); stroke: #1d4f80; }
.sf-op.k-delik { fill: #2a2f37; stroke: #111; }
.sf-op.k-oyma { fill: rgba(122, 90, 60, .55); stroke: #5A4632; }
.sf-op.fb { fill: none; stroke-dasharray: 5 4; }
#meSurfSvg .sf-dr { fill: rgba(232, 112, 42, .35); stroke: #E8702A; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-dl { stroke: #E8702A; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-dt { fill: #9a3f06; font-family: var(--font-mono, monospace); font-weight: 700; }
#meSurfSvg .sf-t { fill: #4a5260; text-anchor: middle; font-weight: 600; }
/* köşe kertmesi + kenar görünüşleri (Yüzden / Yandan / Üstten) */
#meSurfSvg .sf-kert { fill: #fff; stroke: #F27007; stroke-width: 2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-kt { fill: #F27007; text-anchor: middle; font-family: var(--font-mono, monospace); font-weight: 700; }
#meSurfSvg .sf-hz { stroke-width: 1; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-he { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#meSurfSvg .sf-off { stroke: #1f8fb8; stroke-width: 1.3; stroke-dasharray: 10 5 2 5; vector-effect: non-scaling-stroke; pointer-events: none; }
#meSurfSvg .sf-reg { fill: rgba(31,143,184,.10); stroke: #1f8fb8; stroke-opacity: .4; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; cursor: pointer; }
#meSurfSvg .sf-reg:hover { fill: rgba(232,112,42,.28); }
#meSurfSvg .sf-reg.cut { fill: rgba(232,112,42,.12); stroke: #F27007; stroke-opacity: .9; stroke-dasharray: 6 4; }
#meSurfSvg .sf-reg.no { fill: transparent; cursor: not-allowed; }
#meSurfSvg .sf-ab { fill: #8a8f98; text-anchor: middle; font-family: var(--font-mono, monospace); font-weight: 700; }
.me-sf-vw { flex: 0 0 auto; margin-bottom: 8px; }
.me-sf-kert { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.me-sf-kert .me-sf-cap, .me-sf-kert .me-sf-kc, .me-sf-kert .btn, .me-sf-kert .me-sf-it { grid-column: span 2; }
.me-sf-kert label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); gap: 2px; }
.me-sf-kert input, .me-sf-kert select { border: 1px solid #DCD4C8; border-radius: 8px; padding: 5px 8px; font-family: var(--font-mono, monospace); font-size: 13px; width: 100%; background: #fff; }
.me-sf-kert .me-sf-it { margin-bottom: 0; cursor: default; }
.rp-drill-leg i.k-led, .rp-dot.k-led { background: #3B82C4; }
.rp-drill-leg i.k-delik, .rp-dot.k-delik { background: #2a2f37; }
.rp-drill-leg i.k-oyma, .rp-dot.k-oyma { background: #7A5A3C; }
@media (max-width: 991.98px) { .me-sf-b { grid-template-columns: 1fr; } .me-sf-side { border-left: 0; border-top: 1px solid #E8E1D7; } .me-sf-cv { min-height: 280px; } }

/* ===== Oda Tasarla: otomatik doldur ===== */
.rp-auto { position: absolute; top: 14px; left: 14px; z-index: 6; }
.rp-auto-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; background: var(--fm-primary); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px -10px rgba(232,121,43,.8); cursor: pointer; }
.rp-auto-btn:hover { filter: brightness(1.06); }
.rp-auto-btn .bi-magic { font-size: 18px; }
.rp-auto-menu { margin-top: 8px; width: 330px; background: #fff; border: 1px solid #e6e1d8; border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(20,24,30,.35); }
.rp-auto-menu button { display: flex; gap: 12px; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left; padding: 10px 10px; border-radius: 10px; cursor: pointer; }
.rp-auto-menu button:hover { background: #fbf3ec; }
.rp-auto-menu button > i { font-size: 20px; color: var(--fm-primary); margin-top: 2px; }
.rp-auto-menu b { display: block; font-size: 14.5px; color: #1d232b; }
.rp-auto-menu small { display: block; font-size: 12.5px; color: #6b7685; line-height: 1.3; margin-top: 2px; }
.rp-auto-menu .rp-auto-prev { border-top: 1px solid #eee8df; border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
.rp-auto-menu .rp-auto-prev > i { color: #6b7685; }
.rp-app.is-elev .rp-auto { display: none; }
.rp-app.is-3d .rp-auto { display: none; }

/* sipariş formu: malzemeye göre plaka yerleşimi */
.plan-group + .plan-group { margin-top: 26px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.18); }
.plan-group-h { font-family: var(--font-display, inherit); font-size: 18px; letter-spacing: .02em; margin: 0 0 10px; color: #fff; }
.plan-group-h::before { content: '▣ '; color: var(--fm-primary); }
.plan-group .plan-warn:empty { display: none; }

/* ===== Modül Tasarla: tam ekran (masaüstü) — tek kaydırma, sayfa sabit ===== */
.rp-bottom-x { display: none; }
@media (min-width: 992px) {
    body.rp-full { overflow: hidden; }
    body.rp-full .page-hero, body.rp-full .md-intro, body.rp-full .site-footer, body.rp-full .wa-widget { display: none !important; }
    body.rp-full .rp-sec { padding: 12px 0 0; }
    body.rp-full .rp-lib { grid-column: 1; grid-row: 2; }
    body.rp-full .rp-stage { grid-column: 2; grid-row: 2; }
    body.rp-full .rp-side { grid-column: 3; grid-row: 2; }
    body.rp-full #mdBottom { display: none; grid-column: 2; grid-row: 2; align-self: end; position: relative; z-index: 7; margin: 0 8px 8px;
        max-height: 62%; overflow: auto; box-shadow: 0 -14px 40px -14px rgba(20, 24, 30, .4); }
    body.rp-full #mdBottom.open { display: block; }
    body.rp-full #mdBottom .md-tabs { position: sticky; top: -1px; background: #fff; z-index: 2; padding-top: 2px; }
    body.rp-full .rp-bottom-x { display: inline-flex; margin-left: auto; border: 0; background: #f2efe9; border-radius: 8px; width: 34px; height: 34px; align-items: center; justify-content: center; cursor: pointer; }
    body.rp-full .rp-bottom-x:hover { background: #e9e3d9; }
}

/* sipariş formu: listeye eklenen parçalar (malzeme malzeme) */
.stash-wrap { margin-top: 26px; }
.stash-h { font-weight: 700; font-size: 16px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stash-h i { color: var(--fm-primary); }
.stash-h small { font-weight: 500; font-size: 12.5px; color: #6b7685; }
#stashTable tr.grp-h td { background: #f6efe6; font-weight: 700; text-align: left; padding: 9px 12px; font-size: 14px; border-top: 2px solid var(--fm-primary); }
#stashTable tr.grp-h small { font-weight: 500; color: #6b7685; margin-left: 6px; }
#stashTable tr.grp-h .mat-sw { margin-right: 4px; }

/* ===== Çekmece rayı 3B önizlemesi (rail-preview.js) ===== */
.vp-railpv { position: relative; height: 200px; margin: 6px 0 12px; border-radius: 12px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 20%, #2a313b, #10141a); border: 1px solid #1e2a3b; }
.vp-railpv:empty::after { content: "3B ray önizlemesi yükleniyor…"; position: absolute; inset: 0; display: grid; place-items: center; color: #8d97a5; font-size: 12px; }
.vp-railpv-info { position: absolute; left: 10px; top: 8px; display: flex; flex-direction: column; gap: 1px; pointer-events: none;
    font-size: 11.5px; color: #a7b0bc; text-shadow: 0 1px 2px #000; }
.vp-railpv-info b { color: #f2f4f7; font-size: 12.5px; font-weight: 700; }
.vp-rp-ov { position: fixed; inset: 0; z-index: 9995; background: rgba(16, 21, 28, .62); display: flex; align-items: center; justify-content: center; }
.vp-rp { width: min(1100px, 94vw); height: min(680px, 90vh); display: flex; flex-direction: column; background: #fff;
    border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vp-rp-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; background: #1E2A3B; color: #fff; font-size: 15px; }
.vp-rp-h .mono-label { color: #F6A35C; }
.vp-rp-x { margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.vp-rp-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.vp-rp-list { overflow: auto; padding: 8px; border-right: 1px solid #E8E1D7; display: flex; flex-direction: column; gap: 4px; background: #FDFBF8; }
.vp-rp-list button { text-align: left; border: 1px solid transparent; background: #fff; border-radius: 10px; padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 0 #EEE7DD; }
.vp-rp-list button b { font-size: 13.5px; font-weight: 700; color: #1d232b; }
.vp-rp-list button small { font-size: 11.5px; color: #6b7685; }
.vp-rp-list button:hover { background: #FFF6EE; }
.vp-rp-list button.on { border-color: #E8702A; background: #FFF1E4; }
.vp-rp-pv { position: relative; min-height: 0; background: radial-gradient(110% 90% at 50% 25%, #2c333d, #0e1116); }
.vp-rp-pv .vp-railpv-info { left: 16px; top: 14px; font-size: 13px; }
.vp-rp-pv .vp-railpv-info b { font-size: 18px; }
.vp-rp-f { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid #E8E1D7; font-size: 13px; }
.vp-rp-hint { margin-right: auto; color: #6b7685; font-size: 12.5px; }
@media (max-width: 767.98px) { .vp-rp-b { grid-template-columns: 1fr; grid-template-rows: 180px minmax(0, 1fr); } .vp-rp-list { border-right: 0; border-bottom: 1px solid #E8E1D7; } }

/* ---- ölçüm aracı (measure.js) ---- */
.vm-layer .vm-ln { stroke: #F27007; stroke-width: 2; }
.vm-layer .vm-ln.live { stroke-dasharray: 6 4; }
.vm-layer .vm-pt { fill: #fff; stroke: #F27007; stroke-width: 2; }
.vm-layer .vm-snap { fill: rgba(242,112,7,.18); stroke: #F27007; stroke-width: 2; }
.vm-layer .vm-free { fill: none; stroke: #10151C; stroke-width: 1.5; stroke-dasharray: 2 2; }
.vm-layer .vm-box { fill: #10151C; stroke: #F27007; stroke-width: 1.5; }
.vm-layer text { font: 600 13px Inter, Arial, sans-serif; fill: #fff; text-anchor: middle; }
.vm-layer .vm-t2 { font-size: 10.5px; font-weight: 500; fill: #F8C9A3; }
html.vm-on #rpPlan, html.vm-on #rpElevSvg, html.vm-on #md2d, html.vm-on #rpDrillSvg, html.vm-on #rp3dCanvas, html.vm-on #me3dCanvas { cursor: crosshair !important; }
#rpMeasure.on { background: var(--fm-primary); color: #fff; }

/* ---- iç düzen: yan görünüş ---- */
.md-side-bg { fill-opacity: .35; stroke: #10151C; stroke-width: 2; vector-effect: non-scaling-stroke; }
.md-side-cut { fill-opacity: .95; }
.md-side-rail { fill: #8A94A3; stroke: #5F6B7A; stroke-width: 1; vector-effect: non-scaling-stroke; }
.md-side-lbl { fill: #6B7686; font-family: var(--font-mono); font-weight: 700; letter-spacing: .08em; }
.md-side-shelf { fill: #10151C; font-family: var(--font-mono); font-weight: 600; dominant-baseline: middle; }
.md-side-gap { fill: #6B7686; font-family: var(--font-mono); }
.md-conn .vid { fill: #fff; stroke: #5F6B7A; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* ---- iç düzen 2B X-Ray (ön / yan görünüş) ---- */
.md-xr .md-carcass, .md-xr .md-panel, .md-xr .md-side-bg, .md-xr .md-side-cut, .md-xr .md-plinth, .md-xr .md-leg, .md-xr .md-side-rail { fill-opacity: .06 !important; }
.md-xr .md-front-r { fill-opacity: 0 !important; stroke-dasharray: 6 4; stroke-opacity: .45; filter: none; }
.md-xr .md-handle, .md-xr .md-hinge { opacity: .25; }
.md-xbox { fill: none; stroke: #3B4A5E; stroke-width: 1; stroke-opacity: .7; vector-effect: non-scaling-stroke; pointer-events: none; }
.md-xr-hw { pointer-events: none; }
.md-xr-hw .xb, .md-xr-hw .xc { fill-opacity: .9; }
.md-xr-hw .xl { stroke-opacity: .9; }

/* ---- iç düzen 2B: yakınlaştır / kaydır ---- */
#md2d, #mdSide { touch-action: none; cursor: grab; }
#md2d.md-panning, #mdSide.md-panning { cursor: grabbing; }
.md-side-bg { pointer-events: none; }
.md-side-cell { fill: transparent; stroke: none; }
.md-side-cell.sel { fill: rgba(242, 112, 7, .16); stroke: var(--fm-primary); stroke-width: 2.5; }

/* ---- iç düzen 2B: parça seçimi, araç önizlemesi, düzenlenebilir ölçüler (3D ile aynı) ---- */
.md-mode-parca .md-cell { pointer-events: none; fill: transparent; stroke: none; }
.md-pick { fill: transparent; stroke: transparent; stroke-width: 2; cursor: pointer; vector-effect: non-scaling-stroke; }
.md-pick:hover { fill: rgba(242, 112, 7, .14); stroke: rgba(242, 112, 7, .7); }
.md-pick.sel { fill: rgba(242, 112, 7, .28); stroke: #F27007; stroke-width: 2.5; }
.md-pv { fill: rgba(242, 112, 7, .12); stroke: #F27007; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.md-edim line { stroke: #10151C; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.md-edim.pv line { stroke: #F27007; }
.md-edim-l rect { fill: #fff; stroke: #10151C; stroke-width: 1; vector-effect: non-scaling-stroke; }
.md-edim.sel .md-edim-l rect, .md-edim.pv .md-edim-l rect { stroke: #F27007; }
.md-edim-l text { font-family: var(--font-mono); font-weight: 700; text-anchor: middle; fill: #10151C; }
.md-edim-l.ed { cursor: pointer; }
.md-edim-l.ed:hover rect { fill: #FFF1E5; stroke: #F27007; }
.md-edim-in { width: 90px; transform: translate(-50%, -50%); }

/* ===== Anasayfa · Parçanızı tasarlayın (part-designer.js) ===== */
.pd-wrap { background: #FBF8F3; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(60,40,15,.45); overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; }
.pd-stage { background: var(--ink); position: relative; display: flex; flex-direction: column; min-height: 560px; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; }
.pd-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.pd-seg { display: inline-flex; border: 1.5px solid #e1e5ea; border-radius: 10px; overflow: hidden; background: #fff; }
.pd-seg button { border: 0; background: transparent; padding: 7px 11px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #4a5260; }
.pd-seg button + button { border-left: 1px solid #e1e5ea; }
.pd-seg button.on { background: var(--fm-primary); color: #fff; }
.pd-seg button:disabled { opacity: .35; }
.pd-seg.dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.pd-seg.dark button { color: #c9d2dc; }
.pd-seg.dark button + button { border-left-color: rgba(255,255,255,.12); }
.pd-seg.dark button:hover:not(.on):not(:disabled) { background: rgba(255,255,255,.08); }
.pd-seg.dark button.on { background: var(--fm-primary); color: #fff; }
.pd-canvas { flex: 1; display: grid; place-items: center; padding: 10px 18px; min-height: 0; }
.pd-canvas svg { width: 100%; height: 100%; max-height: 520px; overflow: visible; touch-action: none; }
.pd-canvas .pg-hit:hover { stroke: rgba(232,112,42,.35); }
.pd-canvas.kirp .pg-reg:not(.no):hover { fill-opacity: 1; fill: rgba(232,112,42,.28); }
.pd-canvas .pg-op:hover { filter: brightness(1.25); }
.pd-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 18px 14px; color: #9aa6b4; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .3px; min-height: 30px; }
#pdMsg { color: #7fd18b; text-align: right; }
#pdMsg.bad { color: #ff9c8a; }
.pd-ctrl { padding: 26px 28px; min-width: 0; }
.pd-ctrl .lbl { font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; display: block; }
.pd-ctrl .sim-input input { font-size: .95rem; padding: 9px 10px; }
.pd-ctrl .sim-input span { padding: 0 8px; font-size: 11px; white-space: nowrap; }
.pd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1.5px solid #e6ddd0; padding-bottom: 10px; }
.pd-tab { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.pd-tab.on { background: var(--ink); color: #fff; }
.pd-tab:hover:not(.on) { background: #efe7da; color: var(--ink); }
.pd-pane { min-height: 170px; margin-bottom: 14px; }
.pd-edges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd-cb { display: flex; align-items: center; gap: 7px; border: 1.5px solid #e1e5ea; background: #fff; border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.pd-cb small { color: var(--muted); font-weight: 500; margin-left: auto; }
.pd-cb input { accent-color: var(--fm-primary); }
.pd-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.pd-warn { color: #b42318; font-size: 11px; }
.pd-cn { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.pd-sel { width: 100%; border: 1.5px solid #e1e5ea; border-radius: 10px; padding: 9px 10px; font-weight: 600; font-size: 13.5px; background: #fff; }
.pd-btn { border: 1.5px solid #d9cfbf; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13px; color: var(--ink); transition: .2s; }
.pd-btn:hover { border-color: var(--fm-primary); }
.pd-btn.on { background: var(--fm-primary); border-color: var(--fm-primary); color: #fff; }
.pd-list { display: flex; flex-direction: column; gap: 5px; }
.pd-it { display: flex; align-items: center; gap: 8px; border: 1px solid #e6ddd0; background: #fff; border-radius: 9px; padding: 6px 8px; font-size: 12.5px; }
.pd-it span { flex: 1; min-width: 0; }
.pd-it.on, .pd-it[data-edit-op]:hover { border-color: var(--fm-primary); background: #FFF6EE; cursor: pointer; }
.pd-it button { border: 0; background: none; color: #b42318; padding: 0 4px; }
.pd-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; display: inline-block; }
.pd-dot.cut { border: 2px dashed var(--fm-primary); }
.pd-dot.off { border: 2px dashed #1f8fb8; }
.pd-dot.led { background: rgba(59,130,196,.7); }
.pd-dot.delik { background: #2a2f37; border-radius: 50%; }
.pd-dot.oyma { background: rgba(122,90,60,.7); }
.pd-add { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pd-add button { border: 1.5px solid #e1e5ea; background: #fff; border-radius: 10px; padding: 8px 6px; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pd-add button i { font-size: 1.1rem; color: var(--fm-primary); }
.pd-add button:hover { border-color: var(--fm-primary); }
.pd-draft { border: 1.5px solid var(--fm-primary); background: #FFF8F1; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pd-dh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pd-draft .pd-seg { display: flex; }
.pd-draft .pd-seg button { flex: 1; }
.pd-sum { color: var(--text); font-size: 12px; line-height: 1.5; display: inline-block; }
@media (max-width: 991px) { .pd-wrap { grid-template-columns: 1fr; } .pd-stage { min-height: 420px; } .pd-ctrl { padding: 20px; } }

/* sipariş formu: çizimli satır */
.row-geo { border: 0; background: #FFF1E5; color: var(--fm-primary); border-radius: 7px; padding: 2px 6px; margin-right: 4px; }
.row-geo[hidden] { display: none; }
.pg-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(16,21,28,.55); display: grid; place-items: center; padding: 20px; }
.pg-modal-box { background: #fff; border-radius: 16px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; padding: 18px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.pg-modal-box .pg-svg { width: 100%; height: auto; max-height: 60vh; }
.pg-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pg-modal-h button { border: 0; background: none; font-size: 1.2rem; }
.pg-modal-s { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }

/* ---- Malzeme ve renk seçimi (gövde · kapak · arkalık, kapak kapak, katalog penceresi) ---- */
.ac-fm { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--line, #e7e1d8); background: #fff; border-radius: 10px; padding: 7px 9px; margin: 0 0 5px; font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.ac-fm:hover { border-color: #F27007; background: rgba(242,112,7,.04); }
.ac-fm > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ac-fm > span small { color: #7a7268; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-fm > .bi:first-child { font-size: 17px; color: #F27007; }
.ac-fm > .bi-chevron-right { color: #b5ada3; font-size: 11px; }
.ac-fm.ov { border-color: rgba(242,112,7,.55); }
.ac-fm .md-sw { width: 26px; height: 26px; border-radius: 6px; margin: 0; flex: none; }
.ac-fml { margin: 8px 0 4px; border: 1px solid var(--line, #e7e1d8); border-radius: 12px; padding: 7px 9px; }
.ac-fml > summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.ac-fml > summary small { color: #7a7268; font-weight: 500; }
.ac-fml[open] > summary { margin-bottom: 6px; }
.md-catbtn { border: 1px solid var(--line, #e7e1d8); background: #fff; border-radius: 8px; padding: 2px 7px; font-size: 12px; }
.md-catbtn:hover { border-color: #F27007; color: #F27007; }

.am-ov, .mt-ov { position: fixed; inset: 0; z-index: 2000; background: rgba(30,24,18,.42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.am { width: min(860px, 100%); height: min(620px, calc(100vh - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; font-size: 13px; }
.am-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eee7de; }
.am-h b { font-size: 14.5px; white-space: nowrap; }
.am-h input { flex: 1; min-width: 0; border: 1px solid #e2dbd1; border-radius: 9px; padding: 6px 10px; font-size: 13px; outline: none; }
.am-h input:focus { border-color: #F27007; box-shadow: 0 0 0 3px rgba(242,112,7,.15); }
.am-x, .mt-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #8a8178; padding: 0 4px; cursor: pointer; }
.am-x:hover, .mt-x:hover { color: #222; }
.am-body { flex: 1; min-height: 0; }
.am-b { display: flex; height: 100%; }
.am-l { width: 210px; flex: none; overflow: auto; border-right: 1px solid #eee7de; padding: 8px; background: #faf8f5; }
.am-l button { display: flex; width: 100%; align-items: center; gap: 6px; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 7px 9px; font-size: 12.5px; cursor: pointer; }
.am-l button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-l button small { color: #8a8178; }
.am-l button:hover { background: #f0ebe4; }
.am-l button.on { background: #F27007; color: #fff; }
.am-l button.on small { color: rgba(255,255,255,.85); }
.am-g { flex: 1; min-height: 0; overflow: auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 9px; align-content: start; }
.am-c, .am-def { border: 1.5px solid #e7e1d8; background: #fff; border-radius: 11px; padding: 0; text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.am-c:hover, .am-def:hover { border-color: #f3a35f; }
.am-c.on, .am-def.on { border-color: #F27007; box-shadow: 0 0 0 3px rgba(242,112,7,.2); }
.am-sw { flex: 0 0 74px; height: 74px; min-height: 74px; background-size: cover; background-position: center; border-bottom: 1px solid rgba(0,0,0,.06); }
.am-t { flex: none; padding: 6px 8px 7px; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.am-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-t small { color: #7a7268; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-def { padding: 10px; justify-content: center; min-height: 112px; background: repeating-linear-gradient(45deg, #fff, #fff 8px, #faf6f1 8px, #faf6f1 16px); }
.am-def small { color: #7a7268; }
.am-none { grid-column: 1 / -1; color: #8a8178; padding: 20px; text-align: center; }
.am-f { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #eee7de; }
.am-f .sp { flex: 1; min-width: 0; color: #6c645b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-btn { border: 1px solid #ddd5ca; background: #fff; border-radius: 9px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.am-btn:hover { border-color: #F27007; }
.am-main { background: #F27007; border-color: #F27007; color: #fff; font-weight: 600; }
.am-main:hover { background: #d96205; }
@media (max-width: 640px) { .am-l { width: 130px; } .am-g { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } .am-h b { display: none; } }

.mt-pan { width: min(440px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 14px; font-size: 13px; max-height: calc(100vh - 32px); overflow: auto; }
.mt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mt-h > .bi { color: #F27007; font-size: 18px; }
.mt-h b { flex: 1; font-size: 15px; }
.mt-seg { display: flex; gap: 4px; background: #f3efe9; border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.mt-seg button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; font-size: 12px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.mt-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1px solid #e7e1d8; background: #fff; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; cursor: pointer; }
.mt-row:hover { border-color: #F27007; background: rgba(242,112,7,.04); }
.mt-row.off { opacity: .6; }
.mt-sw { width: 44px; height: 44px; min-height: 44px; border-radius: 9px; border: 1px solid rgba(0,0,0,.15); flex: none; background-size: cover; background-position: center; }
.mt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mt-t small { color: #7a7268; font-size: 11.5px; }
.mt-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-t em { font-style: normal; color: #7a7268; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-t em u { text-decoration: none; color: #F27007; font-weight: 600; }
.mt-row > .bi-chevron-right { color: #b5ada3; font-size: 12px; }
.mt-chk { display: flex; gap: 7px; align-items: center; font-size: 12.5px; margin: 4px 0 8px; cursor: pointer; }
.mt-note { font-size: 11.5px; color: #7a7268; background: #faf8f5; border-radius: 9px; padding: 7px 9px; }
.mt-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.mt-a button { border: 1px solid #ddd5ca; background: #fff; border-radius: 9px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.mt-a button:hover { border-color: #F27007; }
.mt-a .pri { background: #F27007; border-color: #F27007; color: #fff; font-weight: 600; }

/* kapak menteşe yönü / konumu (Kapaklar ve ön yüzler) */
.ac-hg { margin: -2px 0 7px 8px; padding: 5px 8px; border-left: 2px solid #d9d2c7; font-size: 12px; }
.ac-hg.bad { border-left-color: #d63b2f; }
.ac-hg-dir { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.ac-hg-dir > span { color: #7a7268; margin-right: 2px; }
.ac-hg-dir button, .ac-hg-b button { border: 1px solid #d9d2c7; background: #fff; border-radius: 7px; padding: 1px 9px; font-size: 12px; cursor: pointer; }
.ac-hg-dir button.on { background: #1f2937; border-color: #1f2937; color: #fff; }
.ac-hg-b button:disabled { opacity: .45; cursor: default; }
.ac-hg-t { border: 0; background: none; padding: 0; font-size: 12px; color: #374151; cursor: pointer; text-align: left; }
.ac-hg-t:hover { text-decoration: underline; }
.ac-hg-t em { font-style: normal; font-size: 11px; background: #eef2ff; color: #3949ab; border-radius: 5px; padding: 0 5px; }
.ac-hg.bad .ac-hg-t .bi-exclamation-triangle-fill { color: #d63b2f; }
.ac-hg-ed { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.ac-hg-ed > small { width: 100%; color: #7a7268; }
.ac-hg-ed label { display: flex; align-items: center; gap: 3px; margin: 0; }
.ac-hg-ed label span { color: #7a7268; }
.ac-hg-ed input { width: 70px; padding: 1px 5px; border: 1px solid #d9d2c7; border-radius: 6px; font-size: 12px; }
.ac-hg-ed label.bad input { border-color: #d63b2f; background: #fff1f0; }
.ac-hg-b { width: 100%; display: flex; gap: 5px; }

.md-ct-hg .ac-hg { margin: 2px 0 0; }
.md-hcup { fill: rgba(255,255,255,.75); stroke: #10151C; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.md-hcup.bad { fill: #ffd9d6; stroke: #d63b2f; stroke-width: 2.5; }
.ac-hg-edit { display: inline-block; margin-left: 4px; padding: 0 7px; border: 1px solid #d9d2c7; border-radius: 6px; background: #fff; font-size: 11.5px; color: #1f2937; }
.ac-hg-t:hover .ac-hg-edit { border-color: #1f2937; }

/* ===================== MOBİL DÜZELTMELERİ ===================== */
/* yatay kayma olmasın (iOS Safari body overflow'u yok sayabiliyor) */
html { overflow-x: clip; }
@media (max-width: 767.98px) {
    /* Bootstrap g-5 satırları kapsayıcı dolgusundan geniş: telefonda sayfa yana kayıyordu */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    /* modül düzenleyici durum satırı: tek satıra sığmayan açıklama kesilmesin */
    .me-app { grid-template-rows: auto minmax(0, 1fr) auto; }
    .me-status { white-space: normal; line-height: 1.35; padding: 6px 10px; font-size: 12px; min-height: 30px; }
    /* sipariş tablosu: yana kayarken sıra numarası görünür kalsın */
    .cut-table td.sira { position: sticky; left: 0; z-index: 1; }
    .cut-table thead tr:not(.grp) th:first-child { left: 0; z-index: 3; }
    .wa-bubble { width: min(250px, calc(100vw - 40px)); }
}
.cut-hint { display: none; }
@media (max-width: 991.98px) {
    .cut-hint { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; padding: 6px 10px; border-radius: 9px; background: #F3F4F6; color: #4B5563; font-size: 12.5px; transition: opacity .4s, max-height .4s; max-height: 60px; overflow: hidden; }
    .cut-hint i { font-size: 15px; }
    .cut-hint.seen { opacity: 0; max-height: 0; margin: 0; padding: 0 10px; }
}
/* modül tasarla: telefonda seçili dolap için hızlı erişim çubuğu (özellikler paneli sayfanın altında kalıyordu) */
.rp-mobbar { display: none; }
@media (max-width: 1099.98px) {
    .rp-mobbar:not([hidden]) { display: flex; align-items: center; gap: 6px; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(16, 21, 28, .94); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
    .rp-mobbar b { flex: 1 1 auto; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rp-mobbar button { flex: none; border: 0; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; }
    .rp-mobbar button.pri { background: var(--fm-primary, #F27007); }
    .rp-mobbar button[data-mb="x"] { padding: 7px 9px; background: transparent; color: #cfd5dd; }
}
@media (max-width: 1099.98px) { .rp-stage:has(.rp-mobbar:not([hidden])) .rp-zoom { bottom: 66px; } }
@media (max-width: 345px) { .rp-mobbar button span { display: none; } }
/* telefonda modül tasarla ekranında WhatsApp düğmesi araç çubuklarının üstüne biniyordu */
@media (max-width: 767.98px) { body:has(.rp-app) .wa-widget, body:has(.rp-app) .to-top { display: none !important; } }

/* ---- Güvenlik sorusu (captcha) ---- */
.cap-box { margin: 0 0 12px; }
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-img { flex: none; line-height: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.cap-img svg { display: block; width: 150px; height: 48px; }
.cap-in { width: 96px; flex: none; height: 48px; font-size: 20px; font-weight: 700; text-align: center; letter-spacing: 1px; }
.cap-new { height: 48px; flex: none; }
.cap-hint { display: block; margin-top: 4px; font-size: 12px; color: #7a7268; }
.cap-err .cap-in { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,.15); }
.cap-err .cap-hint { color: #dc3545; font-weight: 600; }
