/* =========================================================
   MultiToolCore — çekirdek arayüz katmanı
   Tema (theme.css) üzerine eklenen çekirdek bileşenler. Yalnızca
   Core'a özgü parçalar burada tanımlanır; App'ler kendi CSS'ini
   (apps/<slug>/assets/app.css) ek olarak yükler.
   ========================================================= */

/* --- Temel ------------------------------------------------------------- */

a { text-decoration: none; color: inherit; }

.mtc-body { position: relative; }

.mtc-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mtc-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 28px 64px;
}
.mtc-main-page { max-width: 1000px; }

[hidden] { display: none !important; }

/* Görsel olarak gizlenir ama odaklanabilir kalır (ör. dosya girişi, 11.4.4). */
.mtc-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- Düğmeler ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, filter .16s ease;
}
.btn:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #1a1206;
}
.btn-primary:hover { background: #f2b161; filter: brightness(1.02); }

.btn-ghost { background: transparent; }
.btn-danger {
  border-color: rgba(239, 108, 114, .38);
  background: rgba(239, 108, 114, .12);
  color: #ffb4b7;
}
.btn-danger:hover { background: rgba(239, 108, 114, .2); }

.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn .icon { width: 15px; height: 15px; }

.mtc-linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Üst bar ------------------------------------------------------------ */

.mtc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 21, .72);
  backdrop-filter: blur(26px);
}
.mtc-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 66px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.mtc-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mtc-brand-mark {
  --brand: var(--accent);
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  background: rgba(239, 164, 72, .16);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
  border: 1px solid rgba(239, 164, 72, .3);
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
}
.mtc-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mtc-brand-text strong { font-size: 14.5px; font-weight: 640; white-space: nowrap; }
.mtc-brand-text small {
  color: var(--muted); font-size: 11px;
  max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mtc-topnav { display: flex; align-items: center; gap: 4px; margin-left: 10px; overflow: visible; }
.mtc-topnav-link {
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.mtc-topnav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mtc-topnav-link.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }

.mtc-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.mtc-quota-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.mtc-quota-chip b { color: var(--accent); font-weight: 700; }
.mtc-quota-chip .icon { width: 13px; height: 13px; color: var(--accent); }
.mtc-quota-chip.is-empty b { color: var(--red); }
.mtc-quota-chip.is-empty .icon { color: var(--red); }

.mtc-account {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.mtc-account:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.mtc-account-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: rgba(239, 164, 72, .16);
  color: var(--accent);
  border: 1px solid rgba(239, 164, 72, .28);
}
.mtc-account-name { font-size: 12.5px; font-weight: 600; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Stüdyo (ana domain) ------------------------------------------------ */

.mtc-studio-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0 8px;
}
.mtc-studio-hero-copy { max-width: 660px; }
.mtc-studio-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 640;
}
.mtc-studio-hero-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.72; max-width: 620px; }
.mtc-studio-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mtc-studio-facts { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.mtc-studio-facts li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.mtc-studio-facts .icon { width: 14px; height: 14px; color: var(--green); }

.mtc-studio-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.mtc-stat {
  min-width: 118px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.mtc-stat strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.mtc-stat small { color: var(--muted); font-size: 11.5px; }

.mtc-section { margin-top: 46px; }
.mtc-section h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 620; }
.mtc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mtc-section-head h2 { margin: 0; }
.mtc-section-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.mtc-section-more .icon { width: 14px; height: 14px; }

.mtc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.mtc-cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mtc-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.mtc-card h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 620; }
.mtc-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mtc-card p:last-child { margin-bottom: 0; }
.mtc-card-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- Araç ızgarası ------------------------------------------------------ */

.mtc-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.mtc-app-card {
  position: relative;
  display: flex; flex-direction: column; gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mtc-app-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 46%), var(--panel-2); }
.mtc-app-card.is-soon:hover { transform: none; }
.mtc-app-card-head { display: flex; align-items: flex-start; gap: 12px; }
.mtc-app-card-title { min-width: 0; }

/* App kendi logosunu verdiyse harf işareti yerine görsel gösterilir
   (bkz. partials/brand-mark.php + AssetServer). */
