/* ==========================================================================
   ConverTT — tasarım sistemi
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #06070d;
  --bg-soft: #0a0c16;
  --surface: rgba(17, 20, 34, 0.72);
  --surface-2: rgba(24, 28, 47, 0.72);
  --surface-3: rgba(33, 38, 61, 0.6);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edf0ff;
  --text-soft: #c3c8e0;
  --muted: #8d94b4;
  --faint: #646b8a;

  --violet: #7c5cff;
  --violet-soft: rgba(124, 92, 255, 0.16);
  --cyan: #2dd4bf;
  --cyan-soft: rgba(45, 212, 191, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --success: #34d399;

  --gradient: linear-gradient(120deg, #8b5cf6 0%, #5b8cff 45%, #22d3ee 100%);
  --gradient-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.12));

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 11px;

  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 8px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 18px 50px -20px rgba(124, 92, 255, 0.65);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --header-h: 74px;
  --shell: 1160px;
}

[data-theme='light'] {
  color-scheme: light;

  --bg: #f5f6fb;
  --bg-soft: #eef0f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(255, 255, 255, 0.94);
  --surface-3: rgba(238, 240, 250, 0.9);
  --border: rgba(15, 20, 45, 0.09);
  --border-strong: rgba(15, 20, 45, 0.16);
  --text: #11142a;
  --text-soft: #343a59;
  --muted: #5d6484;
  --faint: #8a90ab;

  --violet: #6d4aff;
  --cyan: #0d9488;
  --amber: #d97706;
  --danger: #e11d48;
  --success: #059669;

  --shadow-lg: 0 30px 60px -35px rgba(28, 32, 74, 0.35), 0 8px 24px -16px rgba(28, 32, 74, 0.25);
  --shadow-glow: 0 18px 44px -22px rgba(109, 74, 255, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.030'/%3E%3C/svg%3E");
  opacity: 0.9;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.shell--narrow {
  width: min(100% - 40px, 840px);
}

/* ------------------------------------------------------------------ arka plan */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora__blob--violet {
  width: 720px;
  height: 720px;
  top: -320px;
  left: -140px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
}

.aurora__blob--cyan {
  width: 620px;
  height: 620px;
  top: 80px;
  right: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 65%);
  animation-delay: -8s;
}

.aurora__blob--amber {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: 35%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 65%);
  animation-delay: -16s;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

[data-theme='light'] .aurora__blob {
  opacity: 0.42;
}

[data-theme='light'] .aurora__grid {
  background-image:
    linear-gradient(rgba(20, 25, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 25, 60, 0.05) 1px, transparent 1px);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* -------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100% - 40px, var(--shell));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__mark svg {
  width: 21px;
  height: 21px;
}

.brand__badge {
  padding: 2px 7px;  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-soft);
  border: 1px solid rgba(124, 92, 255, 0.32);
}

.brand__credit {
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.905rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-3);
}

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

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.mode-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.icon-btn,
.lang-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-sun { display: none; }
[data-theme='light'] .icon-sun { display: block; }
[data-theme='light'] .icon-moon { display: none; }

.lang-btn {
  width: auto;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 54px 0 30px;
}

.hero__intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-right: 0.06em;
}

.lede {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: clamp(0.98rem, 1.5vw, 1.09rem);
  color: var(--muted);
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 38px;
  margin-top: 30px;
  animation: rise 0.7s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 92px;
}

.hero__stats strong {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stats span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------- converter */

.converter {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(30, 34, 55, 0.85), rgba(12, 14, 25, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: rise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
  isolation: isolate;
}

[data-theme='light'] .converter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.94));
}

.converter::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.5), transparent 35%, transparent 65%, rgba(34, 211, 238, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.converter__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

[data-theme='light'] .converter__tabs {
  background: rgba(15, 20, 45, 0.05);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab svg {
  width: 17px;
  height: 17px;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px -8px rgba(124, 92, 255, 0.9);
}

[data-theme='light'] .tab.is-active {
  color: #fff;
}

.url-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme='light'] .url-field {
  background: #fff;
}

.url-field:focus-within {
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.url-field.is-invalid {
  border-color: rgba(251, 113, 133, 0.7);
  animation: shake 0.4s ease;
}

@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.url-field__icon {
  color: var(--faint);
  flex: none;
}

.url-field__icon svg {
  width: 20px;
  height: 20px;
}

#url-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}

#url-input::placeholder {
  color: var(--faint);
}

#url-input:focus {
  outline: none;
}

