:root {
  --bg: #000;
  --ink: #d9e7ff;
  --muted: #8aa0b7;
  --accent: #3be3ff;
  --accentgaq: #00ff00;
  --accentmira:#ffffff;
  --accent-2: #ff365f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .2px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, .03),
    rgba(255, 255, 255, .03) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 18px 0 8px;
  background: radial-gradient(800px 400px at 20% -10%, #0f1923 0%, #000 55%) no-repeat;
  padding: 20px;
  border-radius: var(--radius);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent-2), var(--accent) 45%, #1e2935 60%, var(--accent-2));
  box-shadow: inset 0 0 0 3px #0b1117, 0 0 40px rgba(59, 227, 255, .25);
  position: relative;
  isolation: isolate;
}

.logo::after {
  content: "K";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #00131a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .15);
}

h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: .8px;
}

.sub { color: var(--muted); margin-top: 4px; }

section { margin: 28px 0; }
section h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glitch::before { transform: translate(1px, 0); color: var(--accent); }
.glitch::after { transform: translate(-1px, 0); color: var(--accent-2); }

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-top: 6px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  background: rgba(59, 227, 255, 0.05);
  cursor: pointer;
  font-family: inherit;
}

.btn-mira{
    display:inline-block;
    padding:6px 12px;
    border:1px solid var(--accentmira);
    border-radius:6px;
    color:var(--accentmira);
    text-decoration:none;
    font-weight:600;
    transition:all .2s ease;
    background:rgba(00,255,00,.05);
    line-height:1;
}

.btn:hover, .btn:focus {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent);
  outline: none;
}

.btn-mira:hover, .btn-mira:focus {
    background: var(--accentmira);
    color: #000;
    box-shadow: 0 0 12px var(--accentmira);
}

footer {
  margin: 26px 0 60px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: radial-gradient(800px 400px at 20% 120%, #0f1923 0%, #000 55%) no-repeat;
  padding: 20px;
  border-radius: var(--radius);
}

.sig { opacity: .8; }

@media (max-width: 600px) {
  .logo { width: 48px; height: 48px; }
  footer { flex-direction: column; align-items: flex-start; }
}

input[type="text"],
textarea {
  width: 100%;
  background: #000;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea { resize: vertical; min-height: 120px; }

input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.75; }

input[type="text"]:hover, textarea:hover { border-color: rgba(59, 227, 255, 0.35); }

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(59, 227, 255, 0.35);
  background: radial-gradient(600px 200px at 10% -20%, #0b1620 0%, #000 60%);
}

input:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }

input[type="file"],
select,
input[type="range"]{
  width: 100%;
  background: #000;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.muted { color: var(--muted); font-size: 12px; }

.mono {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab.active {
  color: #000;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(59, 227, 255, 0.5);
  border-color: rgba(59, 227, 255, 0.5);
}

.tabpane { display: none; }
.tabpane.active { display: block; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pane {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: radial-gradient(600px 260px at 20% -20%, #0b1620 0%, #000 60%);
}

.pane h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.btn-wide { width: 100%; }

canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: #000;
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  margin-top: 14px;
}
.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 120ms linear;
}

.download { margin-top: 10px; }

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.kpi {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}