:root {
  --navy: #1F3C7A; --navy-d: #162c5b; --red: #8E1B1B; --cyan: #12A8E0;
  --bg: #f3f5f9; --card: #ffffff; --text: #1d2433; --muted: #5d6677; --line: #dde3ec;
  --ok-bg: #e7f6ec; --ok: #1e7a3d; --err-bg: #fdecec; --err: #b42318; --info-bg: #e8f1fb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--navy); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: #fff; border-bottom: 3px solid var(--navy); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 18px; }
.brand img { height: 46px; }
.brand b { color: var(--red); }
nav a { margin-left: 18px; text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
main { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card.narrow { max-width: 420px; margin: 60px auto; }
h1 { font-size: 22px; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: 18px; margin: 0 0 12px; color: var(--navy); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); font-size: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #c8d0dc; border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
input[type=checkbox] { display: inline; width: auto; margin: 0; }
textarea { resize: vertical; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 18px; }
button, .btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--navy-d); }
button.light, .btn.light { background: #eef2f8; color: var(--navy); border: 1px solid #c9d4e6; }
button.light:hover, .btn.light:hover { background: #e1e8f3; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.runbox, .sendbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 8px 0; }
.sendbox { background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.savebar { position: sticky; bottom: 0; background: rgba(243,245,249,.95); padding: 12px 0; margin-bottom: 18px; }
.note { color: var(--muted); font-size: 13px; }
.set { color: var(--ok); font-size: 12px; } .unset { color: var(--err); font-size: 12px; }
.msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.info { background: var(--info-bg); color: var(--navy); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge.done { background: var(--ok-bg); color: var(--ok); } .badge.failed { background: var(--err-bg); color: var(--err); }
.badge.queued, .badge.running { background: var(--info-bg); color: var(--navy); }
pre#log { background: #0f1729; color: #d7e0f0; padding: 12px; border-radius: 8px; max-height: 360px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); margin-top: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -1px; }
.tab { padding: 9px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #e9edf4; text-decoration: none; font-weight: 600; color: var(--muted); }
.tab.on { background: #fff; color: var(--navy); }
.tab.off { opacity: .45; }
.preview { border-top-left-radius: 0; }
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 6px 0 14px; }
th, td { border: 1px solid #c9d0db; padding: 5px 8px; text-align: left; vertical-align: middle; }
th { background: #DEEAF6; color: #1d2433; }
td.r { text-align: right; white-space: nowrap; }
tr.b td { font-weight: 700; background: #f6f8fb; }
td.bad { color: var(--err); font-weight: 700; } td.ok { color: var(--ok); font-weight: 700; }
table.list td { vertical-align: middle; }
.doc h1 { font-size: 24px; } .doc h2 { font-size: 19px; margin-top: 22px; } .doc h3 { font-size: 16px; color: var(--navy); margin-top: 18px; }
.doc p { margin: 4px 0 8px; } .doc p.b { font-weight: 700; } .doc p.i { font-style: italic; } .doc p.small { font-size: 13px; }
.doc hr.pb { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }
@media (max-width: 640px) { header.top { padding: 10px 16px; } nav a { margin: 0 12px 0 0; } .card { padding: 16px; } }

/* ───── Giriş / ilk kurulum ekranı ───── */
body.auth { min-height: 100vh; background: #f4f6fb; }
.au { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.au-sol { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #2b55a8 0%, #1F3C7A 38%, #0e1f45 100%); isolation: isolate; }
.au-izgara { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent); }
.au-isik { position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(18,168,224,.55), transparent 65%); filter: blur(10px); animation: auSuz 9s ease-in-out infinite alternate; }
.au-isik::after { content: ""; position: absolute; width: 360px; height: 360px; left: -420px; top: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(142,27,27,.55), transparent 65%); }
@keyframes auSuz { to { transform: translate(-60px, -40px) scale(1.08); } }
.au-marka { display: flex; align-items: center; gap: 14px; font-size: 19px; }
.au-marka b { color: #ffb4a8; }
.au-logo { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.au-logo img { width: 46px; height: 46px; object-fit: contain; }
.au-logo::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); animation: auDon 18s linear infinite; }
@keyframes auDon { to { transform: rotate(360deg); } }
.au-orta { max-width: 520px; }
.au-ust { display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.au-orta h2 { margin: 18px 0 30px; font: 800 clamp(34px, 3.6vw, 52px)/1.08 Georgia, "Times New Roman", serif; color: #fff; letter-spacing: -.01em; }
.au-orta h2 em { font-style: italic; background: linear-gradient(90deg, #7fd8ff, #ffb4a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-grafik { position: relative; padding: 18px 20px 16px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform: rotate(-1.5deg); animation: auYuz 6s ease-in-out infinite alternate; }
@keyframes auYuz { to { transform: rotate(-1.5deg) translateY(-10px); } }
.au-grafik-bas { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.au-grafik-bas b { color: #5be49b; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(91,228,155,.15); }
.au-cubuk { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.au-cubuk i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7fd8ff, rgba(18,168,224,.25)); transform-origin: bottom; animation: auBuyu .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.au-cubuk i:last-child { background: linear-gradient(180deg, #ffb4a8, rgba(142,27,27,.35)); }
@keyframes auBuyu { from { transform: scaleY(0); } }
.au-cizgi { position: absolute; left: 20px; right: 20px; bottom: 16px; width: calc(100% - 40px); height: 130px; overflow: visible; pointer-events: none; }
.au-cizgi path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: auCiz 1.6s .9s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
@keyframes auCiz { to { stroke-dashoffset: 0; } }
.au-etiket { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.au-etiket li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); animation: auGel .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 120ms + 1.2s); }
.au-etiket svg { width: 17px; height: 17px; color: #7fd8ff; }
@keyframes auGel { from { opacity: 0; transform: translateY(12px); } }
.au-alt { font-size: 12.5px; letter-spacing: .08em; color: rgba(255,255,255,.5); }

.au-sag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; max-width: none; margin: 0; background: radial-gradient(60% 50% at 80% 10%, #e6eefb, transparent), #f4f6fb; }
.au-kart { position: relative; width: 100%; max-width: 430px; padding: 40px 38px 36px; border-radius: 28px; background: #fff; border: 1px solid #e3e8f1; box-shadow: 0 40px 80px -50px rgba(14,31,69,.55), 0 2px 6px rgba(14,31,69,.05); animation: auGel .7s cubic-bezier(.2,.8,.2,1) both; }
.au-kart::before { content: ""; position: absolute; left: 38px; right: 38px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #1F3C7A, #12A8E0, #8E1B1B); }
.au-mini { display: none; }
.au-kart h1 { margin: 0 0 6px; font: 800 30px/1.15 Georgia, "Times New Roman", serif; color: #0e1f45; }
.au-acik { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }
.au-alan { margin-bottom: 16px; font-size: 13px; font-weight: 700; color: #3d4659; }
.au-kutu { position: relative; display: block; margin-top: 7px; }
.au-kutu > svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #93a0b8; pointer-events: none; transition: color .25s; }
.au-kutu input { margin: 0; height: 52px; padding: 0 48px 0 46px; border: 1.5px solid #dbe2ee; border-radius: 14px; background: #f7f9fc; font-size: 15.5px; transition: border-color .25s, background .25s, box-shadow .25s; }
.au-kutu input:hover { border-color: #c3cde0; }
.au-kutu input:focus { outline: none; border-color: #1F3C7A; background: #fff; box-shadow: 0 0 0 4px rgba(31,60,122,.12); }
.au-kutu:focus-within > svg { color: #1F3C7A; }
body.auth .au-goz { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; background: transparent; color: #93a0b8; }
body.auth .au-goz:hover { background: #eef2f8; color: #1F3C7A; }
.au-goz svg { width: 19px; height: 19px; }
.au-goz.acik { color: #1F3C7A; }
.au-goz.acik svg { opacity: .6; }
body.auth .au-btn { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; margin-top: 10px; padding: 0 8px 0 22px; border-radius: 16px; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, #1F3C7A, #2b55a8); box-shadow: 0 18px 30px -16px rgba(31,60,122,.8); overflow: hidden; transition: transform .25s, box-shadow .25s; }
body.auth .au-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
body.auth .au-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 36px -16px rgba(31,60,122,.9); background: linear-gradient(135deg, #1F3C7A, #2b55a8); }
body.auth .au-btn:hover::after { transform: translateX(100%); }
.au-btn i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-style: normal; font-size: 19px; background: rgba(255,255,255,.16); transition: transform .3s; }
.au-btn:hover i { transform: translateX(3px); }
.au-btn.bekle i { font-size: 0; }
.au-btn.bekle i::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: auDon .7s linear infinite; }
.au-kart .msg { border-radius: 12px; font-size: 14px; }
.au-sag footer { padding: 0; }
@media (max-width: 900px) {
  .au { grid-template-columns: 1fr; }
  .au-sol { display: none; }
  .au-sag { min-height: 100vh; background: radial-gradient(90% 40% at 50% 0%, #dfe9fb, transparent), #f4f6fb; }
  .au-mini { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 18px; border-radius: 50%; background: #fff; box-shadow: 0 10px 26px -12px rgba(14,31,69,.5); }
  .au-mini img { width: 50px; height: 50px; object-fit: contain; }
  .au-kart { padding: 32px 24px 28px; }
  .au-kart::before { left: 24px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .au *, .au *::before, .au *::after { animation: none !important; } .au-cizgi path { stroke-dashoffset: 0; } }

/* Giriş ekranı: büyük logo */
.au-marka { gap: 18px; font-size: 22px; }
.au-logo { width: 104px; height: 104px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.55); }
.au-logo img { width: 88px; height: 88px; }
.au-logo::before { inset: -10px; border-width: 2.5px; }
.au-logo::after { content: ""; position: absolute; inset: -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.au-mini { display: grid; place-items: center; width: 112px; height: 112px; margin: -96px auto 18px; border-radius: 50%; background: #fff; border: 6px solid #f4f6fb; box-shadow: 0 18px 36px -16px rgba(14,31,69,.55); position: relative; z-index: 1; }
.au-mini img { width: 92px; height: 92px; object-fit: contain; }
.au-kart { margin-top: 56px; text-align: left; }
.au-kart h1, .au-kart .au-acik { text-align: center; }
@media (max-width: 900px) {
  .au-mini { width: 120px; height: 120px; margin: -100px auto 18px; }
  .au-mini img { width: 100px; height: 100px; }
  .au-kart { margin-top: 64px; }
}