.mtc-brand-mark.has-logo,
.mtc-app-icon.has-logo {
  background: transparent;
  border-color: transparent;
  overflow: hidden;
}
.mtc-brand-mark.has-logo img,
.mtc-app-icon.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.mtc-app-icon {
  --brand: var(--accent);
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  background: rgba(239, 164, 72, .15);
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  border: 1px solid rgba(239, 164, 72, .28);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
}
.mtc-app-card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 620; }
.mtc-app-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mtc-app-tagline { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.mtc-app-io {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .015);
  color: var(--muted-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
}
.mtc-app-io .icon { width: 13px; height: 13px; color: var(--accent); }
.mtc-app-card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 6px;
  font-size: 11.5px;
}
.mtc-app-card-foot .mtc-open {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.mtc-app-card-foot .mtc-open .icon { width: 14px; height: 14px; }

.mtc-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .02em;
  color: var(--text-2);
}
.mtc-status.live { color: var(--green); border-color: rgba(98, 211, 148, .3); background: rgba(98, 211, 148, .1); }
.mtc-status.beta { color: var(--blue); border-color: rgba(111, 156, 255, .3); background: rgba(111, 156, 255, .1); }
.mtc-status.soon { color: var(--muted); }
.mtc-status.ref { color: var(--violet); border-color: rgba(150, 120, 255, .3); background: rgba(150, 120, 255, .1); }
.mtc-status.batch { color: var(--accent); border-color: rgba(239, 164, 72, .3); background: rgba(239, 164, 72, .1); }
.mtc-status.danger { color: var(--red); border-color: rgba(239, 108, 114, .3); background: rgba(239, 108, 114, .1); }
.mtc-status.warn { color: #eeb052; border-color: rgba(238, 176, 82, .3); background: rgba(238, 176, 82, .1); }

/* --- Araç sayfası ------------------------------------------------------- */

.mtc-tool-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
}
.mtc-tool-hero-copy { max-width: 680px; }
.mtc-tool-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.042em;
  font-weight: 640;
}
.mtc-tool-hero-copy > p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.72; max-width: 640px; }
.mtc-tool-hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mtc-tool-facts { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mtc-tool-facts li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 11.5px; }
.mtc-tool-facts .icon { width: 13px; height: 13px; color: var(--green); }

.mtc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 14px;
  align-items: start;
}

.mtc-panel {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mtc-panel-input { min-height: 470px; }
.mtc-panel-output { min-height: 470px; }
.mtc-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.mtc-panel-head > div { display: flex; align-items: center; gap: 10px; }
.mtc-panel-head strong { font-size: 13.5px; font-weight: 620; }
.mtc-panel-head-sub { border-top: 1px solid var(--line); }
.mtc-panel-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mtc-panel-foot {
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.mtc-step {
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(239, 164, 72, .24);
}

.mtc-alert {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(98, 211, 148, .3);
  border-radius: 13px;
  background: var(--panel);
  font-size: 13px;
}
.mtc-alert.is-error { border-color: rgba(239, 108, 114, .35); }

/* --- Form alanları ------------------------------------------------------ */

.mtc-field { display: block; }
.mtc-field > span { display: block; margin-bottom: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.mtc-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.mtc-field input[type="text"],
.mtc-field input[type="email"],
.mtc-field input[type="password"],
.mtc-field input[type="number"],
.mtc-field textarea,
.mtc-field select,
.mtc-inline-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mtc-field input:focus,
.mtc-field textarea:focus,
.mtc-field select:focus,
.mtc-inline-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 164, 72, .12);
}
.mtc-field input:disabled { opacity: .6; cursor: not-allowed; }
.mtc-field select option { background: #12141a; color: var(--text); }
.mtc-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.mtc-fieldset { margin: 0; padding: 0; border: 0; }
.mtc-fieldset > legend { padding: 0; margin-bottom: 9px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }

.mtc-radio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.mtc-radio { position: relative; display: block; cursor: pointer; }
.mtc-radio input { position: absolute; opacity: 0; inset: 0; }
.mtc-radio > span {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .015);
  transition: border-color .15s ease, background .15s ease;
}
.mtc-radio > span strong { display: block; font-size: 13px; font-weight: 620; }
.mtc-radio > span small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mtc-radio:hover > span { border-color: rgba(255, 255, 255, .22); }
.mtc-radio input:checked + span {
  border-color: rgba(239, 164, 72, .55);
  background: var(--accent-soft);
}
.mtc-radio input:checked + span strong { color: var(--accent); }
.mtc-radio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(239, 164, 72, .18); }

