:root{
  --bg1:#f7f9ff;
  --bg2:#e9f1ff;
  --glass: rgba(255,255,255,.72);
  --glass2: rgba(255,255,255,.86);
  --stroke: rgba(15, 23, 42, .10);
  --text: rgba(15, 23, 42, .92);
  --muted: rgba(15, 23, 42, .62);
  --shadow: rgba(2, 6, 23, .10);
}

html, body{
  height: 100%;
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 540px at 10% 10%, rgba(255, 204, 0, .25), transparent 60%),
    radial-gradient(800px 520px at 90% 0%, rgba(59, 130, 246, .18), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
}

a{ color: inherit; }

.app-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid var(--stroke);
}

.navbar{
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.brand-logo{ height: 34px; width: auto; }
.brand-title{ font-weight: 700; letter-spacing: .2px; }

.nav-link{
  color: rgba(15,23,42,.80) !important;
}
.nav-link:hover{
  color: rgba(15,23,42,.95) !important;
}

.nav-divider{ width:1px; height: 22px; background: var(--stroke); margin: 0 .25rem; }

.nav-user{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
}

.dot{ width:8px; height:8px; border-radius:50%; background: #32d296; box-shadow: 0 0 0 6px rgba(50,210,150,.12); }

.hero{
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.55));
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px var(--shadow);
}

.hero-title{ font-weight: 800; letter-spacing: -.4px; margin-bottom: .35rem; }
.hero-subtitle{ color: var(--muted); margin-bottom: 0; }

.glass-card{
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.58));
  border-radius: 22px;
  box-shadow: 0 10px 30px var(--shadow);
}

.tile{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.58));
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 110px;
}

.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
}

.tile-disabled{ opacity: .75; cursor: not-allowed; }
.tile-disabled:hover{ transform: none; }

.tile-icon{
  width: 54px;
  height: 54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  font-size: 26px;
}

.tile-title{ font-weight: 700; font-size: 1.05rem; }
.tile-text{ color: var(--muted); font-size: .92rem; }
.tile-arrow{ margin-left: auto; color: rgba(255,255,255,.65); font-size: 1.25rem; }

.footer-glass{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.5rem .75rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
}

.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: .5rem 1rem;
}

.kv .k{ color: var(--muted); font-size: .9rem; }
.kv .v{ font-weight: 600; }

.code-wrap{ word-break: break-all; white-space: normal; }

.json-block{
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}

.upload-drop{
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

.btn-primary{
  background: linear-gradient(135deg, rgba(255,204,0,.95), rgba(255,153,0,.95));
  border: none;
  color: #1a1400;
  font-weight: 800;
}

.btn-primary:hover{ filter: brightness(1.03); }

.btn-outline-light{
  border-color: rgba(255,255,255,.24);
}

@media (max-width: 576px){
  .kv{ grid-template-columns: 1fr; }
}
