:root {
  --bg: #06060c; --card: rgba(14, 15, 30, .82); --stroke: #1e2040; --stroke-hi: #2e3166;
  --text: #eef0ff; --text2: #b4b9dd; --text3: #8a90bc;
  --cyan: #22e4ff; --violet: #8b5cf6; --pink: #ff3ec9; --green: #3bffa1; --amber: #ffc24b; --red: #ff5470;
  --accent: linear-gradient(135deg, #8b5cf6, #22e4ff);
  --hot: linear-gradient(90deg, #ff3ec9, #8b5cf6 50%, #22e4ff);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: Bahnschrift, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); overflow-x: hidden; }

/* ---------- arka plan ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(10px); }
.aurora .b1 { width: 760px; height: 760px; left: -240px; top: -300px; background: radial-gradient(closest-side, rgba(139,92,246,.42), transparent); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 820px; height: 820px; right: -300px; bottom: -340px; background: radial-gradient(closest-side, rgba(34,228,255,.26), transparent); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 620px; height: 620px; left: 45%; top: -360px; background: radial-gradient(closest-side, rgba(255,62,201,.24), transparent); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(300px, 220px); } }
@keyframes drift2 { to { transform: translate(-340px, -200px); } }
@keyframes drift3 { to { transform: translate(-240px, 260px); } }
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%); }

/* ---------- marka ---------- */
.brand { display: flex; align-items: center; gap: 13px; }
.logo { width: 44px; height: 44px; border-radius: 13px; padding: 2px; background: var(--hot); box-shadow: 0 0 22px rgba(139,92,246,.7); }
.logo span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 11px; background: #0a0b16; font-size: 20px; color: var(--cyan); }
.brand-name { font: 700 22px/1.1 var(--display); letter-spacing: .5px;
  background: linear-gradient(90deg, #eef0ff 0%, #22e4ff 50%, #eef0ff 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3.2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(34,228,255,.35)); }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; color: var(--text3); }

/* ---------- kartlar ---------- */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.card h2 { margin: 0 0 16px; font: 600 18px var(--display); }
.card.narrow { max-width: 560px; }
.neon-border { position: relative; border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, rgba(255,62,201,.6), rgba(139,92,246,.45), rgba(34,228,255,.6)) border-box; border: 1px solid transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- formlar ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text3); }
input, select { font: 14px var(--font); color: var(--text); background: #0b0c18; border: 1px solid #2a2d58; border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 42px; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,228,255,.18), 0 0 18px rgba(34,228,255,.25); }
select option { background: #0e0f1e; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.create { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.create .grow { flex: 1 1 260px; }
.create input[type=number] { width: 90px; }

/* ---------- butonlar ---------- */
.btn { font: 600 14px var(--font); color: #fff; border: 0; border-radius: 11px; padding: 11px 20px; cursor: pointer; min-height: 42px;
  transition: transform .12s, box-shadow .2s, background-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.primary { background: var(--accent); box-shadow: 0 0 0 rgba(34,228,255,0); }
.btn.primary:hover { box-shadow: 0 0 24px rgba(34,228,255,.45), 0 0 8px rgba(139,92,246,.6); }
.btn.ghost { background: #14152c; border: 1px solid #2a2d58; color: var(--text); }
.btn.ghost:hover { border-color: var(--violet); background: #1b1d3a; box-shadow: 0 0 14px rgba(139,92,246,.35); }
.btn.warn { background: rgba(255,194,75,.12); border: 1px solid rgba(255,194,75,.45); color: var(--amber); }
.btn.warn:hover { background: rgba(255,194,75,.2); }
.btn.danger { background: rgba(255,84,112,.12); border: 1px solid rgba(255,84,112,.45); color: #ff7a90; }
.btn.danger:hover { background: rgba(255,84,112,.22); box-shadow: 0 0 14px rgba(255,84,112,.35); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; min-height: 34px; border-radius: 9px; }

/* ---------- giris ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); padding: 34px; border-radius: 22px; background: var(--card); backdrop-filter: blur(16px); animation: rise .6s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 0 60px rgba(139,92,246,.18); }
.auth-card h1 { font: 600 22px var(--display); margin: 26px 0 6px; }
.muted { color: var(--text3); }
p.muted { font-size: 13.5px; margin: 0 0 16px; }

/* ---------- uygulama ---------- */
.shell { max-width: 1320px; margin: 0 auto; padding: 22px 24px 60px; }
.top { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs-main { display: flex; gap: 6px; margin-right: auto; margin-left: 18px; flex-wrap: wrap; }
.tabs-main a { color: var(--text2); text-decoration: none; padding: 9px 16px; border-radius: 10px; font-size: 14px; transition: background .15s, color .15s; position: relative; }
.tabs-main a:hover { background: rgba(255,255,255,.05); color: #fff; }
.tabs-main a.on { color: #fff; background: rgba(139,92,246,.18); }
.tabs-main a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--cyan); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 16px 18px; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.stat:nth-child(2) { animation-delay: .04s } .stat:nth-child(3) { animation-delay: .08s } .stat:nth-child(4) { animation-delay: .12s } .stat:nth-child(5) { animation-delay: .16s } .stat:nth-child(6) { animation-delay: .2s }
.stat span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text3); }
.stat b { font: 700 30px var(--display); }
.c-green b { color: var(--green); text-shadow: 0 0 14px rgba(59,255,161,.45); }
.c-amber b { color: var(--amber); } .c-red b { color: var(--red); }
.c-cyan b { color: var(--cyan); text-shadow: 0 0 14px rgba(34,228,255,.45); } .c-pink b { color: var(--pink); text-shadow: 0 0 14px rgba(255,62,201,.45); }

.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-size: 14px; border: 1px solid; animation: rise .4s both; }
.alert.ok { background: rgba(59,255,161,.08); border-color: rgba(59,255,161,.35); color: var(--green); }
.alert.bad { background: rgba(255,84,112,.08); border-color: rgba(255,84,112,.4); color: #ff7a90; }
.alert.info { background: rgba(34,228,255,.08); border-color: rgba(34,228,255,.35); color: var(--cyan); }

.made { margin-top: 18px; border-top: 1px solid var(--stroke); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.made-head { display: flex; justify-content: space-between; align-items: center; }
.made-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.made-row code { font: 12px Consolas, monospace; color: var(--cyan); background: #0b0c18; border: 1px solid #2a2d58; border-radius: 9px; padding: 9px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input { min-width: 240px; }
.chip { font: 600 12.5px var(--font); color: var(--text2); background: #14152c; border: 1px solid #2a2d58; border-radius: 99px; padding: 7px 14px; cursor: pointer; min-height: 34px; transition: all .15s; }
.chip:hover { color: #fff; border-color: var(--violet); }
.chip.on { color: #fff; background: rgba(139,92,246,.22); border-color: var(--violet); box-shadow: 0 0 12px rgba(139,92,246,.35); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text3); padding: 10px 12px; border-bottom: 1px solid var(--stroke); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid rgba(30,32,64,.7); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(139,92,246,.07); }
td.empty { text-align: center; color: var(--text3); padding: 34px; }
.r { text-align: right; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { display: flex; gap: 6px; margin: 0; }
.actions select { min-height: 34px; padding: 5px 8px; font-size: 12.5px; border-radius: 9px; }
.inline-rename input { background: transparent; border-color: transparent; padding: 4px 6px; min-height: 0; font-weight: 600; width: 170px; }
.inline-rename input:hover { border-color: #2a2d58; }
small { font-size: 11.5px; }
code.hw { font: 12px Consolas, monospace; color: var(--cyan); }
code.block { display: block; font: 13px Consolas, monospace; color: var(--cyan); background: #0b0c18; border: 1px solid #2a2d58; border-radius: 10px; padding: 12px; margin-bottom: 14px; word-break: break-all; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: rgba(59,255,161,.12); color: var(--green); }
.pill.warn { background: rgba(255,194,75,.12); color: var(--amber); }
.pill.bad { background: rgba(255,84,112,.14); color: #ff7a90; }
.pill.info { background: rgba(34,228,255,.12); color: #5cebff; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: rgba(14,15,30,.96); border: 1px solid rgba(139,92,246,.6); color: var(--text); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 0 30px rgba(139,92,246,.4); opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .3s; pointer-events: none; font-size: 14px; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .shell { padding: 16px; }
  .tabs-main { margin-left: 0; width: 100%; order: 3; }
  .filters input { min-width: 0; flex: 1; }
  .made-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