.mtc-switch { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.mtc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mtc-switch-track {
  flex: 0 0 auto;
  position: relative;
  width: 38px; height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  transition: background .16s ease, border-color .16s ease;
}
.mtc-switch-track::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .16s ease, background .16s ease;
}
.mtc-switch input:checked + .mtc-switch-track { background: var(--accent-soft); border-color: rgba(239, 164, 72, .5); }
.mtc-switch input:checked + .mtc-switch-track::after { transform: translateX(16px); background: var(--accent); }
.mtc-switch-copy strong { display: block; font-size: 13px; font-weight: 600; }
.mtc-switch-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.mtc-check { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.mtc-check input { margin-top: 2px; accent-color: var(--accent); }
.mtc-check a { color: var(--accent); }

.mtc-hint { display: block; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.mtc-hint-center { text-align: center; }
.mtc-form-note { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.mtc-form-note a { color: var(--accent); }
.mtc-inline-form { display: flex; flex-direction: column; gap: 10px; }

.mtc-form { display: flex; flex-direction: column; gap: 15px; max-width: 460px; margin: 18px 0 0; }

/* --- Dosya bırakma alanı ------------------------------------------------ */

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 232px;
  padding: 26px 22px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0, rgba(239, 164, 72, .05), transparent 48%), rgba(255, 255, 255, .012);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.dropzone:hover,
.dropzone.dragging { border-color: rgba(239, 164, 72, .5); background: radial-gradient(circle at 50% 0, rgba(239, 164, 72, .09), transparent 55%), rgba(255, 255, 255, .02); }
.dropzone.dragging { border-style: solid; }

/* Dosya girişi görsel olarak gizlenir; klavyeyle odaklanabilir kalır ve
   odak halkası etiketin (dropzone) üzerinde gösterilir (11.4.4). */
.dropzone:has(> .mtc-visually-hidden:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dropzone-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.dropzone-icon .icon { width: 20px; height: 20px; }
.dropzone strong { font-size: 14px; font-weight: 620; }
.dropzone small { color: var(--muted); font-size: 11.5px; line-height: 1.5; max-width: 40ch; }
.dropzone .btn { margin-top: 8px; pointer-events: none; }

/* Seçili dosyalar: dosya alanının içinde, görsel önizlemeli ızgara */
.dropzone.has-files { min-height: 0; padding: 18px 16px; gap: 6px; }
.dropzone.has-files .dropzone-icon { display: none; }
.dropzone.has-files .btn { margin-top: 2px; }

.mtc-filelist {
  list-style: none; margin: 10px 0 0; padding: 2px;
  width: 100%;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px;
  max-height: 236px; overflow-y: auto; overscroll-behavior: contain;
  text-align: left;
}
.mtc-filelist[hidden] { display: none; }
.mtc-filelist li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtc-pick-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.mtc-pick-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtc-pick-media.is-file { display: grid; place-items: center; }
.mtc-pick-media.is-file .icon { width: 26px; height: 26px; color: var(--muted); }
.mtc-pick-remove {
  position: absolute; top: 5px; right: 5px; z-index: 1;
  display: grid; place-items: center;
  width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(9, 10, 18, .74); color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.mtc-pick-remove:hover { background: rgba(239, 68, 68, .92); }
.mtc-pick-media .mtc-pick-remove .icon { width: 12px; height: 12px; color: currentColor; }
.mtc-pick-ext {
  position: absolute; top: 5px; left: 5px; z-index: 1;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(9, 10, 18, .74); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
}
.mtc-pick-media.is-file .mtc-pick-format {
  margin-top: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted);
}
.mtc-filelist .name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
  font-size: 11.5px; line-height: 1.35; color: var(--text);
}
.mtc-filelist .size { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Sonuç thumbnail ızgarası (toplu işlem) ---------------------------- */

.mtc-result-files {
  list-style: none; margin: 8px 0 0; padding: 2px;
  width: 100%; max-width: 520px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px;
  max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
  text-align: left;
}
.mtc-result-files li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtc-done-info { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.mtc-thumb-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.mtc-thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtc-thumb-media > .icon { width: 28px; height: 28px; position: absolute; inset: 0; margin: auto; color: var(--muted); }
.mtc-thumb-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
  font-size: 11.5px; line-height: 1.35; color: var(--muted);
}
li.is-done .mtc-thumb-name { color: var(--text); }
.mtc-thumb-info { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* İşlenirken: kutunun altında ince ilerleme çubuğu + yüzde etiketi */
.mtc-thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(9, 10, 18, .55); }
.mtc-thumb-bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s ease; }
li.is-done .mtc-thumb-bar i { background: var(--green); }
li.is-active .mtc-thumb-bar i {
  background: repeating-linear-gradient(90deg, var(--accent) 0 7px, rgba(9, 10, 18, .25) 7px 14px);
  animation: mtc-thumb-stripes .7s linear infinite;
}
@keyframes mtc-thumb-stripes { to { background-position: 14px 0; } }

.mtc-thumb-pct {
  position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(9, 10, 18, .66); color: #fff;
  font-size: 11.5px; font-weight: 650; white-space: nowrap;
}

/* Bitince: kutu indirme bağlantısıdır; sonuç etiketi ve indirme simgesi */
li.is-done .mtc-thumb-pct { display: none; }
.mtc-thumb-result {
  position: absolute; top: 6px; left: 6px; max-width: calc(100% - 12px);
  padding: 3px 7px; border-radius: 999px;
  background: rgba(9, 10, 18, .74); color: #fff;
  font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtc-thumb-result.is-down { color: var(--green); }
.mtc-thumb-result.is-up { color: var(--accent); }
.mtc-thumb-dl {
  position: absolute; right: 6px; bottom: 8px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(9, 10, 18, .66); color: #fff;
}
.mtc-thumb-dl .icon { width: 14px; height: 14px; position: static; color: inherit; }

li.is-error .mtc-thumb-media { border-color: rgba(239, 108, 114, .4); }
li.is-error .mtc-thumb-media img { filter: grayscale(.75) brightness(.55); }
li.is-error .mtc-thumb-media > .icon { display: none; }
li.is-error .mtc-thumb-pct {
  top: 50%; bottom: auto; transform: translate(-50%, -50%);
  background: rgba(150, 34, 40, .85);
}
li.is-error .mtc-thumb-name { color: var(--red); }

/* --- Sonuç alanı -------------------------------------------------------- */

.mtc-result-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 320px; padding: 22px 8px; }
.mtc-result-state strong { font-size: 14.5px; font-weight: 620; }
.mtc-result-state p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 42ch; }
.mtc-result-state .btn { margin-top: 6px; max-width: 300px; }
.mtc-result-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
}
.mtc-result-icon .icon { width: 22px; height: 22px; }
.mtc-result-icon.is-ok { background: rgba(98, 211, 148, .14); color: var(--green); }
.mtc-result-icon.is-error { background: rgba(239, 108, 114, .14); color: var(--red); }
.mtc-result-icon.is-warn { background: var(--accent-soft); color: var(--accent); }
.mtc-result-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.mtc-result-meta span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }

