@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Heppio: mürekkep siyahı ana renk (düğmeler), kırmızı marka vurgusu. Kırmızı düğme yok: önizlemede kırmızı
     "basılamayacak kadar ince" uyarısıdır, karışmasın. Görsel dil tanıtım sayfasıyla ortak (Enerji yönü):
     Plus Jakarta Sans, hap düğmeler, logodaki eğimde kırmızı slash işaretleri. */
  --slash: -29deg; /* logodaki slash eğimi */
  --ink: #0b0b0c;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #0b0b0c;
  --muted: #5c5c63;
  --line: #e2e2de;
  --accent: #0b0b0c;
  --accent-text: #ffffff;
  --accent-soft: #eeeeea;
  --brand: #ff0000;
  --danger: #b42318;
  --red: #dc2626;
  --orange: #f59e0b;
  --blue: #2563eb;
  --plate: #ffffff;
  --shape: #1f2937;
  --grid: #eef0f3;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #18181b;
    --text: #f4f4f2;
    --muted: #a1a1aa;
    --line: #2c2c31;
    --accent: #f4f4f2;
    --accent-text: #0b0b0c;
    --accent-soft: #26262b;
    --brand: #ff2a2a;
    --danger: #f97066;
    --plate: #23272f;
    --shape: #e5e7eb;
    --grid: #2a2f38;
    --ink: #1c1c20; /* koyu zeminde mürekkep alanları (seçili ürün, giriş alanı) biraz açık */
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 16px; }
a { color: var(--accent); }
h1, h2 { line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.red { color: var(--red); } .orange { color: var(--orange); } .blue { color: var(--blue); }

/* Üst çubuk */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-light { display: none; } .brand .logo-dark { display: block; } }
.brand .tag { margin-left: 10px; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav { margin-left: auto; }
.lang-switch {
  order: 3; flex: none; width: auto; font: inherit; font-size: 13px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; cursor: pointer;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--text); }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; position: relative; padding: 4px 0; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); }
