:root {
  --bg: #0b0c0f; --surface: #15171c; --surface-2: #1f2229; --border: #2a2d36;
  --text: #e8eaed; --muted: #8b8f98; --accent: #f5c518; --accent-2: #e0b514;
  --danger: #ef4444; --ok: #22c55e; --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, rgba(245, 197, 24, .08), transparent 70%), var(--bg);
  color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 16px;
}
.hidden { display: none !important; }

header { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 22px 4px 18px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 18px; height: 18px; }
header b { font-size: 16px; }
header span { color: var(--muted); font-size: 13px; margin-left: auto; }

.card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* drop zone */
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(245, 197, 24, .04); }
.drop svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }
.drop strong { display: block; font-size: 16px; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 13px; }

.file { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.ext { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font: 700 11px/1 ui-monospace, monospace; text-transform: uppercase; overflow: hidden; }
.file .meta { flex: 1; min-width: 0; }
.file .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .size { color: var(--muted); font-size: 13px; }
.x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.x:hover { color: var(--text); background: var(--surface-2); }

label { display: block; font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.row { display: flex; gap: 8px; }
.row > input { flex: 1; min-width: 0; }
input { font: inherit; width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; outline: none; }
input:focus { border-color: var(--accent); }
input.mono { font-family: 'JetBrains Mono', 'Cascadia Mono', ui-monospace, monospace; letter-spacing: .5px; }

/* sifre kutusu + goz */
.pwbox { position: relative; flex: 1; min-width: 0; }
.pwbox input { padding-right: 46px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.eye:hover { color: var(--text); background: var(--surface-2); }
.eye svg { width: 20px; height: 20px; }
.eye .off { display: none; }
.eye.shown .on { display: none; }
.eye.shown .off { display: block; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

button { font: inherit; font-weight: 600; cursor: pointer; border: none; border-radius: 10px; padding: 12px 16px; transition: background .15s, opacity .15s; white-space: nowrap; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); color: #0b0c0f; width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }
.primary:hover:not(:disabled) { background: var(--accent-2); }
.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.secondary:hover:not(:disabled) { background: #2a2d36; }
.ghost { background: none; color: var(--muted); width: 100%; margin-top: 10px; }
.ghost:hover { color: var(--text); }

/* progress */
.pct { font-size: 44px; font-weight: 800; letter-spacing: -1px; text-align: center; margin: 6px 0 14px; }
.bar { height: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 99px; transition: width .2s linear; }
.stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* done */
.okbox { display: flex; gap: 10px; align-items: center; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); color: #86efac; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.okbox svg { width: 20px; height: 20px; flex-shrink: 0; }

.notes { margin-top: 18px; display: grid; gap: 8px; }
.notes div { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.notes div::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.err { color: var(--danger); font-size: 14px; margin-top: 14px; min-height: 0; text-align: center; }
.err:empty { display: none; }

/* download */
.big { width: 64px; height: 64px; border-radius: 16px; margin: 4px auto 14px; display: grid; place-items: center; background: var(--surface-2); }
.big svg { width: 32px; height: 32px; }
.center { text-align: center; }
.pill { display: inline-block; font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; margin: 10px 4px 0 0; }
.pill.warn { color: #fca5a5; border-color: rgba(239, 68, 68, .4); }

footer { color: #5c606a; font-size: 12px; padding: 22px 0 30px; text-align: center; }

@media (max-width: 480px) {
  .card { padding: 20px; }
  .pct { font-size: 38px; }
}