.mtc-spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  border-top-color: var(--accent);
  animation: mtc-spin .7s linear infinite;
}
@keyframes mtc-spin { to { transform: rotate(360deg); } }

/* --- Adımlar ve SSS ----------------------------------------------------- */

.mtc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mtc-steps li { display: flex; align-items: flex-start; gap: 12px; }
.mtc-steps li p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mtc-steps li strong { color: var(--text); }

.mtc-faq { border-top: 1px solid var(--line); }
.mtc-faq h2 { margin-top: 26px; }
.mtc-faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.mtc-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); }
.mtc-faq summary::marker { color: var(--accent); }
.mtc-faq details p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* --- İçerik sayfası (PageLayout) --------------------------------------- */

.mtc-page-wrap { max-width: 880px; }
.mtc-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 2px 0 20px; color: var(--muted); font-size: 12px; }
.mtc-breadcrumb a { color: var(--muted); }
.mtc-breadcrumb a:hover { color: var(--text); }
.mtc-breadcrumb .sep { opacity: .45; }

.mtc-page { line-height: 1.78; }
.mtc-page h1 { font-size: clamp(26px, 2.4vw, 33px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 640; }
.mtc-page h2 { font-size: 19px; margin: 34px 0 12px; letter-spacing: -.015em; font-weight: 620; }
.mtc-page h3 { font-size: 15.5px; margin: 24px 0 8px; font-weight: 620; }
.mtc-page p { margin: 0 0 14px; color: var(--muted); }
.mtc-page strong { color: var(--text); }
.mtc-page ul, .mtc-page ol { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.mtc-page li { margin: 7px 0; }
.mtc-page a { color: var(--accent); }
.mtc-page a:hover { text-decoration: underline; }
/* Sayfa içindeki buton görünümlü bağlantılar kendi renk düzenini korur
   (ör. 404 sayfasındaki "Ana sayfaya dön" düğmesi). */
.mtc-page a.btn { color: var(--text); }
.mtc-page a.btn:hover { text-decoration: none; }
.mtc-page a.btn-primary { color: #1a1206; }
.mtc-page code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 12.5px; }
.mtc-page .mtc-page-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 10px 0 4px; padding: 11px 18px;
  border-radius: 10px; background: var(--accent); color: #1a1206; font-weight: 600;
}
.mtc-page .mtc-page-cta:hover { text-decoration: none; filter: brightness(1.05); }
.mtc-page .mtc-faq { border-top: 1px solid var(--line); }
.mtc-page .mtc-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.mtc-page .mtc-faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.mtc-page .mtc-faq p { margin: 10px 0 0; }

.mtc-error-code { color: var(--muted-2); font-size: 12px; }

/* --- Hesap sayfası ------------------------------------------------------ */

.mtc-usage-list { display: flex; flex-direction: column; gap: 12px; }
.mtc-usage-row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.mtc-usage-row strong { display: block; font-size: 13.5px; }
.mtc-usage-row small { color: var(--muted); font-size: 11.5px; }
.mtc-usage-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mtc-usage-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.mtc-session-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mtc-session-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.mtc-session-list strong { display: block; font-size: 13px; }
.mtc-session-list small { color: var(--muted); font-size: 11.5px; }

.mtc-danger-zone { border-color: rgba(239, 108, 114, .28); }

/* --- Panel çekmecesi (slide-over) -------------------------------------- */

.mtc-drawer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 4, 6, .62);
  backdrop-filter: blur(3px);
  animation: mtc-fade .16s ease;
}
@keyframes mtc-fade { from { opacity: 0; } to { opacity: 1; } }

.mtc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: -30px 0 90px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.22, .8, .3, 1);
}
.mtc-drawer.is-open { transform: translateX(0); }

.mtc-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.mtc-drawer-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mtc-drawer-user-copy { min-width: 0; }
.mtc-drawer-user-copy strong { display: block; font-size: 14px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtc-drawer-user-copy small { color: var(--muted); font-size: 11.5px; }

.mtc-drawer-tabs {
  display: flex; gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.mtc-drawer-tabs::-webkit-scrollbar { display: none; }
.mtc-drawer-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.mtc-drawer-tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mtc-drawer-tab.is-active { color: var(--text); background: rgba(255, 255, 255, .07); border-color: var(--line-strong); }
.mtc-badge {
  min-width: 17px; padding: 1px 5px;
  border-radius: 999px;
  background: var(--accent); color: #1a1206;
  font-size: 10px; font-weight: 700; text-align: center;
}

.mtc-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 20px; }
.mtc-drawer-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 20px 0; }
.mtc-drawer-loading .mtc-spinner { width: 18px; height: 18px; }

