/* ==================================================================
   tools.css — Araçlar
   -------------------------------------------------------------------
   · /tools            → tüm araçların listesi (.tl-*)
   · /tools/renk-paleti → renk paleti & kontrast (.rp-*)
   · /tools/metin-sayaci → kelime sayacı (.ms-*)
   Kabuk: style.css + pages.css (.page-inner / .pg-panel).
   ================================================================== */

/* Giriş rozetleri (hesaplayıcı ve stüdyo ile aynı dil) */
.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .6);
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-2);
}
.tl-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ==================================================================
   1. Tüm araçlar — ızgara
   ================================================================== */
.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.tl-card {
  /* Ton yalnızca vurguda: cam yüzey + renk kimliği */
  --tl-accent: #5B3FE0;
  --tl-rgb: 91, 63, 224;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.1vw, 26px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--tl-rgb), .16), transparent 58%),
    rgb(var(--srf) / .72);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -54px rgba(10, 4, 30, .85);
  transition: transform .42s var(--ease), box-shadow .42s, border-color .42s;
}
.tl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--tl-rgb), .4);
  box-shadow: 0 40px 76px -54px rgba(var(--tl-rgb), .55);
}
.tl-card[data-tone="mint"]     { --tl-accent: #1B8B55; --tl-rgb: 27, 139, 85; }
.tl-card[data-tone="lavender"] { --tl-accent: #5B3FE0; --tl-rgb: 91, 63, 224; }
.tl-card[data-tone="pink"]     { --tl-accent: #B23A6E; --tl-rgb: 178, 58, 110; }
.tl-card[data-tone="cream"]    { --tl-accent: #9A6B12; --tl-rgb: 154, 107, 18; }
[data-theme="dark"] .tl-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--tl-rgb), .14), transparent 58%),
    linear-gradient(rgb(255 255 255 / .05), rgb(255 255 255 / .02));
  box-shadow: 0 30px 60px -54px rgba(0, 0, 0, .95);
}
[data-theme="dark"] .tl-card[data-tone="mint"]     { --tl-accent: #7FE3B0; --tl-rgb: 127, 227, 176; }
[data-theme="dark"] .tl-card[data-tone="lavender"] { --tl-accent: #C0AAFF; --tl-rgb: 192, 170, 255; }
[data-theme="dark"] .tl-card[data-tone="pink"]     { --tl-accent: #F3A6C6; --tl-rgb: 243, 166, 198; }
[data-theme="dark"] .tl-card[data-tone="cream"]    { --tl-accent: #F2D28A; --tl-rgb: 242, 210, 138; }

.tl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tl-card-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(var(--tl-rgb), .28);
  background: rgba(var(--tl-rgb), .12);
  color: var(--tl-accent);
}
.tl-card-num {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--tl-accent);
}
.tl-card-body { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tl-card-label {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.tl-card-desc {
  font-size: .85rem;
  line-height: 1.62;
  color: var(--muted);
}
.tl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.tl-card-open {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tl-accent);
}
.tl-card-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(var(--tl-rgb), .3);
  background: rgba(var(--tl-rgb), .14);
  color: var(--tl-accent);
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.tl-card:hover .tl-card-go {
  transform: translate(2px, -2px);
  background: var(--tl-accent);
  border-color: transparent;
  color: rgb(var(--srf));
}
/* Kapanış kartı: özel araç çağrısı */
.tl-card--cta {
  --tl-accent: var(--violet-deep);
  --tl-rgb: var(--rgb-brand);
  border-style: dashed;
  border-color: rgba(var(--rgb-brand), .34);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--rgb-brand), .14), transparent 58%),
    rgb(var(--srf) / .55);
}
.tl-card--cta .tl-card-desc { max-width: 42ch; }

/* ==================================================================
   2. Renk paleti & kontrast
   ================================================================== */
.rp { display: grid; gap: clamp(18px, 2.4vw, 28px); }