.ghost-btn {
  flex: none;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  color: var(--text);
}

[data-theme='light'] .ghost-btn:hover {
  background: rgba(15, 20, 45, 0.06);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1 50%, #3b82f6);
  box-shadow: 0 12px 28px -12px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -14px rgba(99, 102, 241, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:active {
  transform: translateY(0) scale(0.99);
}

.btn--soft {
  height: 44px;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.btn--soft:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

#analyze-btn.is-loading .btn__spinner { display: block; }
#analyze-btn.is-loading .btn__label { opacity: 0.75; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.quick-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-row__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.79rem;
  font-weight: 550;
  color: var(--text-soft);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.5);
  color: var(--text);
  background: rgba(124, 92, 255, 0.1);
}

.chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.85));
}

.chip svg {
  width: 15px;
  height: 15px;
}

.chip--ghost {
  margin-left: auto;
  background: transparent;
}

/* --------------------------------------------------------------- gelişmiş */

.advanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  animation: rise 0.35s ease both;
}

[data-theme='light'] .advanced {
  background: rgba(15, 20, 45, 0.035);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field select {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%238d94b4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.13);
}

.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 4px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: none;
}

.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.switch input:checked + .switch__track {
  background: linear-gradient(120deg, #8b5cf6, #3b82f6);
  border-color: transparent;
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.converter__legal {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--faint);
  text-align: center;
}

/* ------------------------------------------------------------------- panel */

.panel {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: rise 0.35s ease both;
}

[data-theme='light'] .panel {
  background: rgba(15, 20, 45, 0.03);
}

.panel__state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel__state--error {
  background: var(--danger-soft);
  color: var(--text-soft);
}

.panel__state--error h3 {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 3px;
}

.panel__state--error p {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 60ch;
}

.panel__state--error .btn {
  margin-left: auto;
}

.loader {
  display: flex;
  gap: 4px;
  flex: none;
}

.loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: bounce 1s ease-in-out infinite;
}

.loader span:nth-child(2) { animation-delay: 0.12s; background: #6366f1; }
.loader span:nth-child(3) { animation-delay: 0.24s; background: var(--cyan); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-7px); opacity: 1; }
}

.state-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}

.state-icon svg {
  width: 22px;
  height: 22px;
}

.state-icon--error {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.state-icon--success {
  color: var(--success);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 30px -6px rgba(52, 211, 153, 0.5);
}

/* ---------------------------------------------------------------- önizleme */

.preview {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 20px;
  padding: 18px;
  animation: rise 0.4s ease both;
}

.preview__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.preview__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.preview__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.badge--violet { color: var(--violet); background: var(--violet-soft); border-color: rgba(124, 92, 255, 0.3); }
.badge--amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.3); }
.badge--cyan { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(45, 212, 191, 0.3); }

.preview h3 {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview__meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.preview__meta span {
  position: relative;
}

.preview__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- ilerleme */

.progress {
  padding: 22px 24px;
  animation: rise 0.3s ease both;
}

.progress__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.progress__stage {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.progress__sub {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 2px;
}

.progress__percent {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress__bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

[data-theme='light'] .progress__bar {
  background: rgba(15, 20, 45, 0.08);
}

.progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.7);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.progress__bar span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.progress__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.79rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.link-btn {
  padding: 2px 0;
  border: 0;
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.link-btn:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------- sonuç */

.result {
  padding: 22px;
  animation: rise 0.4s ease both;
}

.result__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.result__head h3 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.result__head p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.87rem;
}

.file-list li:last-child {
  border-bottom: 0;
}

.file-list__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: none;
}

.file-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.file-list__size {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  flex: none;
}

.file-list__dl {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface-3);
  flex: none;
}

.file-list__dl:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.file-list__dl svg {
  width: 15px;
  height: 15px;
}