.mtc-drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); }

.mtc-pane { display: none; }
.mtc-pane.is-active { display: block; animation: mtc-fade .18s ease; }

.mtc-pane-title { margin: 22px 0 10px; font-size: 13px; font-weight: 640; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }

.mtc-kv { display: flex; flex-direction: column; gap: 9px; }
.mtc-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mtc-kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mtc-kv-row span { color: var(--muted); }
.mtc-kv-row strong { font-weight: 620; text-align: right; }

.mtc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mtc-list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .015);
}
.mtc-list-copy { flex: 1; min-width: 0; }
.mtc-list-copy strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtc-list-copy small { color: var(--muted); font-size: 11px; }
.mtc-list-actions { display: flex; align-items: center; gap: 6px; }
.mtc-list-actions .icon-button { width: 30px; height: 30px; }
.mtc-list-actions .icon { width: 14px; height: 14px; }

.mtc-pill {
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px; font-weight: 650;
  color: var(--text-2);
  white-space: nowrap;
}
.mtc-pill.done { color: var(--green); border-color: rgba(98, 211, 148, .3); background: rgba(98, 211, 148, .1); }
.mtc-pill.failed { color: var(--red); border-color: rgba(239, 108, 114, .3); background: rgba(239, 108, 114, .1); }
.mtc-pill.processing { color: var(--blue); border-color: rgba(111, 156, 255, .3); background: rgba(111, 156, 255, .1); }
.mtc-pill.queued { color: var(--muted); }

.mtc-usage-mini { display: flex; flex-direction: column; gap: 6px; }
.mtc-usage-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.mtc-usage-mini-head a { color: var(--accent); font-size: 11.5px; }

.mtc-empty-mini { padding: 18px 14px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line-strong); border-radius: 11px; }

/* --- Kimlik penceresi (modal) ------------------------------------------ */

.mtc-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 4, 6, .7);
  backdrop-filter: blur(4px);
  animation: mtc-fade .16s ease;
}
.mtc-modal {
  position: fixed; z-index: 110;
  inset: 0;
  display: grid; place-items: center;
  padding: 22px;
  overflow-y: auto;
}
.mtc-modal-card {
  width: 100%; max-width: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0c0e12;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mtc-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px;
}
.mtc-modal-title strong { display: block; font-size: 17px; font-weight: 640; letter-spacing: -.02em; }
.mtc-modal-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.mtc-auth-tabs { display: flex; gap: 4px; padding: 0 20px; }
.mtc-auth-tab {
  padding: 8px 12px;
  border: 0; border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.mtc-auth-tab:hover { color: var(--text); }
.mtc-auth-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.mtc-modal-body { padding: 18px 20px 20px; }
.mtc-auth-form { display: none; flex-direction: column; gap: 14px; }
.mtc-auth-form.is-active { display: flex; }
.mtc-auth-form .btn { margin-top: 2px; }
.mtc-auth-form .mtc-form-note { margin: 0; text-align: center; }

.mtc-auth-alt { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.mtc-auth-or { position: relative; text-align: center; color: var(--muted-2); font-size: 11px; }
.mtc-auth-or::before, .mtc-auth-or::after {
  content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--line);
}
.mtc-auth-or::before { left: 0; }
.mtc-auth-or::after { right: 0; }

.mtc-modal-msg { margin: 0 20px 16px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; }
.mtc-modal-msg.is-error { border: 1px solid rgba(239, 108, 114, .35); background: rgba(239, 108, 114, .08); color: #ffc0c3; }
.mtc-modal-msg.is-success { border: 1px solid rgba(98, 211, 148, .3); background: rgba(98, 211, 148, .08); color: #b6f0cf; }

/* --- Bildirim (toast) --------------------------------------------------- */

.mtc-toasts { position: fixed; z-index: 130; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; }
.mtc-toast {
  min-width: 240px; max-width: 380px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0e1015;
  box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.5;
  animation: mtc-toast-in .2s ease;
}
.mtc-toast.is-error { border-color: rgba(239, 108, 114, .4); }
.mtc-toast.is-success { border-color: rgba(98, 211, 148, .35); }
@keyframes mtc-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Altbilgi ----------------------------------------------------------- */

.mtc-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 9, .5);
}
.mtc-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.mtc-footer-brand { display: flex; align-items: center; gap: 11px; }
.mtc-footer-brand strong { display: block; font-size: 13.5px; font-weight: 620; }
.mtc-footer-brand small { color: var(--muted); font-size: 11.5px; }
.mtc-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.mtc-footer-links a { color: var(--muted); font-size: 12.5px; }
.mtc-footer-links a:hover { color: var(--text); }

.mtc-footer-network {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.mtc-footer-title { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

.mtc-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* --- Yardımcılar -------------------------------------------------------- */

.muted, .mtc-muted { color: var(--muted); }
.mtc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mtc-mt { margin-top: 18px; }
.mtc-sep { height: 1px; background: var(--line); border: 0; margin: 22px 0; }
.tiny-secure { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 10.5px; }
.tiny-secure .icon { width: 12px; height: 12px; }
.mtc-empty {
  padding: 34px 22px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font-size: 13px;
}

/* --- Hata (bare) -------------------------------------------------------- */

.bare-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; z-index: 1; }
.bare-card {
  max-width: 520px; width: 100%; text-align: center;
  padding: 40px 32px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow);
}
.bare-card h1 { font-size: 44px; margin: 0 0 8px; color: var(--accent); }
.bare-card p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }

/* --- Duyarlı yerleşim --------------------------------------------------- */

@media (max-width: 1040px) {
  .mtc-workspace { grid-template-columns: 1fr; }
  .mtc-panel-input, .mtc-panel-output { min-height: 0; }
  .mtc-panel-output { min-height: 340px; }
}

@media (max-width: 900px) {
  .mtc-main { padding: 26px 18px 54px; }
  .mtc-topbar-inner { padding: 10px 18px; gap: 12px; }
  .mtc-footer-inner, .mtc-footer-network, .mtc-footer-bottom { padding-left: 18px; padding-right: 18px; }
  .mtc-brand-text small { display: none; }
  .mtc-studio-hero { align-items: flex-start; }
  .mtc-studio-hero-stats { width: 100%; }
  .mtc-tool-hero { align-items: flex-start; }
  .mtc-usage-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .mtc-topnav { display: none; }
  .mtc-account-name { display: none; }
  .mtc-account { padding: 4px; }
  .mtc-quota-chip { padding: 6px 9px; font-size: 11px; }
  .mtc-top-actions .btn { padding: 7px 10px; font-size: 12px; }
  .mtc-drawer { width: 100vw; }
  .mtc-studio-hero h1, .mtc-tool-hero h1 { font-size: 27px; }
  .mtc-card, .mtc-app-card { padding: 16px; }
}
/* ------------------------------------------------------------------
   CSV toplu işlem bilgi şeridi
   ------------------------------------------------------------------ */
.mtc-batch-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: var(--text-2);
  font-size: 12.5px;
}
.mtc-batch-note .icon { width: 15px; height: 15px; color: var(--accent); }
.mtc-batch-note .btn { margin-left: auto; }

/* ------------------------------------------------------------------
   İlerleme çubuğu (CSV toplu işlem canlı durumu)
   ------------------------------------------------------------------ */
.mtc-progress { width: 100%; max-width: 320px; margin: 6px auto 0; display: flex; flex-direction: column; gap: 6px; }
.mtc-progress-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mtc-progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #f7c98b); transition: width .35s ease; }
.mtc-progress small { color: var(--muted); font-size: 11.5px; text-align: center; }

/* ------------------------------------------------------------------
   Misafir "bu cihazdaki son işlemler" listesi (localStorage)
   ------------------------------------------------------------------ */
