:root {
  --bg0: #0a0c10;
  --bg1: #12151c;
  --card: rgba(24, 28, 38, 0.72);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #8b93a7;
  --accent: #5eead4;
  --accent2: #a78bfa;
  --danger: #fb7185;
  --ok: #4ade80;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem 0.75rem;
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.75);
}

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

/* PNG şeffaf alfa ile gelirse arka plan görünür; beyaz zeminli logoda koyu UI ile uyum için hafif filtre */
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tag {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tabs button {
  font-family: var(--font);
  border: 1px solid var(--stroke);
  background: var(--bg1);
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tabs button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.tabs button.active {
  color: var(--bg0);
  background: linear-gradient(120deg, var(--accent), #34d399);
  border-color: transparent;
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 4rem;
}

.panel {
  display: none;
  animation: in 0.35s ease both;
}

.panel.active {
  display: block;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p.hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

input,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

button.primary,
button.ghost,
button.danger {
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

button.primary {
  background: linear-gradient(120deg, var(--accent), #2dd4bf);
  color: #042f2e;
  font-weight: 600;
}

button.ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}

button.danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

button.sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}

tr:last-child td {
  border-bottom: none;
}

td.num {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge.on {
  background: rgba(74, 222, 128, 0.15);
  color: var(--ok);
}

.badge.off {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
}

.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  background: rgba(10, 12, 16, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  z-index: 20;
}

.foot code {
  font-family: var(--mono);
  color: var(--accent2);
}

.sep {
  opacity: 0.4;
}

.toast {
  position: fixed;
  bottom: 3rem;
  right: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
  z-index: 30;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.toast.err {
  border-color: rgba(251, 113, 133, 0.4);
  color: #fecdd3;
}

.toast.ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}