.result__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.result__actions .btn {
  height: 44px;
}

/* ----------------------------------------------------------------- bölümler */

.section {
  position: relative;
  padding: 86px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin-top: 12px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 54ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

[data-theme='light'] .eyebrow {
  color: var(--violet);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.feature__icon svg {
  width: 21px;
  height: 21px;
}

.feature__icon--violet { color: #a78bfa; background: var(--violet-soft); border-color: rgba(124, 92, 255, 0.24); }
.feature__icon--cyan { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(45, 212, 191, 0.24); }
.feature__icon--amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.24); }

[data-theme='light'] .feature__icon--violet { color: #6d4aff; }

.feature h3 {
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 7px;
}

.feature p {
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ------------------------------------------------------------------ adımlar */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 14px;
}

.steps li h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.steps li p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- SSS */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq details[open] {
  border-color: rgba(124, 92, 255, 0.32);
  background: var(--surface-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  color: var(--text-soft);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--faint);
  transition: transform 0.22s ease, color 0.22s ease;
}

.faq details[open] summary::after {
  content: '−';
  color: var(--violet);
}

.faq details p {
  padding: 0 20px 18px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

/* ------------------------------------------------------------------ geçmiş */

.history {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.history__head h2 {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  font-size: 0.8rem;
  color: var(--text-soft);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.history__item:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.history__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history__item b {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--violet);
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 52px 0 30px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

[data-theme='light'] .site-footer {
  background: linear-gradient(180deg, transparent, rgba(15, 20, 45, 0.035));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h4 {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  padding: 3px 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  transition: color 0.18s ease;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--faint);
}

.footer-note {
  max-width: 52ch;
  text-align: right;
}

/* ------------------------------------------------------------------- toast */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text);
  backdrop-filter: blur(14px);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 360px;
}

.toast::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

.toast--error::before { background: var(--danger); }
.toast--info::before { background: var(--cyan); }

.toast.is-leaving {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding-top: 34px; }
  .preview { grid-template-columns: 1fr; }
  .preview__media { max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .panel__state--error { flex-wrap: wrap; }
  .panel__state--error .btn { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .shell, .shell--narrow, .header-inner { width: min(100% - 26px, var(--shell)); }

  .brand__badge { display: none; }

  .hero h1 { letter-spacing: -0.04em; }

  .converter { padding: 18px; border-radius: 22px; }

  .url-field {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }

  .url-field__icon { display: none; }

  #url-input {
    flex: 1 1 100%;
    height: 42px;
    padding: 0 6px;
    font-size: 0.9rem;
  }

  .ghost-btn { flex: 1; height: 44px; }

  #analyze-btn {
    flex: 2;
    height: 44px;
    padding: 0 16px;
  }

  .quick-row__label { display: none; }
  .chip--ghost { margin-left: 0; }

  .advanced { grid-template-columns: 1fr 1fr; padding: 14px; }
  .switches { flex-direction: column; gap: 12px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 18px; }

  .hero__stats { gap: 14px 22px; }
  .hero__stats > div { min-width: 76px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }

  .result__actions .btn { flex: 1; }
  .progress { padding: 18px; }
  .file-list__size { display: none; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------- chrome / pwa / modal */

.ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.34);
  background: var(--violet-soft);
  color: #b3a4ff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ext-btn svg {
  width: 16px;
  height: 16px;
}

.ext-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.24);
}

[data-theme='light'] .ext-btn {
  color: #6d4aff;
}

.install {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(30, 34, 55, 0.9), rgba(11, 13, 23, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

[data-theme='light'] .install {
  background: linear-gradient(155deg, #ffffff, #f4f5fd);
}

.install::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.install__intro h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.install__intro > p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 46ch;
}

.install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.install__actions .btn {
  height: 46px;
}

.install__note {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--faint);
  max-width: 48ch;
}

.install__cards {
  display: grid;
  gap: 14px;
}

.install-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

[data-theme='light'] .install-card {
  background: rgba(255, 255, 255, 0.85);
}

.install-card__head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.install-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  color: #a78bfa;
  background: var(--violet-soft);
  border: 1px solid rgba(124, 92, 255, 0.26);
}