.mtc-recent {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.mtc-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mtc-recent-head strong { font-size: 13px; font-weight: 620; }
.mtc-recent-clear { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.mtc-recent-clear:hover { color: var(--text); }
.mtc-recent .mtc-hint { margin: 10px 0 0; text-align: left; }
.mtc-recent .mtc-list-item .icon { width: 15px; height: 15px; color: var(--muted); }

/* ------------------------------------------------------------------
   Stüdyo üst barı: Ürünler açılır menüsü + mobil menü
   ------------------------------------------------------------------ */
.mtc-navgroup { position: relative; }
.mtc-topnav-drop { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font: inherit; cursor: pointer; }
.mtc-topnav-drop .icon { width: 13px; height: 13px; transition: transform .18s ease; }
.mtc-navgroup.is-open .mtc-topnav-drop .icon { transform: rotate(180deg); }

.mtc-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -6px;
  z-index: 70;
  width: min(360px, 86vw);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(11, 12, 16, .97);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.mtc-dropdown-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; text-decoration: none; color: var(--text); transition: background .15s ease; }
.mtc-dropdown-item:hover { background: rgba(255, 255, 255, .045); }
.mtc-dropdown-item > span { min-width: 0; }
.mtc-dropdown-item strong { display: block; font-size: 13px; font-weight: 620; }
.mtc-dropdown-item small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtc-dropdown-all { margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); color: var(--accent); font-size: 12.5px; font-weight: 620; text-decoration: none; }
.mtc-dropdown-all:hover { color: #f7c98b; }

.mtc-app-icon-sm {
  --brand: var(--accent);
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: rgba(239, 164, 72, .14);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  border: 1px solid rgba(255, 255, 255, .12);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.mtc-app-icon-sm.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

.mtc-mobile-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}
.mtc-mobile-toggle span { display: block; width: 15px; height: 1.6px; border-radius: 2px; background: var(--text-2); transition: .18s ease; }
.mtc-mobile-toggle.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.mtc-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mtc-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.mtc-mobilenav {
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 12, .97);
}
.mtc-mobilenav-inner { display: flex; flex-direction: column; gap: 2px; padding: 14px 24px 20px; max-width: 1240px; margin: 0 auto; }
.mtc-mobilenav-title { margin: 10px 0 4px; color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mtc-mobilenav a { padding: 9px 4px; color: var(--text-2); font-size: 13.5px; text-decoration: none; border-radius: 9px; }
.mtc-mobilenav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mtc-mobilenav a small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.mtc-mobilenav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

@media (max-width: 980px) {
  .mtc-topbar-studio .mtc-topnav { display: none; }
  .mtc-topbar-studio .mtc-top-actions .btn { display: none; }
  .mtc-mobile-toggle { display: flex; }
}
@media (min-width: 981px) {
  .mtc-mobilenav { display: none !important; }
}

/* ------------------------------------------------------------------
   Premium panel kabuğu (giriş yapan kullanıcı)
   Sol sabit sütun + sticky üst bar + görünüm sekmeleri.
   ------------------------------------------------------------------ */
.mtc-body-panel { background: radial-gradient(1200px 700px at 80% -10%, rgba(239, 164, 72, .06), transparent 60%), var(--bg); }
.mtc-pshell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.mtc-pside {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 9, 12, .92), rgba(7, 8, 10, .8));
  backdrop-filter: blur(24px) saturate(120%);
  z-index: 30;
}
.mtc-pside-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; text-decoration: none; color: var(--text); }
.mtc-pside-brand-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mtc-pside-brand-copy strong { font-size: 13.5px; font-weight: 660; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtc-pside-brand-copy small { color: var(--muted-2); font-size: 10.5px; }

.mtc-pside-new {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(239, 164, 72, .34);
  border-radius: 12px;
  background: rgba(239, 164, 72, .12);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 640;
  cursor: pointer;
  transition: .16s ease;
}
.mtc-pside-new:hover { background: rgba(239, 164, 72, .2); }
.mtc-pside-new .icon { width: 15px; height: 15px; }

.mtc-pside-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.mtc-pside-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: .15s ease;
}
.mtc-pside-item:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mtc-pside-item.is-active { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.mtc-pside-item .icon { width: 15px; height: 15px; flex: 0 0 15px; }
.mtc-pside-item em { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 11px; }
.mtc-pside-item.is-active em { color: var(--accent); }

.mtc-pside-spacer { flex: 1; }

.mtc-pside-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
}
.mtc-pside-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--text-2); }
.mtc-pside-card-head small { color: var(--muted); font-size: 11px; }
.mtc-pside-card-head b { color: var(--accent); font-weight: 700; }
.mtc-pside-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.mtc-pside-upgrade {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(239, 164, 72, .28);
  border-radius: 11px;
  background: rgba(239, 164, 72, .08);
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 640;
  cursor: pointer;
  transition: .16s ease;
}
.mtc-pside-upgrade:hover { background: rgba(239, 164, 72, .16); }
.mtc-pside-upgrade.is-active { border-color: rgba(239, 164, 72, .45); background: rgba(239, 164, 72, .2); }
.mtc-pside-upgrade .icon { width: 14px; height: 14px; }

.mtc-pside-account { border-top: 1px solid var(--line); padding-top: 10px; }
.mtc-pside-user { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.mtc-pside-user:hover { background: rgba(255, 255, 255, .04); }
.mtc-pside-user .icon { width: 13px; height: 13px; color: var(--muted-2); margin-left: auto; }
.mtc-pside-user-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mtc-pside-user-copy strong { font-size: 12.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtc-pside-user-copy small { color: var(--muted); font-size: 10.5px; }
.mtc-pside-account-actions { display: flex; gap: 4px; padding: 6px 2px 0; }
.mtc-pside-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
}
.mtc-pside-mini:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mtc-pside-mini .icon { width: 13px; height: 13px; }

.mtc-pmain { display: flex; flex-direction: column; min-width: 0; }
.mtc-ptopbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 13, .82);
  backdrop-filter: blur(18px) saturate(130%);
}
.mtc-ptopbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mtc-plive { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 620; color: var(--text-2); white-space: nowrap; }
.mtc-plive i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(98, 211, 148, .6); }
.mtc-ptopbar-right { display: flex; align-items: center; gap: 8px; }

.mtc-pcontent { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; }
.mtc-pview { display: none; }
.mtc-pview.is-active { display: block; }