.rp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.rp-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--srf) / .7);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.rp-pick input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.rp-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.rp-pick input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }

.rp-hex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .7);
}
.rp-hex label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rp-hex input {
  width: 82px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  text-transform: uppercase;
}
.rp-hex input:focus { outline: none; }

.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.rp-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -24px rgba(var(--rgb-brand-deep), .95); }
.rp-btn--ghost {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.rp-btn--ghost:hover { color: var(--ink); border-color: rgba(var(--rgb-brand), .5); box-shadow: none; }
.rp-btn.is-done { color: var(--tl-accent, #1B8B55); }

.rp-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.rp-block { display: grid; gap: 12px; align-content: start; }
.rp-eyebrow {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rp-hint { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--muted-2); }

.rp-swatches {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-swatch {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .6);
  transition: border-color .25s, transform .25s var(--ease);
}
.rp-swatch:hover { border-color: rgba(var(--rgb-brand), .4); transform: translateX(2px); }
.rp-dot {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgb(0 0 0 / .12);
}
.rp-swatch-meta { display: grid; gap: 2px; min-width: 0; }
.rp-swatch-meta b {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.rp-swatch-meta small { font-size: .68rem; color: var(--muted); }
.rp-swatch-copy {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.rp-swatch-copy:hover { color: var(--ink); border-color: rgba(var(--rgb-brand), .5); }

.rp-checks { display: grid; gap: 8px; }
.rp-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .6);
  font-size: .78rem;
  color: var(--ink-2);
}
.rp-check b { font-variant-numeric: tabular-nums; color: var(--ink); }
.rp-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid currentColor;
}
.rp-badge[data-state="ok"]   { color: #1B8B55; background: rgba(27, 139, 85, .12); }
.rp-badge[data-state="mid"]  { color: #9A6B12; background: rgba(154, 107, 18, .12); }
.rp-badge[data-state="fail"] { color: #B23A6E; background: rgba(178, 58, 110, .12); }
[data-theme="dark"] .rp-badge[data-state="ok"]   { color: #7FE3B0; background: rgba(127, 227, 176, .12); }
[data-theme="dark"] .rp-badge[data-state="mid"]  { color: #F2D28A; background: rgba(242, 210, 138, .12); }
[data-theme="dark"] .rp-badge[data-state="fail"] { color: #F3A6C6; background: rgba(243, 166, 198, .12); }

.rp-preview {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  transition: background .3s, color .3s;
}
.rp-preview strong { font-size: 1.02rem; line-height: 1.3; letter-spacing: -.02em; }
.rp-preview span { font-size: .82rem; line-height: 1.6; }

.rp-tip {
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==================================================================
   3. Metin sayacı & okuma süresi
   ================================================================== */
.ms {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
}
.ms-main { display: grid; gap: 10px; }
.ms-editor {
  width: 100%;
  min-height: clamp(220px, 32vh, 340px);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--srf) / .7);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.ms-editor::placeholder { color: var(--muted-2); }
.ms-editor:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .55);
  box-shadow: 0 0 0 4px rgba(var(--rgb-brand), .12);
}
.ms-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ms-clear {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.ms-clear:hover { color: var(--ink); border-color: rgba(var(--rgb-brand), .5); }
.ms-tip { font-size: .7rem; color: var(--muted-2); }

.ms-stats { display: grid; gap: 8px; }
.ms-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .62);
  font-size: .78rem;
  color: var(--muted);
}
.ms-stat b {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ms-stat--hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--rgb-brand), .16), transparent 60%),
    rgb(var(--srf) / .7);
  border-color: rgba(var(--rgb-brand), .28);
}
.ms-stat--hero b { color: var(--violet-deep); }

.ms-density {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .62);
  display: grid;
  gap: 9px;
}
.ms-density-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .8);
  font-size: .7rem;
  color: var(--ink-2);
}
.ms-tag em {
  font-style: normal;
  font-size: .62rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.ms-empty { font-size: .74rem; color: var(--muted-2); }

/* ==================================================================
   4. Duyarlı
   ================================================================== */
@media (max-width: 900px) {
  .rp-body,
  .ms { grid-template-columns: minmax(0, 1fr); }
  .rp-head { gap: 10px; }
  .rp-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 620px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-hex { flex: 1 1 100%; justify-content: space-between; }
  .rp-swatch { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rp-dot { width: 40px; height: 40px; }
}
/* ==================================================================
   5. Ortak araç bileşenleri (.tr-*)
   -------------------------------------------------------------------
   Meta önizleme · favicon üretici · belge dönüştürücü · QR stüdyosu
   Dört yeni araç aynı form diliyle çizilir: alan, düğme, not, seçim.
   Renkler yalnızca tema değişkenlerinden gelir (palet değişince uyar).
   ================================================================== */

/* Sabit başlık altında kalmasın: araç bölümü (#arac) */
.page-inner section[id] { scroll-margin-top: 108px; }

/* [hidden] her zaman kazanır: bileşen kuralları (flex/grid) ezmesin */
.pg-panel [hidden] { display: none !important; }

/* Güven şeridi: "Dosyalarınız tarayıcınızdan çıkmaz" */
.tr-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(var(--rgb-brand), .26);
  background: rgba(var(--rgb-brand), .08);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
}
.tr-note svg { flex: none; color: var(--violet-deep); }
[data-theme="dark"] .tr-note {
  background: rgb(255 255 255 / .05);
  border-color: rgb(255 255 255 / .13);
  color: var(--ink-2);
}

.tr-kicker {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tr-field { display: grid; gap: 6px; min-width: 0; }
.tr-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-2);
}
.tr-label em {
  font-style: normal;
  font-size: .66rem;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.tr-hint {
  display: block;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.tr-hint svg { vertical-align: -2px; }

.tr-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--srf) / .75);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.5;
  transition: border-color .25s, box-shadow .25s;
}
textarea.tr-input { min-height: 78px; resize: vertical; line-height: 1.55; }
.tr-input::placeholder { color: var(--muted-2); }
.tr-input:focus {
  outline: none;
  border-color: rgba(var(--rgb-brand), .55);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .12);
}
.tr-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.tr-range {
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: rgb(var(--rgb-brand));
  cursor: pointer;
}

