/* ============================================================
   Textera - Marka tasarim sistemi
   Cyan - Mavi - Mor akiskan gradient kimligi, light theme
   ============================================================ */

:root {
  /* UI tamamen açık tema; OS karanlık modunda UA'nın form içi (autofill/scrollbar)
     koyu boyamasını engelle (theme-01). */
  color-scheme: light;
  /* Marka renkleri (logodan) */
  --cyan:   #22D3EE;
  --sky:    #38BDF8;
  --blue:   #3B82F6;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --purple: #A855F7;

  /* Gradientler */
  --grad: linear-gradient(120deg, #22D3EE 0%, #3B82F6 48%, #8B5CF6 100%);
  --grad-rev: linear-gradient(120deg, #8B5CF6 0%, #3B82F6 52%, #22D3EE 100%);
  --grad-text: linear-gradient(105deg, #0EA5C8 0%, #3B82F6 46%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, #ECFEFF 0%, #EFF6FF 50%, #F5F3FF 100%);

  /* Notr tonlar */
  --bg:            #FBFCFE;
  --surface:       #FFFFFF;
  --surface-soft:  #F6F8FC;
  --border:        #E7EBF2;
  --border-strong: #D4DAE6;
  --text:          #121826;
  --text-soft:     #5A6478;
  --text-muted:    #98A1B4;

  /* Anlamsal */
  --accent:       #3B82F6;
  --accent-deep:  #6366F1;
  --accent-soft:  #EEF4FF;
  --accent-tint:  #E6F0FF;
  --accent-ring:  rgba(59, 130, 246, 0.20);
  --cyan-soft:    #E0FBFF;
  --success:      #0EA67B;
  --success-soft: #DFF7EF;
  --danger:       #E5483D;
  --danger-soft:  #FDEDEB;
  --warning:      #B7791F;

  /* Golge */
  --shadow-sm: 0 1px 3px rgba(18, 24, 38, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(30, 58, 110, 0.18);
  --shadow-lg: 0 30px 70px -24px rgba(40, 60, 130, 0.28);
  --shadow-brand: 0 16px 40px -12px rgba(59, 130, 246, 0.42);

  /* Bicim */
  --radius-sm: 11px;
  --radius:    17px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  /* Yumusatma */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.46, 0.64, 1);

  /* Inter tam Turkce glif destegi saglar; sistem fontlari yedek olarak kalir */
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
/* Fixed/absolute dekoratif katmanlar (.mesh, .hero-glow) viewport disina tasip
   mobilde yatay kaydirma yaratiyordu. `clip` kaydirmayi engeller ve `hidden`'in
   aksine position: sticky basliklari bozmaz. */
html { overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

p,
li,
h1,
h2,
h3,
h4,
span,
a,
button,
label {
  overflow-wrap: anywhere;
}

/* ============================================================
   Mesh arka plan
   ============================================================ */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.mb-1 {
  width: 560px; height: 560px;
  background: #9FECF7;
  top: -200px; left: -160px;
  animation: float1 24s ease-in-out infinite;
}
.mb-2 {
  width: 520px; height: 520px;
  background: #BBD3FF;
  top: 8%; right: -200px;
  animation: float2 28s ease-in-out infinite;
}
.mb-3 {
  width: 480px; height: 480px;
  background: #D9C9FF;
  bottom: -220px; left: 14%;
  animation: float3 32s ease-in-out infinite;
}
.mb-4 {
  width: 360px; height: 360px;
  background: #C4F2FA;
  bottom: 12%; right: 18%;
  animation: float1 30s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 56px) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-66px, 48px) scale(1.14); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(54px, -52px) scale(0.9); }
}

/* ============================================================
   Ekranlar ve gecisler
   ============================================================ */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.screen[hidden] { display: none; }
.screen-landing { animation: screenIn 0.6s var(--ease) both; }
.screen-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 44px;
  animation: appIn 0.65s var(--ease) both;
}
@keyframes screenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes appIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.screen-landing.leaving {
  animation: screenOut 0.4s var(--ease-soft) both;
}
@keyframes screenOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.04); }
}

/* ============================================================
   Navigasyon
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 254, 0.72);
  border-bottom: 1px solid rgba(231, 235, 242, 0.7);
  animation: fadeDown 0.7s var(--ease) both;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.28));
}
.nav-name {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 9vw, 110px) 20px clamp(60px, 8vw, 96px);
  max-width: 880px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 620px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(94, 160, 246, 0.20) 0%, rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: clamp(108px, 17vw, 156px);
  height: clamp(108px, 17vw, 156px);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  animation: floaty 5.5s ease-in-out infinite;
}
.hero-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(59, 130, 246, 0.34));
}
.hero-logo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(168, 85, 247, 0.10) 50%, rgba(255, 255, 255, 0) 72%);
  animation: pulseRing 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.12); opacity: 0.4; }
}

.hero-title {
  font-size: clamp(46px, 9vw, 86px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
}
.wordmark {
  background: linear-gradient(105deg, #0EA5C8, #3B82F6, #8B5CF6, #3B82F6, #0EA5C8);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}

.hero-tag {
  font-size: clamp(15px, 2.3vw, 19px);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-tag strong {
  font-weight: 700;
  color: var(--text);
}

.hero-cta { margin-bottom: 24px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg { color: var(--success); }
.trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Hero ekolayzir dalgasi */
.hero-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 64px;
  margin-top: 46px;
  width: 100%;
  max-width: 460px;
}
.hero-wave span {
  flex: 1;
  border-radius: 99px;
  background: var(--grad);
  opacity: 0.55;
  animation: eq 1.4s ease-in-out infinite;
}
.hero-wave span:nth-child(odd)  { animation-duration: 1.7s; }
.hero-wave span:nth-child(3n)   { animation-duration: 1.1s; }
.hero-wave span:nth-child(1)  { animation-delay: -0.2s; }
.hero-wave span:nth-child(2)  { animation-delay: -0.6s; }
.hero-wave span:nth-child(3)  { animation-delay: -1.0s; }
.hero-wave span:nth-child(4)  { animation-delay: -0.4s; }
.hero-wave span:nth-child(5)  { animation-delay: -0.8s; }
.hero-wave span:nth-child(6)  { animation-delay: -1.2s; }
.hero-wave span:nth-child(7)  { animation-delay: -0.3s; }
.hero-wave span:nth-child(8)  { animation-delay: -0.9s; }
.hero-wave span:nth-child(9)  { animation-delay: -0.5s; }
.hero-wave span:nth-child(10) { animation-delay: -1.1s; }
.hero-wave span:nth-child(11) { animation-delay: -0.7s; }
.hero-wave span:nth-child(12) { animation-delay: -0.2s; }
.hero-wave span:nth-child(13) { animation-delay: -1.3s; }
.hero-wave span:nth-child(14) { animation-delay: -0.6s; }
.hero-wave span:nth-child(15) { animation-delay: -1.0s; }
@keyframes eq {
  0%, 100% { height: 16%; }
  50%      { height: 100%; }
}