.mtc-pview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mtc-pview-head h2 { margin: 0 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.mtc-pview-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.mtc-pcount {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 640;
  text-align: center;
}
.mtc-list-error { display: block; color: var(--red); font-size: 11px; margin-top: 2px; }
.mtc-panel-form { max-width: 560px; }
.mtc-panel-form-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mtc-panel-custom { font-size: 13.5px; color: var(--text-2); }

/* Panel "Nasıl çalışır" görünümü: adımlar + SSS aynı görünümde.
   Bu bölümler panelde araç çalışma alanından bağımsız bir görünümdür. */
.mtc-pview[data-pview="nasil-calisir"] .mtc-section { max-width: 780px; margin-top: 28px; }
.mtc-pview[data-pview="nasil-calisir"] .mtc-section:first-of-type { margin-top: 4px; }

/* Panel içindeki araç hero'su daha kompakt durur */
.mtc-tool.is-panel .mtc-tool-hero.is-compact { padding-top: 4px; }
.mtc-tool.is-panel .mtc-tool-hero.is-compact h1 { font-size: 24px; }
.mtc-tool.is-panel .mtc-tool-hero.is-compact .mtc-tool-facts { gap: 8px 16px; }

/* ------------------------------------------------------------------
   Plan / fiyat kartları (panel "Plan" bölümü + /planlar)
   ------------------------------------------------------------------ */
.mtc-plan-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(239, 164, 72, .28);
  border-radius: 18px;
  background: radial-gradient(600px 220px at 0 0, rgba(239, 164, 72, .1), transparent 70%), var(--panel);
}
.mtc-plan-current-copy strong { display: block; margin: 4px 0 4px; font-size: 20px; font-weight: 660; }
.mtc-plan-current-copy p { margin: 0; color: var(--muted); font-size: 12.5px; }
.mtc-eyebrow-mini { color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mtc-plan-current-usage { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.mtc-plan-big { display: flex; align-items: baseline; gap: 2px; }
.mtc-plan-big b { font-size: 26px; font-weight: 700; color: var(--accent); }
.mtc-plan-big small { color: var(--muted); font-size: 13px; }
.mtc-plan-current-usage .muted { color: var(--muted); font-size: 11.5px; }

.mtc-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 4px 0 20px; }
.mtc-plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.mtc-plan-card.is-current { border-color: rgba(98, 211, 148, .34); background: radial-gradient(400px 160px at 100% 0, rgba(98, 211, 148, .07), transparent 70%), var(--panel); }
.mtc-plan-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtc-plan-card header strong { font-size: 15px; font-weight: 640; }
.mtc-plan-price { display: flex; align-items: baseline; gap: 6px; }
.mtc-plan-price b { font-size: 24px; font-weight: 680; letter-spacing: -.02em; }
.mtc-plan-price small { color: var(--muted); font-size: 11.5px; }
.mtc-plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mtc-plan-features li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 12.5px; }
.mtc-plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-size: 11px; }
.mtc-plan-note { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.mtc-plan-foot { margin-top: auto; padding-top: 6px; }
.mtc-plan-soon { color: var(--muted-2); font-size: 11.5px; }
.mtc-plan-disclaimer { margin-top: -6px; text-align: left; }
.mtc-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.mtc-pricing-app { margin: 26px 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.mtc-pricing-app-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mtc-pricing-app-head > div { flex: 1; min-width: 200px; }
.mtc-pricing-app-head h2 { margin: 0 0 3px; font-size: 17px; font-weight: 650; }
.mtc-pricing-app-head h2 a { color: var(--text); text-decoration: none; }
.mtc-pricing-app-head h2 a:hover { color: var(--accent); }
.mtc-pricing-app-head p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* --- Panel duyarlılık: mobilde soldan açılan çekmece -------------------- */
.mtc-pbackdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(3, 4, 6, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
body.mtc-pmenu-open .mtc-pbackdrop { opacity: 1; pointer-events: auto; }
body.mtc-pmenu-open { overflow: hidden; }

.mtc-pmenu-toggle { display: none; }

@media (max-width: 980px) {
  .mtc-pshell { grid-template-columns: minmax(0, 1fr); }

  .mtc-pside {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 328px);
    height: 100%;
    z-index: 60;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 18px 14px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }
  body.mtc-pmenu-open .mtc-pside {
    transform: none;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
  }

  .mtc-pmenu-toggle { display: flex; }

  .mtc-pcontent { padding: 20px 16px 48px; }
  .mtc-ptopbar { padding: 10px 16px; }
}
@media (min-width: 981px) {
  .mtc-pbackdrop { display: none !important; }
}
@media (max-width: 720px) {
  .mtc-ptopbar .mtc-account-name { display: none; }
  /* "Nasıl çalışır?" dar ekranda simgeye döner; başlık kısalır. */
  .mtc-ptopbar-right .btn { padding: 7px 9px; }
  .mtc-ptopbar-right .btn span { display: none; }
  .mtc-ptopbar-left .mtc-plive { min-width: 0; overflow: hidden; }
  .mtc-plive > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtc-result-files { max-height: 280px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .mtc-plan-current { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------
   Yüzey derinliği (tema iyileştirmesi): kartlar arka plandan net biçimde
   ayrılır; üst kenara hafif ışık, iç şeritlere gömük (recessed) doku.
   ------------------------------------------------------------------ */
.mtc-card,
.mtc-app-card,
.mtc-panel,
.mtc-drawer,
.mtc-pside-card,
.mtc-plan-card,
.mtc-pricing-app,
.mtc-modal-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 44%),
    var(--panel);
}
.mtc-card,
.mtc-app-card,
.mtc-panel,
.mtc-pside-card,
.mtc-modal-card,
.bare-card {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.mtc-panel-head { background: rgba(255, 255, 255, .035); }
.mtc-app-io { background: rgba(0, 0, 0, .30); }
.mtc-batch-note { background: rgba(0, 0, 0, .25); }