/* Seçili menü: altında logodaki eğimde kısa kırmızı slash */
nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 4px; margin-left: -8px; background: var(--brand); transform: skewX(var(--slash)); }
.chip { font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.full { background: #fde8e7; color: #8a1c12; }

/* Form öğeleri */
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; }
label small { font-weight: 400; color: var(--muted); }
input[type=email], input[type=password], input[type=number], input[type=search], input[type=text], input:not([type]), select {
  font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
input:focus-visible, select:focus-visible, button:focus-visible, .drop:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { margin-top: 3px; flex: none; }
label output { font-weight: 400; color: var(--muted); margin-left: 4px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); padding: 0; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 8px; }
/* Bölüm başlığı işareti: tanıtım sayfasındaki eyebrow ile aynı eğik kırmızı blok */
legend::before { content: ""; width: 14px; height: 8px; background: var(--brand); transform: skewX(var(--slash)); display: inline-block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
details summary { cursor: pointer; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }

.btn {
  font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, var(--line)); background: var(--surface); color: var(--text);
  transition: border-color .15s, background-color .15s, transform .1s;
}
.btn:hover:not(:disabled) { border-color: var(--text); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.big { padding: 14px 18px; font-size: 1.02rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; }
nav button.link { color: var(--muted); }
button.icon {
  width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.error { color: var(--danger); margin: 0; min-height: 0; }
.error:empty, .msg:empty { display: none; }
.error.big { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--danger); border-radius: 8px; }
.msg { margin: 0; color: var(--accent); }
.msg.bad { color: var(--danger); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { display: flex; align-items: center; gap: 10px; }

/* Giriş */
.auth { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; padding-top: 28px; }
/* Sol: koyu karşılama alanı, sağ altta logodaki eğimde kırmızı bant */
.auth-intro { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.auth-intro::before { content: ""; position: absolute; left: 84%; right: -45%; top: 0; bottom: 0; background: var(--brand); transform: skewX(var(--slash)); transform-origin: bottom; opacity: .95; }
.auth-intro > * { position: relative; max-width: 28rem; }
.auth h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; color: #cfcfd4; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; background: var(--brand); transform: skewX(var(--slash)); }
.checks b.red { color: #ff6b6b; } .checks b.orange { color: #fbbf24; } .checks b.blue { color: #7aa7ff; }
.auth-card { align-self: center; padding: 26px; border-radius: 24px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: inherit; font-weight: 700; background: none; border: 0; padding: 8px 12px; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected=true] { color: var(--text); border-color: var(--brand); border-bottom-width: 3px; }

/* Dönüştürücü */
.studio { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
/* Uzun ayar paneli kaydırılırken önizleme ve sonuç ekranda kalsın (sığmazsa kendi içinde kayar). Yükseklik alt
   bilgi payını da içerir: sayfa sonunda sütun yukarı itilip başlık çubuğunun altına girmesin. */
@media (min-width: 901px) {
  .work { position: sticky; top: 72px; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; }
}
.panel form > fieldset + fieldset, .panel details { border-top: 1px solid var(--line); padding-top: 14px; }
.drop {
  border: 2px dashed color-mix(in srgb, var(--text) 18%, var(--line)); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 400; color: var(--muted);
}
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop b { color: var(--accent); }
#thumb { max-width: 100%; max-height: 120px; object-fit: contain; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 50% / 12px 12px; border-radius: 4px; }
#file-info { margin: -6px 0 0; word-break: break-all; }

.work { min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.layers { display: flex; gap: 8px; flex-wrap: wrap; }
.layer {
  flex-direction: row; align-items: center; gap: 6px; font-weight: 600; font-size: .82rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; cursor: pointer;
}
.layer b { font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw.red { background: var(--red); } .sw.orange { background: var(--orange); } .sw.blue { background: var(--blue); }
.zoom { display: flex; gap: 6px; }

.stage {
  position: relative; height: clamp(300px, calc(100vh - 390px), 680px); border: 1px solid var(--line); border-radius: 20px;
  background-color: var(--plate); overflow: hidden; touch-action: none; cursor: grab; color: var(--shape);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.stage.dark { --plate: #1b1e24; --grid: #262a32; --shape: #f3f4f6; }
.stage.light { --plate: #ffffff; --grid: #eef0f3; --shape: #1f2937; }
.stage.dragging { cursor: grabbing; }
.stage > svg { width: 100%; height: 100%; display: block; }
.stage.hide-ince #risk-ince, .stage.hide-ince #isaret-ince,
.stage.hide-bosluk #risk-bosluk, .stage.hide-bosluk #isaret-bosluk,
.stage.hide-duzeltilen #duzeltilen, .stage.hide-duzeltilen #isaret-duzeltilen { display: none; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 16px; }
.placeholder p { margin: 2px; }
.busy {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--plate) 75%, transparent); font-weight: 600;
}
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.result { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.size { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.warnings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.warnings li { padding: 9px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); font-size: .9rem; }
.warnings li.ok { border-left-color: #16a34a; }

/* Hesap */
.account { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.card.danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.foot { text-align: center; padding: 20px 16px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* KVKK sayfası */
.doc { max-width: 720px; }
.notice { padding: 10px 14px; border: 1px solid var(--orange); border-radius: 8px; background: color-mix(in srgb, var(--orange) 12%, transparent); }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; gap: 16px; padding-top: 4px; }
  .auth-intro::before { left: 88%; }
  .auth-card { order: -1; } /* telefonda form önce: tanıtım sayfasından "Ücretsiz başla" ile gelinir */
  .auth h1 { font-size: 1.6rem; }
  .stage { height: 60vh; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  nav { gap: 10px; font-size: .9rem; }
  /* Dar ekranda: 1. satır logo + dil, 2. satır menü */
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .lang-switch { order: 1; margin-left: auto; }
  .topbar nav { order: 2; flex-basis: 100%; justify-content: flex-start; margin-left: 0; }
}

/* ---------- Yönetim paneli ---------- */
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label.inline select { width: auto; }
.tag { font-style: normal; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--text); }
.admin { display: flex; flex-direction: column; gap: 16px; }
.admin .tabs { margin-bottom: 0; overflow-x: auto; }
.stack-l { display: flex; flex-direction: column; gap: 16px; }
h3 { font-size: .95rem; margin: 0 0 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 0; flex: 1 1 160px; }
.filters .btn { flex: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile-label { font-size: .82rem; color: var(--muted); }
.tile-value { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.tile.warn { border-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger); }
.tile.warn .tile-value { color: var(--danger); }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); }
.chart .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .baseline { stroke: var(--muted); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .hit.on { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.chart-tip {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap;
  background: var(--text); color: var(--surface); font-size: .8rem; padding: 4px 8px; border-radius: 6px;
}

.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.card table.grid, .sheet table.grid { background: transparent; }
table.grid th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid.clickable tbody tr[tabindex] { cursor: pointer; }
table.grid.clickable tbody tr[tabindex]:hover, table.grid.clickable tbody tr[tabindex]:focus-visible { background: var(--accent-soft); outline: none; }
details table.grid { margin-top: 8px; max-width: 320px; }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--line); color: var(--text); white-space: nowrap; }
.badge.ok { background: #dcfce7; color: #14532d; }
.badge.bad { background: #fee2e2; color: #7f1d1d; }
.badge.accent { background: var(--accent-soft); color: var(--text); }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pager span { margin-right: auto; }

dialog.sheet {
  width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
dialog.sheet.narrow { width: min(520px, calc(100vw - 32px)); }
dialog.sheet::backdrop { background: rgb(0 0 0 / .45); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sheet-head h2 { margin: 0; word-break: break-all; }
.sheet-body { padding: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) {
  .badge.ok { background: #14532d; color: #dcfce7; }
  .badge.bad { background: #7f1d1d; color: #fee2e2; }
  .chip.full { background: #7f1d1d; color: #fee2e2; }
}

/* Planlar (Hesabım) */
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plan.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-name { font-weight: 700; }
.plan-price { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-feats { margin: 4px 0; padding-left: 18px; font-size: .85rem; color: var(--muted); flex: 1; }
.plan .btn { width: 100%; }

/* ---------- Ürünler, yazı, 3D, geçmiş ---------- */
.src-tabs { margin-bottom: 0; }
textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); width: 100%; resize: vertical; min-height: 72px;
}
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.products button {
  font: inherit; font-size: .78rem; font-weight: 600; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 9px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.products button:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.products button[aria-checked=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.products button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Ürün ikonu: Tabler ikonu maske olarak (rengi temadan), yoksa yazı karakteri */
.p-icon { font-size: 1.2rem; line-height: 1; color: var(--brand); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.p-icon.mask { background: var(--brand); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
input[type=color] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

.view-tabs { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; padding: 2px; gap: 2px; background: var(--surface); }
.view-tabs button { font: inherit; font-weight: 700; font-size: .85rem; padding: 5px 14px; border-radius: 999px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.view-tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-text); }
.view-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.toolbar .layers { flex: 1; }
.stage-wrap { position: relative; }
.stage3d { cursor: grab; background-image: none; }
.stage3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.palette:empty { display: none; }
.swatch { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-variant-numeric: tabular-nums; }
.swatch .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); display: inline-block; }

.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--danger); }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.history { display: flex; flex-direction: column; gap: 14px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.h-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.h-card:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); box-shadow: 0 12px 30px -18px rgb(0 0 0 / .35); }
.h-thumb { aspect-ratio: 4 / 3; background: var(--plate); color: var(--shape); display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line); }
.h-thumb svg { width: 100%; height: 100%; }
.h-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.h-name { font-weight: 700; word-break: break-word; }
.h-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.h-actions .btn { padding: 5px 10px; font-size: .85rem; }
@media (max-width: 480px) { .products { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tasarım düzenleyicisi ---------- */
.ed-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ed-add label.btn { flex-direction: row; font-weight: 600; font-size: 1rem; cursor: pointer; }
.ed-add input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ed-add label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.sm { padding: 5px 9px; font-size: .8rem; }
.icon.sm { width: 28px; height: 28px; font-size: .95rem; }
.icon:disabled { opacity: .4; cursor: not-allowed; }
.ed-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ed-row { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px 3px 3px; background: var(--surface); }
.ed-row.on { border-color: var(--accent); background: var(--accent-soft); }
.ed-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-kind { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.ed-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-actions .btn { padding: 5px 10px; font-size: .85rem; }
.bad-text { color: var(--danger); }

.stage-edit { background-image: none; cursor: default; touch-action: none; }
.stage-edit svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.ed-gridline { fill: none; stroke: var(--grid); stroke-width: 0.15; }
.ed-bg { pointer-events: none; }
.ed-el { cursor: move; }
.ed-text { white-space: pre; }
.ed-mono image { filter: grayscale(1) contrast(1.4); }
.ed-sel { fill: none; stroke: var(--accent); stroke-width: 1.5px; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.ed-handle { fill: var(--surface); stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke; cursor: nwse-resize; }
.ed-handle.ed-rot { cursor: grab; }
.ed-size { position: absolute; left: 10px; bottom: 8px; font-size: .8rem; color: var(--muted); background: color-mix(in srgb, var(--plate) 80%, transparent); padding: 2px 8px; border-radius: 6px; pointer-events: none; font-variant-numeric: tabular-nums; }
.stage-edit { position: relative; }
@media (max-width: 900px) {
  /* Tasarım modunda tuval üstte: sürüklemek için uzun paneli kaydırmak gerekmesin */
  .studio.composing .work { order: -1; }
  .studio.composing .stage-edit { height: 52vh; min-height: 280px; }
}

/* ---------- Renk seçici ---------- */
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; }
.cpick { position: relative; }
.cpick-btn { font: inherit; font-weight: 400; display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.cpick-btn .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .25); flex: none; }
.cpick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.cpick-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 244px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .18); display: flex; flex-direction: column; gap: 8px; }
.cpick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.cpick-sw { width: 100%; aspect-ratio: 1; border-radius: 6px; border: 1px solid rgb(0 0 0 / .2); cursor: pointer; padding: 0; }
.cpick-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cpick-custom { flex-direction: row; align-items: center; gap: 8px; font-size: .85rem; font-weight: 400; }
.cpick-custom input { width: 40px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 4px; }

/* ---------- İkon kütüphanesi ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 55vh; overflow-y: auto; padding: 2px; }
.icon-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 12px; display: flex; align-items: center; justify-content: center; }
.icon-cell:hover, .icon-cell:focus-visible { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); outline: none; }
.icon-cell img { width: 100%; height: 100%; }
.btn-select { width: auto; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }

/* ---------- Topluluk (static/topluluk.html, community.js) ---------- */
.mod-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.mod-thumb { width: 140px; aspect-ratio: 4 / 3; object-fit: contain; background: #ecece8; border-radius: 10px; }
@media (max-width: 600px) { .mod-item { grid-template-columns: 1fr; } }
.community main { max-width: 1280px; }
.c-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.c-hero p { margin: 6px 0 0; max-width: 46rem; }
.c-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.c-filters label.check { flex: none; font-size: .88rem; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.c-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.c-card:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); box-shadow: 0 14px 30px -20px rgb(0 0 0 / .4); transform: translateY(-2px); }
.c-thumb { aspect-ratio: 4 / 3; background: #ececE8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.c-thumb img { width: 100%; height: 100%; object-fit: contain; }
.c-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.c-card-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tag.lic { background: var(--ink); color: #fff; }
.tag.warn { background: #fff4d6; color: #7a4b00; }
.c-profile h2 { margin: 0; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.c-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.c-media { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 72px; }
.c-media .view-tabs { align-self: flex-start; }
.c-stage { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #ecece8; border: 1px solid var(--line); position: relative; }
.c-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c-stage .stage3d { position: absolute; inset: 0; height: 100%; min-height: 0; border: 0; border-radius: 0; }
/* 3D çözünürlük notu (sahnenin üstünde) */
.res-note { position: absolute; left: 12px; bottom: 12px; max-width: min(440px, calc(100% - 24px)); z-index: 2; display: flex; flex-direction: column;
  gap: 4px; padding: 12px 38px 12px 14px; border-radius: 14px; font-size: .84rem; line-height: 1.35; background: rgb(11 11 12 / .88); color: #fff;
  backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.res-note[hidden] { display: none; }
.res-note b { font-weight: 800; }
.res-note a:not(.btn) { color: #fff; font-weight: 700; }
.res-note.warn { border-left: 5px solid var(--brand); }
.res-note.warn b { color: #ff4d4d; }
.res-note.ok { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .76rem; }
.res-note .res-min { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .12);
  color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.res-note.mini { padding: 6px 12px; border-radius: 999px; cursor: pointer; border-left-width: 0; }
.res-note.mini span, .res-note.mini a, .res-note.mini .res-min { display: none; }
.res-note.mini b { font-size: .76rem; }
.res-note.center { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); align-items: center; text-align: center; padding: 20px 22px;
  width: min(380px, calc(100% - 24px)); gap: 8px; }
.res-note.center b { font-size: 1.05rem; }
.res-note .c-actions { justify-content: center; margin-top: 4px; }
.c-stage img.blurred { filter: blur(14px) grayscale(.3); transform: scale(1.08); }
.c-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.025em; margin: 0; word-break: break-word; }
.c-info .muted a { color: var(--text); font-weight: 700; }
.c-parent a { font-weight: 700; color: var(--text); }
.c-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.c-stats b { color: var(--text); }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.c-actions a.btn { text-decoration: none; }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl-pair { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.c-license p { margin: 6px 0 0; }
.c-desc { white-space: pre-line; margin: 0; word-break: break-word; }
.c-desc:empty { display: none; }
.c-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.c-tags a { text-decoration: none; }
#d-remixes { margin-top: 34px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.sm.primary { color: var(--accent-text); }
.share-form .lic-note { margin: 0; }
@media (max-width: 900px) {
  .c-detail { grid-template-columns: 1fr; }
  .c-media { position: static; }
}
@media (prefers-color-scheme: dark) {
  .c-thumb, .c-stage { background: #202024; }
  .tag.warn { background: #4a3500; color: #ffe2a0; }
}
.c-license.join-card { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--brand); }
.c-license.join-card h2 { margin: 0 0 6px; }

/* ---------- Profil: sanat galerisi düzeni (community.js) ---------- */
.p-avatar { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; position: relative;
  background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-avatar .mono { color: #fff; font-weight: 800; font-size: calc(var(--s) * .46); line-height: 1; position: relative; z-index: 1; }
.p-avatar:not(:has(img))::after { content: ""; position: absolute; width: 60%; height: 14%; right: 6%; bottom: 20%;
  background: var(--brand); transform: skewX(var(--slash)); }
.p-avatar.xs { --s: 18px; vertical-align: middle; margin-right: 5px; }
.p-avatar.xs .mono { font-size: 10px; }
.p-avatar.xs::after { display: none; }
.p-avatar.sm { --s: 96px; }
.p-avatar.lg { --s: clamp(96px, 12vw, 148px); border: 6px solid var(--bg); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .6); }
.c-owner { display: flex; align-items: center; min-width: 0; }

#v-profile { max-width: 1180px; margin: 0 auto; }
.p-cover { position: relative; height: clamp(170px, 26vw, 330px); border-radius: 28px; overflow: hidden; background: var(--ink); }
.p-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-mosaic { position: absolute; inset: 0 -12%; display: flex; gap: 10px; }
.p-mosaic .pane { flex: 1; overflow: hidden; transform: skewX(var(--slash)); background: #ecece8; opacity: 0; animation: pane-in .7s ease forwards; }
.p-mosaic .pane img { width: 100%; height: 100%; object-fit: cover; transform: skewX(29deg) scale(1.18); display: block; }
.p-mosaic .p1 { animation-delay: .08s; } .p-mosaic .p2 { animation-delay: .16s; } .p-mosaic .p3 { animation-delay: .24s; } .p-mosaic .p4 { animation-delay: .32s; }
@keyframes pane-in { from { opacity: 0; transform: skewX(var(--slash)) translateY(12px); } to { opacity: 1; transform: skewX(var(--slash)); } }
@media (prefers-reduced-motion: reduce) { .p-mosaic .pane { animation: none; opacity: 1; } }
.p-cover .stripe { position: absolute; right: 7%; height: 12%; width: 22%; background: var(--brand); transform: skewX(var(--slash)); box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.p-cover .s1 { bottom: 12%; } .p-cover .s2 { bottom: 28%; right: 9%; width: 17%; } .p-cover .s3 { bottom: 44%; right: 11%; width: 12%; }
.p-cover.has-img .stripe { display: none; }
.p-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 0 clamp(12px, 3vw, 36px);
  margin-top: calc(clamp(96px, 12vw, 148px) / -2); position: relative; }
/* Yalnız profil resmi kapağa taşar; ad ve bilgiler kapağın altında başlar */
.p-id, .p-actions { padding-top: calc(clamp(96px, 12vw, 148px) / 2 + 14px); }
.p-id h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 4px; word-break: break-word; }
.p-bio { margin: 0 0 8px; max-width: 42rem; white-space: pre-line; word-break: break-word; }
.p-bio:empty { display: none; }
.p-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.p-meta a { color: var(--text); font-weight: 600; text-decoration: none; }
.p-meta a:hover { text-decoration: underline; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.p-actions a.btn { text-decoration: none; }
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px clamp(12px, 3vw, 36px) 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-stats .stat { padding: 16px 4px; display: flex; flex-direction: column; gap: 2px; }
.p-stats .stat + .stat { border-left: 1px solid var(--line); padding-left: 18px; }
.p-stats b { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.p-stats span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.p-tabs { margin: 18px clamp(12px, 3vw, 36px) 26px; }
/* Galeri duvarı: paspartulu baskılar, müze etiketi; öne çıkan eser iki kat */
.p-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 28px; grid-auto-flow: dense;
  padding: 0 clamp(12px, 3vw, 36px); }
.frame { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.frame .mat { position: relative; background: #fbfbf8; padding: 9%; border: 3px solid #141416; border-radius: 2px;
  box-shadow: 0 2px 0 rgb(0 0 0 / .04), 0 22px 40px -26px rgb(0 0 0 / .55); transition: transform .25s, box-shadow .25s; }
.frame .mat img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; background: #ecece8;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.frame:hover .mat { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 2px 0 rgb(0 0 0 / .04), 0 34px 50px -28px rgb(0 0 0 / .6); }
.frame.featured { grid-column: span 2; grid-row: span 2; }
.frame .ribbon { position: absolute; top: 14px; left: -8px; background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px 5px 12px; transform: skewX(var(--slash)); }
.frame .label { display: flex; flex-direction: column; gap: 1px; padding-left: 12px; border-left: 3px solid var(--brand); font-size: .88rem; }
.frame .label b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame .label span { color: var(--muted); }
.frame .label .medium { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
@media (max-width: 700px) {
  .p-head { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .p-id, .p-actions { padding-top: 0; }
  .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-stats .stat:nth-child(3) { border-left: 0; padding-left: 4px; }
  .frame.featured { grid-column: auto; grid-row: auto; }
}
@media (prefers-color-scheme: dark) {
  .frame .mat { border-color: #3a3a40; background: #f4f4f2; }
}
/* Profil düzenleme */
.p-edit { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.p-handle { font-size: 1.4rem; font-weight: 800; margin: 0; }
.e-images { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.e-img { display: flex; gap: 14px; align-items: center; }
.e-img.wide { flex-direction: column; align-items: stretch; }
.p-cover.sm { height: 110px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.p-cover.sm img { width: 100%; height: 100%; object-fit: cover; }
label.btn { flex-direction: row; cursor: pointer; }
label.btn.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 600px) { .e-images { grid-template-columns: 1fr; } }
/* Yazıcılar, takip, üye kartları */
.pr-chips { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text); text-decoration: none; }
.pr-chip::before { content: ""; width: 10px; height: 6px; background: var(--brand); transform: skewX(var(--slash)); }
a.pr-chip:hover { border-color: var(--text); }
.chip-x { border: 0; background: none; font-size: 1rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; }
.friend { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.friend.soft { background: var(--accent-soft); color: var(--text); }
.p-id h1 .friend { font-size: .7rem; letter-spacing: .08em; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover b { color: var(--brand); }
.p-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p-avatar.md { --s: 56px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.person-top { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.person-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-id .friend { align-self: flex-start; }
.person-bio { margin: 0; color: var(--muted); }
.person .btn { align-self: flex-start; }
.pr-hero { padding: 26px; border-radius: 24px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.pr-hero::after { content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 28%; background: var(--brand); transform: skewX(var(--slash)); }
.pr-hero > * { position: relative; z-index: 1; }
.pr-hero .page-title { margin: 6px 0 4px; }
.pr-hero .muted { color: #c9c9cf; }
.eyebrow-app { font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #ff6b6b; }
@media (max-width: 700px) {
  .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-stats .stat:nth-child(4) { border-left: 0; padding-left: 4px; }
  .p-stats .stat:nth-child(3) { border-left: 1px solid var(--line); padding-left: 18px; }
}
/* Rütbeler: dolgu peteği arması + ad */
.rank { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; vertical-align: middle; line-height: 1.1; }
.rank img { display: block; height: 40px; width: auto; flex: none; }
.rank.sm { font-size: .66rem; gap: 6px; } .rank.sm img { height: 28px; }
.rank.lg { font-size: .95rem; gap: 12px; } .rank.lg img { height: 84px; }
.rank.r6 > span { color: var(--brand); }
#p-rank { margin: 2px 0 8px; }
.p-progress { margin: 0 clamp(12px, 3vw, 36px) 8px; display: flex; flex-direction: column; gap: 8px; }
.p-progress .bar { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.p-progress .bar span { display: block; height: 100%; background: repeating-linear-gradient(-61deg, var(--brand) 0 10px, #ff4d4d 10px 14px); border-radius: 999px; }
.p-progress p { margin: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; text-align: center; }
.podium-slot.p1 { order: 2; padding-top: 34px; border-color: var(--ink); box-shadow: inset 0 -6px 0 var(--brand); }
.podium-slot.p2 { order: 1; } .podium-slot.p3 { order: 3; }
.podium-slot .place { position: absolute; top: 10px; left: 14px; font-weight: 800; font-size: 1.6rem; color: var(--brand); }
.podium-slot .p-avatar.lg { --s: 88px; border-width: 4px; }
.podium-slot.p1 .p-avatar.lg { --s: 112px; }
.rank-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.ladder-step { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 14px 8px;
  border-radius: 16px; background: var(--accent-soft); }
.ladder-step .rank { flex-direction: column; gap: 8px; white-space: normal; }
.person-id .rank { align-self: flex-start; }
@media (max-width: 600px) { .podium { grid-template-columns: 1fr; } .podium-slot.p1, .podium-slot.p2, .podium-slot.p3 { order: 0; } }

/* Yapay zekâ figür (#/figur) */
.nav-new { font-size: .62rem; font-weight: 800; letter-spacing: .06em; background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 5px; vertical-align: 2px; }
.figure { display: flex; flex-direction: column; gap: 18px; }
.fg-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 28px; border-radius: 24px; color: #fff;
  background: linear-gradient(118deg, var(--ink) 62%, var(--brand) 62%); }
.fg-hero .page-title { color: #fff; margin: 4px 0 8px; }
.fg-hero .muted { color: rgb(255 255 255 / .78); max-width: 46rem; margin: 0; }
.fg-hero .eyebrow { color: #ff4d4d; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.fg-hero .chip { background: #fff; color: var(--ink); }
.fg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.fg-upload { display: flex; flex-direction: column; gap: 12px; }
.fg-drop { aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: center; text-align: center;
  cursor: pointer; background: var(--plate); overflow: hidden; padding: 0; font-weight: 400; transition: border-color .15s; }
.fg-drop:hover, .fg-drop.over { border-color: var(--brand); }
.fg-drop img { width: 100%; height: 100%; object-fit: contain; }
.fg-tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.fg-options { display: flex; flex-direction: column; gap: 14px; }
.fg-kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fg-kinds legend { font-weight: 800; margin-bottom: 8px; }
.fg-kind { position: relative; display: block; cursor: pointer; font-weight: 400; }
.fg-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fg-kind-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s; }
.fg-kind input:checked + .fg-kind-body { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--brand); }
.fg-kind input:focus-visible + .fg-kind-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.fg-kind.off { cursor: not-allowed; } .fg-kind.off .fg-kind-body { opacity: .6; border-style: dashed; }
.fg-kind-icon { font-size: 1.4rem; line-height: 1; }
.fg-soon { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--brand); margin-top: auto; }
.fg-soon.ok { color: var(--muted); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fg-checks label[hidden] { display: none; }
.fg-locked { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fg-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fg-job { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fg-job-thumb { width: 96px; height: 96px; border-radius: 12px; background: var(--plate); overflow: hidden; }
.fg-job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fg-job-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg-job-body > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-status { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px;
  background: var(--accent-soft); color: var(--text); }
.st-isleniyor .fg-status { background: var(--ink); color: #fff; }
.st-hazir .fg-status { background: #e3f4e6; color: #1d6b2c; }
.st-hata .fg-status { background: #fde8e7; color: #8a1c12; }
.fg-bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.fg-bar span { display: block; height: 100%; border-radius: 99px; transition: width .6s;
  background: repeating-linear-gradient(-61deg, var(--brand) 0 10px, #ff4d4d 10px 14px); background-size: 200% 100%; animation: fg-move 1.2s linear infinite; }
@keyframes fg-move { to { background-position: -28px 0; } }
@media (prefers-reduced-motion: reduce) { .fg-bar span { animation: none; } }
.fg-job-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.small.bad { color: var(--danger); }
@media (max-width: 820px) {
  .fg-grid { grid-template-columns: 1fr; }
  .fg-kinds { grid-template-columns: 1fr; }
  .fg-hero { flex-direction: column; background: linear-gradient(160deg, var(--ink) 78%, var(--brand) 78%); }
}
@media (max-width: 480px) { .fg-row { grid-template-columns: 1fr; } }