/* ============================================================
   Bolum basliklari
   ============================================================ */
.section-eyebrow {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 44px;
}
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: -28px auto 42px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
}

/* ============================================================
   Tanitim videosu (ana sayfa)
   ============================================================ */
.video-promo {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 72px);
}
.video-promo .section-title { margin-bottom: 12px; }
.video-promo .section-sub { margin-top: 0; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 22px);
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}
/* Tek (solo) tanitim videosu: ortalanmis, biraz daha genis ve one cikan cerceve */
.video-solo { max-width: 900px; margin: 0 auto; }
.video-solo .video-frame { max-width: 900px; }
.video-frame {
  position: relative;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  transition: transform .28s ease, box-shadow .28s ease;
}
.video-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 42px 84px -26px rgba(40, 60, 130, 0.42);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Markali oynat butonu (poster uzerinde) */
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 38px -10px rgba(59, 130, 246, 0.65), 0 0 0 8px rgba(255, 255, 255, 0.14);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.video-play svg { margin-left: 3px; } /* ucgeni optik ortala */
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-play:hover { box-shadow: 0 20px 46px -10px rgba(59, 130, 246, 0.8), 0 0 0 10px rgba(255, 255, 255, 0.18); }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.78);
}

/* ============================================================
   Cikti demosu (ana sayfa, format onizlemeleri)
   ============================================================ */
.demo {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 80px);
}
.demo .section-title { margin-bottom: 12px; }
.demo .section-sub { margin-top: 0; }

.demo-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: 1 0 auto;
  min-width: 64px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.demo-tab:hover { color: var(--accent); }
.demo-tab.active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.demo-stage {
  display: grid;
  padding: clamp(18px, 3vw, 30px);
  min-height: 300px;
  align-items: center;
  background: radial-gradient(130% 120% at 50% 0%, var(--surface-soft) 0%, var(--surface) 72%);
}
.demo-pane {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.demo-pane.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Belge: Word ve PDF */
.doc-page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
  max-width: 520px;
  margin: 0 auto;
}
.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.doc-badge {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
}
.doc-badge.word { background: #2B579A; font-size: 14px; }
.doc-badge.pdf { background: #D93831; font-size: 10px; }
.doc-name { font-weight: 680; color: var(--text); font-size: 14px; }
.doc-text { color: #1f2733; line-height: 1.85; font-size: 15px; }
.doc-page.word .doc-text { font-family: Georgia, "Times New Roman", serif; }
.pdf-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* TXT */
.txt-view {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 26px);
  max-width: 560px;
  margin: 0 auto;
}

/* Altyazi: SRT ve VTT (koyu "altyazi editoru" gorunumu) */
.sub-view {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #0F1729;
  border-radius: 12px;
  padding: clamp(18px, 3vw, 24px);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(15, 23, 41, 0.28);
}
/* İçerik paketi demo paneli — farklılaştırıcıyı "çıktıyı gör" bölümünde gösterir. */
.pack-view {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.pack-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.pack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pack-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.pack-list li svg { flex: none; color: var(--accent); }
.vtt-head { color: #7DD3FC; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.08em; }
.cue { margin-bottom: 14px; }
.cue:last-child { margin-bottom: 0; }
.cue-idx { display: block; color: #64748B; }
.cue-time { display: block; color: #38BDF8; margin-bottom: 3px; }
.cue-text { display: block; color: #F1F5F9; }

/* MP3 oynatici */
.mp3-player {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.mp3-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px var(--accent-ring);
}
.mp3-body { flex: 1; min-width: 0; }
.mp3-name { font-size: 13px; font-weight: 650; color: var(--text-soft); margin-bottom: 9px; }
.wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.wave span {
  flex: 1;
  min-width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--violet) 100%);
  height: calc(var(--h, 0.3) * 100%);
  opacity: 0.85;
}
.demo-pane[data-fmt="mp3"].show .wave span {
  animation: wavePulse 1.1s var(--ease) infinite alternate;
  animation-delay: var(--d, 0s);
}
.mp3-time {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@keyframes wavePulse {
  from { height: calc(var(--h, 0.3) * 100%); }
  to   { height: calc(var(--h2, 0.85) * 100%); }
}

@media (max-width: 560px) {
  .demo-tab { min-width: 56px; padding: 8px 10px; font-size: 12px; }
  .demo-stage { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-pane[data-fmt="mp3"].show .wave span { animation: none; }
}

/* ============================================================
   Ozellikler
   ============================================================ */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 48px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
/* Öne çıkan kart: içerik paketi (asıl farklılaştırıcı) marka tonuyla vurgulanır. */
.feature-card-hl {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 60%);
}
.feature-card-hl .fc-glyph { color: var(--accent); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-tint);
}
.fc-glyph {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px -8px rgba(59, 130, 246, 0.5);
  transition: transform 0.35s var(--spring);
}
.feature-card:hover .fc-glyph { transform: scale(1.1) rotate(-6deg); }
.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================================================
   Nasil calisir
   ============================================================ */
.how {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 48px) clamp(50px, 7vw, 90px);
}
.how-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.how-step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.how-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1.5px solid var(--accent-tint);
  font-size: 18px;
  font-weight: 800;
  background-clip: padding-box;
  color: var(--accent);
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-step p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}
.how-line {
  align-self: center;
  flex: 0 0 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  opacity: 0.5;
}
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

/* ============================================================
   Landing footer
   ============================================================ */
.landing-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 48px) 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.lf-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
}
.lf-brand img { width: 26px; height: 26px; object-fit: contain; }
.lf-note { font-size: 12.5px; color: var(--text-muted); }
.lf-col { display: flex; flex-direction: column; gap: 8px; }
.lf-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lf-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lf-links a:hover { color: var(--accent); }
.lf-social { display: flex; gap: 10px; margin-top: 4px; }
.lf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lf-social a:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }
@media (max-width: 560px) {
  .landing-foot { flex-direction: column; align-items: flex-start; }
}