.install-card__icon--cyan {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: rgba(45, 212, 191, 0.26);
}

.install-card__icon svg {
  width: 20px;
  height: 20px;
}

.install-card h3 {
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.install-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.ext-steps {
  list-style: none;
  counter-reset: extstep;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.ext-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 0.81rem;
  color: var(--text-soft);
  counter-increment: extstep;
}

.ext-steps li::before {
  content: counter(extstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted);
}

.btn--block {
  width: 100%;
}

.pwa-points {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.pwa-points li {
  position: relative;
  padding-left: 20px;
}

.pwa-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease both;
}

.modal__card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #171a2c, #0c0e19);
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-theme='light'] .modal__card {
  background: linear-gradient(180deg, #ffffff, #f6f7fe);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.modal__head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.modal__head p {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 44ch;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal__tabs {
  display: flex;
  gap: 4px;
  margin: 20px 24px 0;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

[data-theme='light'] .modal__tabs {
  background: rgba(15, 20, 45, 0.05);
}

.modal__tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal__tabs button.is-active {
  color: #fff;
  background: var(--gradient);
}

.modal__body {
  padding: 20px 24px 26px;
}

.modal__cta {
  margin-bottom: 18px;
}

.ext-steps--modal {
  margin: 0 0 16px;
}

.ext-steps--modal li {
  font-size: 0.85rem;
  padding-left: 32px;
  padding-bottom: 4px;
}

.modal__hint {
  font-size: 0.77rem;
  line-height: 1.6;
  color: var(--faint);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.pwa-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.pwa-box p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.modal__body .btn {
  height: 46px;
}

/* --------------------------------------------------------- sürükle-bırak */

.converter.is-dragging {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), var(--shadow-lg);
}

@media (max-width: 1180px) {
  .brand__credit { display: none; }
  .ext-btn span { display: none; }
  .ext-btn { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 1024px) {
  .install { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
}

@media (max-width: 640px) {
  .install { padding: 20px; border-radius: 22px; }
  .install__actions .btn { flex: 1; }
  .modal__card { max-height: 92vh; }
  .modal__head, .modal__body { padding-left: 18px; padding-right: 18px; }
  .modal__tabs { margin-left: 18px; margin-right: 18px; }
}

/* bağış */
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 80, 80, 0.55);
  background: linear-gradient(180deg, #ff3b3b, #d61313);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(255, 40, 40, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.donate-btn svg { width: 16px; height: 16px; }

.donate-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

.donate-btn--lg { height: 56px; padding: 0 30px; border-radius: 16px; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.donate-btn--lg svg { width: 22px; height: 22px; }

.support { position: relative; z-index: 1; padding: 26px 0 64px; }

.support__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 92, 92, 0.22);
  background: radial-gradient(500px 220px at 0% 0%, rgba(255, 70, 70, 0.16), transparent 70%), linear-gradient(150deg, rgba(28, 18, 28, 0.9), rgba(12, 13, 23, 0.94));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme='light'] .support__inner {
  background: radial-gradient(500px 220px at 0% 0%, rgba(255, 70, 70, 0.12), transparent 70%), linear-gradient(150deg, #ffffff, #fdf5f5);
}

.support__text { max-width: 58ch; }
.support__text h2 { margin: 8px 0 8px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.18; letter-spacing: -0.03em; font-weight: 750; }
.support__text p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.support__credit { display: inline-block; margin-top: 14px; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--faint); }
.support__credit strong { color: var(--text-soft); font-weight: 700; }
.footer-credit { font-size: 0.76rem; color: var(--muted); text-decoration: none; }
.footer-credit:hover { color: var(--text); text-decoration: underline; }
.footer-credit strong { color: var(--text); font-weight: 700; }

@media (max-width: 900px) {
  .donate-btn span { display: none; }
  .donate-btn { width: 38px; padding: 0; justify-content: center; }
  .support__inner { padding: 24px; }
}

@media (max-width: 640px) {
  .donate-btn--lg span { display: inline; }
  .donate-btn--lg { width: 100%; height: 52px; }
  .support { padding-bottom: 44px; }
}

[hidden] {
  display: none !important;
}