.tr-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.tr-check input { width: 17px; height: 17px; accent-color: rgb(var(--rgb-brand)); }

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .2s;
}
.tr-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -22px rgba(var(--rgb-brand-deep), .9); }
.tr-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.tr-btn--ghost {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.tr-btn--ghost:hover { color: var(--ink); border-color: rgba(var(--rgb-brand), .5); box-shadow: none; }
.tr-btn--sm { padding: 7px 14px; font-size: .72rem; }
[data-theme="dark"] .tr-btn:not(.tr-btn--ghost) {
  background:
    linear-gradient(118deg, rgba(9, 5, 26, .42) 0%, rgba(9, 5, 26, .3) 52%, rgba(9, 5, 26, .24) 100%),
    var(--grad-btn);
}

/* Ortak kod kutusu (meta etiketleri · HTML snippet) */
.mo-code {
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .58);
}
.mo-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mo-code-pre {
  margin: 0;
  max-height: 300px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgb(10 4 30 / .72);
  color: #E9E4FF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
[data-theme="light"] .mo-code-pre { background: #150F2E; }
.mo-tip { margin: 14px 0 0; }

/* ==================================================================
   5.1 Meta & OG önizleme (.mo-*)
   ================================================================== */
.mo {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(16px, 2.4vw, 30px);
  align-items: start;
}

.mo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .55);
}
.mo-span2 { grid-column: 1 / -1; }
.mo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.mo-flags {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted-2);
}
.mo-flags.is-warn { color: #C2410C; }
.mo-flags.is-ok { color: #15803D; }
[data-theme="dark"] .mo-flags.is-warn { color: #FDBA74; }
[data-theme="dark"] .mo-flags.is-ok { color: #86EFAC; }

.mo-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mo-card {
  --mo-srf: #FFFFFF;
  --mo-ink: #0F1419;
  --mo-mut: #536471;
  --mo-link: #1A0DAB;
  --mo-line: rgba(15, 20, 25, .12);
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--mo-srf);
  color: var(--mo-ink);
  box-shadow: 0 26px 50px -46px rgba(10, 4, 30, .8);
}
[data-theme="dark"] .mo-card {
  --mo-srf: #10161F;
  --mo-ink: #E7ECF2;
  --mo-mut: #8B98A8;
  --mo-link: #8AB4F8;
  --mo-line: rgba(255, 255, 255, .12);
}
.mo-card--google { grid-column: 1 / -1; }
.mo-card-head { margin-bottom: 9px; }
.mo-card-head .tr-kicker { color: var(--mo-mut); }

/* Google sonucu */
.mo-google { display: grid; gap: 4px; }
.mo-g-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mo-g-fav {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--rgb-brand), .16);
  color: var(--violet-deep);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
[data-theme="dark"] .mo-g-fav { color: var(--mo-link); }
.mo-g-site { display: grid; min-width: 0; line-height: 1.25; }
.mo-g-site b {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--mo-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mo-g-url { font-size: .68rem; color: var(--mo-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-g-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--mo-link);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mo-g-desc {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--mo-mut);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Paylaşım kartları */
.mo-share { display: grid; gap: 9px; }
.mo-share-img {
  position: relative;
  aspect-ratio: 1.91 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--rgb-brand), .1);
  border: 1px solid var(--mo-line);
}
.mo-share-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mo-share-img[data-empty="1"] img { display: none; }
.mo-share-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  font-size: .64rem;
  font-weight: 600;
  color: var(--mo-mut);
}
.mo-share-img[data-empty="1"] .mo-share-empty { display: grid; }
.mo-share-body { display: grid; gap: 3px; min-width: 0; }
.mo-share-title {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mo-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mo-share-desc {
  font-size: .72rem;
  line-height: 1.5;
  color: var(--mo-mut);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mo-share-domain {
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mo-mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================================================================
   5.2 Favicon üretici (.fv-*)
   ================================================================== */
.fv { display: grid; gap: clamp(14px, 2vw, 22px); }

.fv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
.fv-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 18px;
  border: 1.5px dashed rgba(var(--rgb-brand), .38);
  background: rgb(var(--srf) / .5);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.fv-drop:hover,
.fv-drop.is-drag {
  border-color: rgba(var(--rgb-brand), .7);
  background: rgba(var(--rgb-brand), .07);
  transform: translateY(-1px);
}
.fv-drop-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-brand), .26);
  background: rgba(var(--rgb-brand), .12);
  color: var(--violet-deep);
}
.fv-drop-txt { display: grid; gap: 3px; min-width: 0; }
.fv-drop-txt b { font-size: .92rem; font-weight: 700; color: var(--ink); }
.fv-drop-txt small { font-size: .72rem; color: var(--muted-2); }

.fv-live {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .5);
}
.fv-live-canvas {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, .06) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .06) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, .06) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .06) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}
.fv-live-note { font-size: .7rem; line-height: 1.5; color: var(--muted-2); max-width: 22ch; }