/* Destek modali */
.support-text {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.support-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--surface);
}
.support-error { color: var(--danger); font-size: 13px; margin-top: 10px; text-align: center; }
.support-mail { color: var(--accent); font-weight: 650; text-decoration: none; }
.support-mail:hover { text-decoration: underline; }

/* ============================================================
   Yasal / bilgi sayfalari (privacy, terms, refund, contact)
   ============================================================ */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.13), transparent 30%),
    var(--bg);
}
.legal-nav {
  max-width: 1120px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.legal-nav-link,
.legal-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.legal-nav-link {
  color: var(--text-soft);
  border: 1px solid transparent;
}
.legal-nav-link:hover {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
}
.legal-nav-cta {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-brand);
}
.legal-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px -18px rgba(59, 130, 246, 0.55);
}
.legal-wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 82px;
}
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(212, 218, 230, 0.74);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.9)),
    var(--grad-soft);
  box-shadow: var(--shadow-lg);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}
.legal-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 66%);
  pointer-events: none;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-hero h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  color: var(--text);
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}
.legal-lede {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}
.legal-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}
.legal-side-title {
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-side a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-side a:hover,
.legal-side a.active {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(2px);
}
.legal-content {
  display: grid;
  gap: 16px;
}
.legal-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}
.legal-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0;
}
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}
.legal-card p + p { margin-top: 10px; }
.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.legal-card li {
  position: relative;
  padding-left: 24px;
}
.legal-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}
.legal-card a,
.legal-contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.legal-card a:hover,
.legal-contact-card a:hover { text-decoration: underline; }
.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.legal-summary-item,
.legal-contact-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}
.legal-summary-item strong,
.legal-contact-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}
.legal-summary-item span,
.legal-contact-card span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.legal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.legal-soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.legal-soft-btn:hover {
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 820px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-side-title { grid-column: 1 / -1; }
  .legal-summary,
  .legal-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .legal-nav {
    align-items: flex-start;
    row-gap: 12px;
    padding-inline: 20px;
  }
  .legal-nav-actions {
    flex: 0 0 100%;
    width: calc(100vw - 40px);
    align-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
  }
  .legal-nav-link,
  .legal-nav-cta {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .legal-wrap {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .legal-hero,
  .legal-card,
  .legal-side,
  .legal-summary-item,
  .legal-contact-card {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .legal-hero { border-radius: var(--radius-lg); }
  .legal-side { grid-template-columns: 1fr; }
}

/* ============================================================
   Giris animasyonlari
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: revealIn 0.8s var(--ease) forwards;
}
.reveal[data-delay="0"] { animation-delay: 0.05s; }
.reveal[data-delay="1"] { animation-delay: 0.18s; }
.reveal[data-delay="2"] { animation-delay: 0.31s; }
.reveal[data-delay="3"] { animation-delay: 0.44s; }
.reveal[data-delay="4"] { animation-delay: 0.57s; }
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-up[data-delay="1"] { transition-delay: 0.08s; }
.reveal-up[data-delay="2"] { transition-delay: 0.16s; }
.reveal-up[data-delay="3"] { transition-delay: 0.24s; }
.reveal-up[data-delay="4"] { transition-delay: 0.32s; }
.reveal-up[data-delay="5"] { transition-delay: 0.40s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Uygulama ust cubugu
   ============================================================ */
.app-topbar {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
/* Marka solda kalsin; dil secici + giris/aksiyon kutusu saga itilsin */
.app-topbar .nav-brand { margin-right: auto; }

/* Landing nav'inda dil secici ve "Sign in" butonunu hizala */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Is listesi (sihirbazin altinda, arsiv) ---- */
.jobs-panel {
  width: 100%;
  margin-top: 26px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.jobs-title {
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.02em;
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jobs-empty {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.job-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.job-status {
  width: max-content;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.job-item.done .job-status {
  background: var(--success-soft);
  color: var(--success);
}
.job-item.error .job-status,
.job-item.expired .job-status {
  background: var(--danger-soft);
  color: var(--danger);
}
.job-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.job-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-download svg { flex: none; }
.job-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Auth ve odeme ---- */
.auth-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.pay-mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.pay-summary {
  max-width: 460px;
  margin: 0 auto 20px;
}
/* Süreye dayalı fiyat tablosu (paywall + pay modal) */
.price-tiers {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border, #E5E7EB);
}
.price-tiers .pt-head {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted, #9CA3AF);
}
.price-tiers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.price-tiers li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft, #4B5563);
}
.price-tiers li span:last-child { font-weight: 700; color: var(--text, #111827); }

/* Planlar & kredi modalı */
.modal-wide { width: min(680px, 100%); }
.plans-sub {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted, #9CA3AF); margin: 16px 0 8px; text-align: left;
}
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.plan-card {
  border: 1px solid var(--border, #E5E7EB); border-radius: 14px; padding: 16px;
  text-align: center; background: var(--surface, #fff);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-card h3 { font-size: 15px; margin: 0; }
.plan-card .plan-price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.plan-card .plan-price span { font-size: 13px; font-weight: 600; color: var(--text-muted, #9CA3AF); }
.plan-card p { margin: 0; font-size: 13px; color: var(--text-soft, #4B5563); }
.plan-card .plan-rate { font-size: 12px; font-weight: 600; color: var(--accent); }
.plan-card .plan-for { font-size: 11.5px; color: var(--text-muted, #98A1B4); }
.plan-card .btn { margin-top: auto; }
.ap-balance {
  padding: 6px 12px 10px; font-size: 13px; color: var(--text-soft, #4B5563);
  border-bottom: 1px solid var(--border, #E5E7EB); margin-bottom: 6px; text-align: left;
}
.ap-balance .ap-plan {
  background: var(--accent-soft, #EEF2FF); color: var(--accent, #4F46E5);
  border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 700; text-transform: capitalize;
}
.auth-pane,
.pay-pane {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* display:flex above overrides the [hidden] attribute's UA display:none,
   so the hidden pane must be re-hidden with a higher-specificity rule. */
.auth-pane[hidden],
.pay-pane[hidden] { display: none; }
.auth-pane .field { margin: 0; }
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-actions {
  display: flex;
  gap: 10px;
}
.auth-actions .btn { flex: 1; }
.auth-error {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}
.signed-as {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.pay-pane .btn-lg { width: 100%; }
.pay-pane .btn-secondary { width: 100%; }

/* Paywall: planlar/krediler birincil "değer" kartı (dakika başına daha ucuz) */
.pay-value {
  border: 1px solid var(--accent, #4F46E5);
  background: color-mix(in srgb, var(--accent, #4F46E5) 7%, transparent);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.pay-value-t {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--accent, #4F46E5);
}
.pay-value-d {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft, #4B5563);
}
.pay-value .btn { width: 100%; margin-top: 2px; }
/* "veya" ayraci (auth-divider deseniyle ayni) */
.pay-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pay-or::before,
.pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Ikincil (outline) buton — tek-seferlik odeme icin. Tiklanabilir gorunmeli
   ama birincil gradient butondan daha sonik dursun (de-emphasis).
   .btn.btn-secondary (ozgulluk 0,2,0) ki base .btn border'ini ezsin. */
.btn.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
  font-weight: 600;
}
.btn.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Kilitli kart odeme dugmesi */
.job-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.job-pay:hover { opacity: 0.92; transform: translateY(-1px); }
.job-pay:disabled { opacity: 0.6; cursor: wait; }

/* Tamamlandi ekrani format dugmeleri */
.done-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  max-width: 520px;
}

/* Yeniden baslat dugmesi */
.job-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.job-retry:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Kayit silme dugmesi */
.job-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  min-width: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}
.job-delete.arm {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.job-delete:disabled {
  opacity: 0.5;
  cursor: wait;
}
.job-download.zip {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
}
.job-working,
.job-error {
  font-size: 12px;
  color: var(--text-muted);
}
.job-error { color: var(--danger); }

/* Calisan is karti: canli durum + ilerleme cubugu */
.job-live {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 180px;
  max-width: 320px;
}
.job-live .job-working {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-progress {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.job-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad);
  transition: width 0.6s var(--ease);
}
.job-progress.indeterminate .job-progress-fill {
  width: 36%;
  animation: jobSlide 1.4s ease-in-out infinite;
}
@keyframes jobSlide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

/* Yeni eklenen / tamamlanan kart vurgusu */
.job-item.flash {
  animation: jobFlash 2.2s var(--ease);
}
@keyframes jobFlash {
  0%   { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* ---- Ilerleme noktalari ---- */
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  height: 8px;
}
.progress-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--border-strong);
  transition: width 0.5s var(--spring), background 0.4s var(--ease-soft);
}
.progress-dot.done { background: var(--accent); }
.progress-dot.active {
  width: 32px;
  background: var(--grad);
}

/* ============================================================
   Kart
   ============================================================ */
.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

.viewport {
  position: relative;
  padding: 40px 40px 8px;
}

/* ---- Adim gecisleri ---- */
.step { display: none; }
.step.active {
  display: block;
  animation: stepIn 0.5s var(--ease) both;
}
.step.active.from-back { animation: stepInBack 0.5s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-head { margin-bottom: 26px; }
.step-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 9px;
}
.step-title {
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ============================================================
   Dropzone
   ============================================================ */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 44px 24px;
  border-radius: var(--radius);
  border: 2px dashed var(--border-strong);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.dropzone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.015);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* Ana sayfa hero'sundaki dropzone */
.dropzone-hero {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 38px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dz-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
  margin-bottom: 8px;
  transition: transform 0.35s var(--spring);
}
.dropzone:hover .dz-icon,
.dropzone.dragging .dz-icon { transform: translateY(-5px) scale(1.05); }
.dz-title { font-size: 15.5px; font-weight: 660; }
.dz-sub { font-size: 13.5px; color: var(--text-soft); }

/* Link -> subtitles: paste a video URL instead of uploading a file. */
.url-row {
  width: min(640px, 100%);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.url-or {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.url-input-wrap {
  display: flex;
  width: 100%;
  gap: 8px;
}
.url-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.url-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 640;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.18s var(--spring), opacity 0.18s ease;
}
.url-btn:hover { transform: translateY(-1px); }
.url-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.url-hint { font-size: 12px; color: var(--text-muted); }
@media (max-width: 540px) {
  .url-input-wrap { flex-direction: column; }
  .url-btn { width: 100%; }
}
.dz-formats { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---- Dosya bilgisi ---- */
.file-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-tint);
  animation: chipIn 0.4s var(--spring) both;
}
.file-chip[hidden] { display: none; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fc-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
}
.fc-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.fc-name {
  font-size: 14px; font-weight: 640;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-size { font-size: 12.5px; color: var(--text-soft); }
.fc-remove {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fc-remove:hover { background: #fff; color: var(--danger); }

/* ============================================================
   Secenek kartlari
   ============================================================ */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.option-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.option-card:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}
.option-card:disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
.option-card.selected {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 10px 28px -14px var(--accent-ring);
}
.oc-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.3s var(--spring);
}
.option-card.selected .oc-icon {
  background: var(--grad);
  color: #fff;
  transform: scale(1.06);
}
.oc-title { font-size: 15.5px; font-weight: 680; }
.oc-desc { font-size: 12.8px; color: var(--text-soft); line-height: 1.5; }
.oc-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
}
.oc-check {
  position: absolute;
  top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--spring);
}
.option-card.selected .oc-check { opacity: 1; transform: scale(1); }
.option-card.selected .oc-badge { opacity: 0; }

/* ---- Model listesi ---- */
.model-list { display: flex; flex-direction: column; gap: 9px; }
.model-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.model-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
.model-row.selected {
  border-color: transparent;
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    var(--grad) border-box;
}
.mr-name { font-size: 14px; font-weight: 680; min-width: 74px; }
.mr-desc { font-size: 12.6px; color: var(--text-soft); flex: 1; }
.mr-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.model-row.selected .mr-dot {
  border-color: transparent;
  background: var(--grad);
}
.model-row.selected .mr-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* ============================================================
   Form alanlari
   ============================================================ */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 640;
  margin-bottom: 8px;
}
.label-opt { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.input-wrap { position: relative; }
.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.input-wrap .text-input { padding-right: 46px; }
.input-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.input-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.5;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: #0A7355;
  font-size: 13.5px;
  line-height: 1.5;
}
.ib-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  flex-shrink: 0;
}

/* ---- Dil cipleri ---- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.chip {
  padding: 13px 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 580;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.chip.selected {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -10px var(--accent-ring);
}

/* ---- Cikti formatlari ---- */
.output-field { margin-top: 18px; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}
/* Hızlı çıktı ön ayarları (Creator / Research modu) */
.preset-row { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-chip {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 650;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.preset-chip:hover { border-color: var(--border-strong); }
.preset-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.format-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.format-chip svg { flex: none; }
/* Format logolari (PNG): yukseklige gore olceklenir, en boy korunur */
.fmt-logo {
  flex: none;
  height: 16px;
  width: auto;
  max-width: 26px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.job-download .fmt-logo { height: 15px; max-width: 24px; }
/* Secili (gradient) chip'te marka logosu KENDI RENGINDE kalsin; okunabilirlik
   icin arkasina kucuk beyaz rozet konur. Logoyu beyaza boyamayiz. */
.format-chip.selected .fmt-logo {
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  height: 20px;
  box-sizing: border-box;
}
.format-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.format-chip:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.format-chip.selected {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

/* Format marka renkleri: uzerine gelince ikon ve metin renklenir */
.format-chip.fmt-docx:hover:not(.selected):not(:disabled),
.job-download.fmt-docx:hover {
  border-color: #2b579a; color: #2b579a; background: #eaf1f8;
}
.format-chip.fmt-pdf:hover:not(.selected):not(:disabled),
.job-download.fmt-pdf:hover {
  border-color: #dc2626; color: #dc2626; background: #fdecec;
}
.format-chip.fmt-txt:hover:not(.selected):not(:disabled),
.job-download.fmt-txt:hover {
  border-color: #475569; color: #475569; background: #eef2f6;
}
.format-chip.fmt-srt:hover:not(.selected):not(:disabled),
.job-download.fmt-srt:hover {
  border-color: #7c3aed; color: #7c3aed; background: #f3eefd;
}
.format-chip.fmt-vtt:hover:not(.selected):not(:disabled),
.job-download.fmt-vtt:hover {
  border-color: #0891b2; color: #0891b2; background: #e6f6fa;
}
.format-chip.fmt-mp3:hover:not(.selected):not(:disabled),
.job-download.fmt-mp3:hover {
  border-color: #16a34a; color: #16a34a; background: #eaf7ee;
}

/* ---- Anahtarlar ---- */
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  margin-bottom: 12px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              opacity 0.25s var(--ease);
}
.switch-row.on { border-color: var(--accent-tint); background: var(--accent-soft); }
.switch-row.disabled { opacity: 0.5; pointer-events: none; }
.switch {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 25px;
  border-radius: 99px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.3s var(--ease);
  margin-top: 1px;
}
.switch.on { background: var(--grad); }
.switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.switch-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--spring);
}
.switch.on .switch-knob { transform: translateX(19px); }
.switch-text { display: flex; flex-direction: column; gap: 3px; }
.switch-title { font-size: 14px; font-weight: 640; }
.switch-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }

/* ---- Ozet ---- */
.summary {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  animation: rowIn 0.45s var(--ease) both;
}
.summary-row:last-child { border-bottom: none; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sr-label { font-size: 13px; color: var(--text-soft); }
.sr-value {
  font-size: 13.5px; font-weight: 640;
  text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 60%;
}
/* Ücretsiz kademe karşılığı: "Ücretsiz" değerini olumlu (yeşil) vurgula. */
.sr-value.sr-free { color: var(--success); font-weight: 800; }
/* Anonim kullanıcıya dürüst "giriş yapınca ücretsiz" daveti. */
.summary-note {
  margin-top: 10px; padding: 9px 12px;
  background: var(--success-soft); color: var(--success);
  border-radius: 10px; font-size: 12.5px; font-weight: 600;
  text-align: center;
}

/* ============================================================
   Isleniyor
   ============================================================ */
.step-wide { text-align: center; }
.proc-visual {
  position: relative;
  width: 100px; height: 100px;
  margin: 8px auto 22px;
  display: grid;
  place-items: center;
}
.proc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-right-color: var(--violet);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}
.proc-wave i {
  width: 4px;
  border-radius: 99px;
  background: var(--grad);
  animation: wave 1.1s ease-in-out infinite;
}
.proc-wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.proc-wave i:nth-child(2) { height: 22px; animation-delay: 0.12s; }
.proc-wave i:nth-child(3) { height: 30px; animation-delay: 0.24s; }
.proc-wave i:nth-child(4) { height: 18px; animation-delay: 0.36s; }
.proc-wave i:nth-child(5) { height: 11px; animation-delay: 0.48s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50%      { transform: scaleY(1); opacity: 1; }
}
.proc-title { text-align: center; margin-bottom: 6px; }
.proc-status {
  font-size: 14px;
  color: var(--text-soft);
  min-height: 21px;
  margin-bottom: 18px;
  transition: opacity 0.2s var(--ease);
}
.proc-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 22px;
}
.proc-bar-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  background-size: 200% auto;
  animation: slide 1.5s var(--ease-soft) infinite, shimmer 3s linear infinite;
  transition: width 0.5s var(--ease);
}
@keyframes slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
.log-panel {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  margin-bottom: 16px;
}
.log-panel summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 620;
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.log-panel summary::-webkit-details-marker { display: none; }
.log-panel summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  font-weight: 700;
  color: var(--accent);
}
.log-panel[open] summary::before { content: "\2212"; }
.log-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 16px 14px;
  font-family: "Consolas", "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.log-line { animation: logIn 0.3s var(--ease) both; white-space: pre-wrap; word-break: break-word; }
.log-line.ok   { color: var(--success); }
.log-line.err  { color: var(--danger); }
.log-line.warn { color: var(--warning); }
.log-line.head { color: var(--accent); font-weight: 620; }
@keyframes logIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.proc-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Tamamlandi / Hata
   ============================================================ */
.done-mark, .error-mark {
  display: grid; place-items: center;
  margin: 6px auto 20px;
}
.dm-circle {
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle 0.6s var(--ease) forwards;
}
.dm-check {
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.4s var(--ease) 0.5s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }
[data-view="done"] { text-align: center; }
[data-view="done"] .step-title,
[data-view="done"] .step-desc { text-align: center; }
.done-title { margin-bottom: 8px; }
.done-desc { margin-bottom: 26px; }
.done-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.error-mark { color: var(--danger); }
[data-view="error"] { text-align: center; }
[data-view="error"] .step-title,
[data-view="error"] .step-desc { text-align: center; }
.error-title { margin-bottom: 8px; }
.error-desc {
  margin-bottom: 24px;
  background: var(--danger-soft);
  color: #A8362D;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-word;
}

/* ============================================================
   Butonlar
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 640;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.25s var(--ease),
              background 0.3s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), opacity 0.2s var(--ease),
              background-position 0.5s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  background-size: 170% auto;
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--accent-ring);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-xl {
  padding: 17px 34px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: var(--radius);
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; }
.btn[hidden] { display: none; }

/* ---- Kart alt navigasyon ---- */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 40px 28px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 560;
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  /* Boştayken görünmez ama hâlâ konumlanmış toast, alttaki butonların tıklamasını
     yutmasın diye olay almasın; yalnızca görünürken etkileşime açılır (vis-1). */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast[hidden] { display: flex; }
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(480px, 90vw);
}
.toast-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}
.toast.success .toast-ico { background: #059669; }
.toast.error .toast-ico { background: #dc2626; }
.toast.info .toast-ico { background: var(--accent); }

/* ============================================================
   Modals
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.modal-backdrop.open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  /* Mobilde küçük görünüm yüksekliği (URL çubuğu görünürken): alttaki CTA ilk
     açılışta tarayıcı çubuğunun altında kalmasın (mobile-4). */
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 34px 30px 26px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.28s var(--spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.modal-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
  transform: rotate(90deg);
}
.modal-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}
.modal-lock {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.modal-title {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.modal-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: -6px;
}
.modal .auth-google,
.modal-pay-btn { width: 100%; }
.modal .field { margin: 0; }
.modal .pay-summary { margin: 0; }
.modal-foot {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   Hesap menusu (topbar popover)
   ============================================================ */
.auth-box { position: relative; }
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.account-chip:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}
.account-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 60;
}
.account-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ap-head {
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.ap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.ap-item:hover { background: var(--accent-soft); color: var(--accent); }
.ap-item.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ============================================================
   Dil seçici (globe): nav'da, account-pop ile aynı dil
   ============================================================ */
.lang-picker { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--border-strong); color: var(--accent); box-shadow: var(--shadow-md); }
.lang-btn svg { opacity: 0.8; }
.lang-code { line-height: 1; }
.lang-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 60;
}
.lang-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.lang-item:hover { background: var(--accent-soft); color: var(--accent); }
.lang-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang-item.active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}

/* ============================================================
   Tooltipler (CSS-only, data-tip)
   ============================================================ */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 70;
}
[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
  border-bottom: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  z-index: 70;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before { opacity: 1; }

/* ============================================================
   Mikro etkilesimler
   ============================================================ */
.btn:active:not(:disabled) { transform: scale(0.97); }
.job-item {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.job-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================================
   Duyarli
   ============================================================ */
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .viewport { padding: 30px 22px 6px; }
  .card-foot { padding: 18px 22px 24px; }
  .step-title { font-size: 22px; }
  .jobs-head, .job-item { align-items: stretch; flex-direction: column; }
  .job-actions { justify-content: flex-start; }
  .job-live { align-items: flex-start; max-width: 100%; }
  .option-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .format-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .how-track { flex-direction: column; }
  .how-line { width: 2px; height: 26px; flex-basis: 26px; }
  .landing-foot { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .nav {
    padding-inline: 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .hero {
    padding-inline: 16px;
  }
  .hero-title {
    font-size: clamp(34px, 13vw, 48px);
    line-height: 1.05;
  }
  .dropzone,
  .dropzone-hero {
    padding: 30px 16px;
  }
  .card,
  .jobs-panel,
  .modal,
  .demo-card,
  .doc-page,
  .txt-view,
  .sub-view,
  .mp3-player {
    max-width: 100%;
    min-width: 0;
  }
  .viewport {
    padding-inline: 16px;
  }
  .card-foot {
    padding-inline: 16px;
    flex-wrap: wrap;
  }
  .btn {
    min-width: 0;
    max-width: 100%;
  }
  .chip-grid,
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-tabs,
  .job-actions,
  .done-formats,
  .lf-links {
    max-width: 100%;
    overflow-x: auto;
  }
  .modal {
    width: calc(100vw - 28px);
    padding: 26px 18px 20px;
  }
  [data-tip]::after {
    max-width: 220px;
    white-space: normal;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Akiskan hareket katmani: her sey animatif
   ============================================================ */
html { scroll-behavior: smooth; }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.45s ease both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Kartlar sahneye sirayla girer; yenilemelerde tekrar oynamaz */
.job-item {
  animation: riseIn 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.job-item.no-anim { animation: none; }

/* Sihirbaz adimi acilinca secenekler dalga halinde belirir */
.step.active .chip,
.step.active .format-chip,
.step.active .model-row,
.step.active .option-card,
.step.active .switch-row {
  animation: riseIn 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.step.active .done-formats .job-download {
  animation: riseIn 0.4s var(--spring) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* Adim gecisi: yumusak yay */
.step.active { animation: stepIn 0.5s var(--spring) both; }
.step.active.from-back { animation: stepInBack 0.5s var(--spring) both; }

/* Secim aninda kucuk ziplama */
@keyframes selectPop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.chip.selected,
.format-chip.selected,
.option-card.selected,
.model-row.selected { animation: selectPop 0.28s var(--ease); }

/* Birincil dugmede isik suzulmesi */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
  transition: transform 0.65s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* Ilerleme cubugu parlamasi */
.proc-bar-fill { position: relative; overflow: hidden; }
.proc-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: barShine 1.5s linear infinite;
}
@keyframes barShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Hero dropzone ikonu nefes alir */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.dropzone-hero .dz-icon { animation: floaty 3.4s ease-in-out infinite; }

/* Kilit/odeme isaretleri yumusak nabiz atar */
@keyframes pulseSoft {
  /* Halka rengi, işaretlerin --accent (mavi) dolgusuyla aynı olsun (theme-02). */
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.25); }
  55% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); }
}
.pay-mark, .modal-lock { animation: pulseSoft 2.4s ease-in-out infinite; }

/* Anahtar dugmesi yayli kayar */
.switch-knob { transition-timing-function: var(--spring) !important; }

/* Ilerleme noktalari akici buyur */
.progress-dot { transition: width 0.35s var(--spring), background 0.3s var(--ease), transform 0.3s var(--spring); }
.progress-dot.active { transform: scale(1.06); }

/* Indirme dugmeleri uzerinde minik kalkis */
.job-download:hover, .job-retry:hover, .job-delete:hover { transform: translateY(-2px); }
.job-download, .job-retry, .job-delete { transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--spring); }

/* ============================================================
   RTL (Urduca / اردو) — dir="rtl" yalnizca Urdu secilince aktif olur.
   Metin hizalamasini tarayici otomatik cevirir; burada yalnizca fiziksel
   left/right ile konumlanmis ogeleri aynalariz.
   ============================================================ */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .lang-pop { right: auto; left: 0; }
[dir="rtl"] .lang-item { text-align: right; }
[dir="rtl"] .app-topbar .nav-brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .input-wrap .text-input { padding-right: 16px; padding-left: 46px; }
[dir="rtl"] .input-toggle { right: auto; left: 6px; }
[dir="rtl"] .text-input,
[dir="rtl"] textarea,
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="password"] { text-align: right; direction: rtl; }
/* Latin marka/sayilar (Textera, $1, MP3) RTL icinde dogru aksin */
[dir="rtl"] .lf-brand, [dir="rtl"] .nav-brand { direction: ltr; }
/* Merkezlenmis basliklar merkezde kalsin */
[dir="rtl"] .hero-title, [dir="rtl"] .section-head, [dir="rtl"] .step-head,
[dir="rtl"] .demo-head, [dir="rtl"] .why-head { text-align: center; }
/* RTL'de kapatma butonu ve hesap menusu dogru tarafta */
[dir="rtl"] .modal-close { left: 14px; right: auto; }
[dir="rtl"] .account-pop, [dir="rtl"] .menu-pop { left: 0; right: auto; }
/* Açma/kapama anahtarının topuzu mutlak konumlu; dir=rtl onu aynalamaz —
   sağdan başlat ve sola kaydır (i18n-03). */
[dir="rtl"] .switch-knob { left: auto; right: 3px; }
[dir="rtl"] .switch.on .switch-knob { transform: translateX(-19px); }
/* Yönlü gezinme okları (Geri / Devam / hero CTA / paywall giriş) aynalanmalı;
   .card-foot içindeki tek SVG'ler bu oklardır (i18n-04). */
[dir="rtl"] .card-foot .btn svg,
[dir="rtl"] .how-cta .btn svg,
[dir="rtl"] #paywallSignInBtn svg { transform: scaleX(-1); }

/* ============================================================
   Responsive ince ayar — mobil dokunma hedefleri (>=40px) ve
   kucuk ekranda rahat tiklama. Yatay tasma html{overflow-x:clip} ile cozuldu.
   ============================================================ */
@media (max-width: 480px) {
  .nav-actions button, .lang-btn, .nav .btn { min-height: 40px; }
  .lf-links a { padding: 6px 2px; display: inline-block; }
  .job-actions { flex-wrap: wrap; }

  /* Dil secici aciliri ekran disina tasmasin + 10 dil icin kaydir.
     Ana sayfa navindeki secici SOLDA -> saga acilir; uygulama ust
     cubugundaki SAGDA -> sola acilir (varsayilan). */
  .lang-pop { max-width: calc(100vw - 28px); max-height: 60vh; overflow-y: auto; }
  .nav-actions .lang-pop { left: 0; right: auto; }
  [dir="rtl"] .nav-actions .lang-pop { left: auto; right: 0; }

  /* Demo karti mobilde tam sigsin: 6 sekme satiri esit paylassin (tasma yok),
     bolum padding'i azaltilsin. */
  .demo { padding-left: 14px; padding-right: 14px; }
  .demo-tabs { gap: 2px; padding: 8px; }
  .demo-tab { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 8px 4px; font-size: 11.5px; }
  .demo-stage { padding: 16px; }

  /* Kütüphane satır butonları + dosya/modal kapatma: mobil dokunma hedefi (mobile-1/3) */
  .job-download, .job-retry, .job-delete, .job-pay { min-height: 40px; }
  .job-actions { gap: 8px; }
  .fc-remove, .modal-close { width: 44px; height: 44px; }
}

/* İçerik türü adımı — emoji + etiketli çipler */
.ctype-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ctype-emoji { font-size: 15px; line-height: 1; }

/* ============================================================
   Erişilebilirlik & odak — ekran-okuyucu etiketleri, tasarım sistemiyle
   tutarlı klavye odak halkası, OS karanlık modunda autofill okunabilirliği.
   (a11y-3, vis-2, vis-7, theme-01)
   ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.btn:focus-visible, .chip:focus-visible, .format-chip:focus-visible,
.ctype-chip:focus-visible, .demo-tab:focus-visible, .option-card:focus-visible,
.lang-item:focus-visible, .ap-item:focus-visible, .modal-close:focus-visible,
.job-download:focus-visible, .job-retry:focus-visible, .job-delete:focus-visible,
.job-pay:focus-visible, .account-chip:focus-visible, .lang-btn:focus-visible,
.lf-links a:focus-visible, .fc-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.demo-tab:active { transform: scale(0.97); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-soft) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

/* ============================================================
   Kullanici paneli (dashboard): sol kenar cubugu + ana alan
   ============================================================ */
/* Dashboard yerlesimi: screen-app artik ortalanan tek-kolon degil, tam-bleed
   iki-kolon. (Bu kural daha sonra geldigi icin yukaridaki .screen-app'i ezer.) */
/* :not([hidden]) sart: yoksa bu kural (iki sinif) `.screen[hidden]`i ezip
   paneli ana sayfada footer altinda gosteriyordu. Gizliyken display:none kalsin. */
.screen-app.is-dash:not([hidden]) {
  display: block;
  padding: 0;
  align-items: stretch;
}
.dash {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}

/* ---- Sol kenar cubugu ---- */
.dash-side {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 252px;
  width: 252px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 40;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 16px;
  text-decoration: none;
  cursor: pointer;
}
.dash-brand img { width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.28)); }
.dash-brand .nav-name {
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.dash-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-navhead {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); padding: 14px 12px 6px;
}
.dash-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-soft);
  font: inherit; font-size: 14.5px; font-weight: 600; text-align: left;
  cursor: pointer; width: 100%;
  transition: background .16s var(--ease-soft), color .16s var(--ease-soft);
}
.dash-link svg { width: 19px; height: 19px; flex: 0 0 19px; opacity: .85; }
.dash-link:hover { background: var(--surface-soft); color: var(--text); }
.dash-link.active {
  background: var(--accent-soft); color: var(--accent-deep);
}
.dash-link.active svg { opacity: 1; }
.dash-link .badge {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px; color: #fff;
  background: var(--grad); text-transform: uppercase;
}
.dash-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.dash-balance {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 12px 12px; font-size: 13px; color: var(--text-soft);
}
.dash-balance strong { font-size: 15px; color: var(--text); }
.dash-side-foot .auth-box { padding: 4px 4px 0; position: relative; }
.dash-side-foot .account-chip { width: 100%; justify-content: flex-start; }
/* Hesap menusu kenar cubugunun dibinde — asagi degil YUKARI acilsin ki
   viewport altinda kesilmesin. */
.dash-side-foot .account-pop {
  top: auto; bottom: calc(100% + 10px); right: auto; left: 0; width: 100%;
}

/* ---- Ana alan ---- */
.dash-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(251, 252, 254, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.dash-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-right: auto; }
.dash-burger {
  display: none; border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text);
}
.dash-burger svg { display: block; width: 20px; height: 20px; }
.dash-body { padding: clamp(18px, 3vw, 34px); }
.dash-section { animation: appIn 0.4s var(--ease) both; }
.dash-section[hidden] { display: none; }
.dash-inner { max-width: 700px; margin: 0 auto; width: 100%; }
.dash-inner .card { margin: 0; }
.dash-inner .progress { margin: 0 auto 18px; }
.dash-section .jobs-panel { margin-top: 0; max-width: 880px; }

.dash-sec-head { max-width: 880px; margin: 0 auto 18px; }
.dash-sec-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.dash-sec-head p { color: var(--text-soft); margin-top: 4px; font-size: 14.5px; }

/* ---- Billing ---- */
.dash-billing, .dash-account, .dash-studio { max-width: 880px; margin: 0 auto; }
.bill-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.bill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.bill-card .bk { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.bill-card .bv { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.bill-card .bv small { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.dash-subhead { font-size: 15px; font-weight: 800; margin: 22px 0 12px; }
.bill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

/* ---- Studio (Pro) ---- */
.studio-lock {
  text-align: center; background: var(--grad-soft);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 26px; box-shadow: var(--shadow-sm);
}
.studio-lock .lock-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: var(--grad); padding: 6px 14px; border-radius: 999px;
}
.studio-lock h2 { font-size: 26px; font-weight: 800; margin: 16px 0 8px; letter-spacing: -0.02em; }
.studio-lock p.lead { color: var(--text-soft); max-width: 520px; margin: 0 auto 22px; }
.studio-feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; max-width: 720px; margin: 0 auto 26px; text-align: left;
}
.studio-feat {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.studio-feat svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent); margin-top: 2px; }
.studio-feat b { display: block; font-size: 14.5px; }
.studio-feat span { font-size: 13px; color: var(--text-soft); }

.studio-editor { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.studio-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.studio-toolbar select { flex: 1; min-width: 180px; }
.studio-text {
  width: 100%; min-height: 46vh; resize: vertical;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; font: 15px/1.7 var(--font); color: var(--text);
  background: var(--surface-soft);
}
.studio-text:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.studio-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.studio-stat { margin-left: auto; color: var(--text-muted); font-size: 12.5px; }

/* Studio tabs (Script editor / Meeting analysis) */
.studio-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px;
}
.studio-tab {
  border: 0; background: transparent; color: var(--text-soft);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 7px 16px; border-radius: 9px;
  transition: background .16s var(--ease-soft), color .16s var(--ease-soft);
}
.studio-tab:hover { color: var(--text); }
.studio-tab.active { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-sm); }

/* Meeting analysis output */
.studio-empty { color: var(--text-muted); padding: 28px 8px; text-align: center; }
.studio-analysis { display: flex; flex-direction: column; gap: 18px; }
.an-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-soft);
}
.an-h svg { width: 16px; height: 16px; color: var(--accent); }
.an-summary {
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.an-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.an-list li {
  position: relative; padding: 10px 14px 10px 34px; font-size: 14.5px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.an-list li::before {
  content: ""; position: absolute; left: 14px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.an-list.decisions li::before { background: var(--success); }
.an-tasks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.an-task {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.an-task .tk-check {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border: 2px solid var(--border-strong); border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background .14s, border-color .14s;
}
.an-task.done .tk-check { background: var(--success); border-color: var(--success); }
.an-task.done .tk-text { text-decoration: line-through; color: var(--text-muted); }
.an-task .tk-body { flex: 1; min-width: 0; }
.an-task .tk-text { font-size: 14.5px; line-height: 1.5; }
.an-task .tk-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.an-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--text-soft); background: var(--surface-soft); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 999px;
}
.an-chip b { color: var(--text); font-weight: 700; }

/* ---- Account ---- */
.acc-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--shadow-sm); }
.acc-row { display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.acc-row:last-child { border-bottom: 0; }
.acc-row .acc-k { font-weight: 700; min-width: 130px; }
.acc-row .acc-v { color: var(--text-soft); margin-right: auto; }

/* ---- Mobil cekmece ---- */
.dash-scrim { display: none; position: fixed; inset: 0; z-index: 35;
  background: rgba(18, 24, 38, 0.42); backdrop-filter: blur(2px); }
@media (max-width: 860px) {
  .dash-burger { display: inline-flex; }
  .dash-side {
    position: fixed; left: 0; top: 0; height: 100dvh;
    transform: translateX(-104%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .dash.nav-open .dash-side { transform: translateX(0); }
  .dash.nav-open .dash-scrim { display: block; }
}
[dir="rtl"] .dash-side { border-right: 0; border-left: 1px solid var(--border); }
[dir="rtl"] .dash-link { text-align: right; }
@media (max-width: 860px) {
  [dir="rtl"] .dash-side { transform: translateX(104%); }
  [dir="rtl"] .dash.nav-open .dash-side { transform: translateX(0); }
}