.fv-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .45);
}
.fv-color {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.fv-color::-webkit-color-swatch-wrapper { padding: 0; }
.fv-color::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 10px; }
.fv-ctl-color { width: 96px; }
.fv-ctl-color .tr-label { white-space: nowrap; }
.fv-reset { justify-self: end; }

.fv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
}
.fv-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .55);
  text-align: center;
}
.fv-tile-canvas {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, .06) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .06) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, .06) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .06) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  overflow: hidden;
}
.fv-tile-canvas canvas { width: 100%; height: 100%; display: block; }
.fv-tile figcaption { display: grid; gap: 2px; }
.fv-tile figcaption b {
  font-size: .64rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fv-tile figcaption small { font-size: .62rem; color: var(--muted-2); }

.fv-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.fv-status { font-size: .72rem; color: var(--muted-2); }

/* ==================================================================
   5.3 Belge dönüştürücü (.dc-*)
   ================================================================== */
.dc { display: grid; gap: clamp(14px, 2vw, 20px); max-width: 880px; }

.dc-modes {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .55);
  justify-self: start;
}
.dc-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.dc-mode:hover { color: var(--ink); }
.dc-mode.is-on {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 14px 26px -20px rgba(var(--rgb-brand-deep), .9);
}

.dc-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 20px;
  border: 1.5px dashed rgba(var(--rgb-brand), .38);
  background: rgb(var(--srf) / .5);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.dc-drop:hover,
.dc-drop.is-drag { border-color: rgba(var(--rgb-brand), .72); background: rgba(var(--rgb-brand), .07); }
.dc-drop-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(var(--rgb-brand), .26);
  background: rgba(var(--rgb-brand), .12);
  color: var(--violet-deep);
}
.dc-drop-txt { display: grid; gap: 4px; min-width: 0; }
.dc-drop-txt b { font-size: .95rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.dc-drop-txt small { font-size: .74rem; color: var(--muted-2); }

.dc-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .55);
}
.dc-info div { display: grid; gap: 2px; min-width: 0; }
.dc-info dt {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dc-info dd {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.dc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-status { font-size: .76rem; font-weight: 600; color: var(--muted-2); }
.dc-status.is-ok { color: #15803D; }
.dc-status.is-err { color: #C2410C; }
[data-theme="dark"] .dc-status.is-ok { color: #86EFAC; }
[data-theme="dark"] .dc-status.is-err { color: #FDBA74; }
.dc-note { margin: 0; }
.dc-note svg { color: rgba(var(--rgb-brand), .9); }
.dc-dl[hidden] { display: none; }

/* ==================================================================
   5.4 QR stüdyosu (.qc-*)
   ================================================================== */
.qc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}
.qc-form { display: grid; gap: 14px; }
.qc-block {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 1.8vw, 18px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .52);
}
.qc-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.qc-color {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(var(--srf) / .75);
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.qc-color input[type="color"] {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.qc-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.qc-color input[type="color"]::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / .18); border-radius: 50%; }
.qc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.qc-side { display: grid; gap: 12px; align-content: start; }
.qc-stage {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgb(var(--srf) / .6);
}
.qc-stage canvas {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 46px -34px rgba(10, 4, 30, .7);
}
.qc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(194, 65, 12, .3);
  background: rgba(194, 65, 12, .09);
  font-size: .72rem;
  font-weight: 600;
  color: #C2410C;
}
[data-theme="dark"] .qc-warn {
  color: #FDBA74;
  border-color: rgba(253, 186, 116, .28);
  background: rgba(253, 186, 116, .08);
}
.qc-warn[hidden] { display: none; }

/* ==================================================================
   5.5 Duyarlı
   ================================================================== */
@media (max-width: 980px) {
  .mo,
  .qc { grid-template-columns: minmax(0, 1fr); }
  .fv-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-reset { justify-self: start; }
  .fv-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .mo-form { grid-template-columns: minmax(0, 1fr); }
  .mo-side { grid-template-columns: minmax(0, 1fr); }
  .mo-card--google { grid-column: auto; }
  .fv-controls { grid-template-columns: minmax(0, 1fr); }
  .qc-two,
  .qc-colors { grid-template-columns: minmax(0, 1fr); }
  .dc-modes { width: 100%; justify-content: center; }
  .dc-mode { flex: 1 1 auto; justify-content: center; }
}
