:root {
  --bg0: #0b0f14;
  --bg1: #0d1117;
  --bg2: #0f1623;
  --fg: #e9eef7;
  --muted: #a5b0c0;
  --accent: #7c9cf8;
  --accent2: #c37cf8;
  --glow: #6ea8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(1200px 600px at 70% -10%, #1a2440 0%, transparent 60%),
    radial-gradient(900px 500px at -20% 120%, #2b153f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow: hidden;
}

.layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
}

.vignette {
  background: radial-gradient(1200px 1200px at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%);
}

.noise {
  mix-blend-mode: overlay;
  background:
    linear-gradient(transparent, transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0, rgba(255, 255, 255, .02) 2px, transparent 2px, transparent 4px);
}

.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52vmax;
  height: 52vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 156, 248, .28), transparent 55%);
  filter: blur(60px);
}

nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: rgba(6, 9, 13, .6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: #a7b9ff;
  text-shadow: 0 0 10px rgba(124, 156, 248, .45), 0 0 3px rgba(124, 156, 248, .55);
}

.content {
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.title {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  font-size: clamp(1rem, 6vw, 4rem);
  line-height: 1.05;
  background: linear-gradient(135deg, #faf1f1 0%, #fff6f4 30%, #fff4f4 60%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(252, 243, 241, 0.35), 0 0 18px rgba(255, 255, 255, 0.25);
  animation: shine 10s ease-in-out infinite;
}

.subtitle {
  margin-top: 0.2rem;
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: rgba(6, 9, 13, .6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

footer .label {
  font-size: .9rem;
  font-weight: 600;
  opacity: .8;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #a7b9ff;
  text-shadow: 0 0 10px rgba(124, 156, 248, .45), 0 0 3px rgba(124, 156, 248, .55);
}

footer .sep {
  opacity: .4;
}

@keyframes shine {
  0% { filter: drop-shadow(0 0 0 rgba(110, 168, 255, 0)); }
  50% { filter: drop-shadow(0 0 16px rgba(110, 168, 255, .35)); }
  100% { filter: drop-shadow(0 0 0 rgba(110, 168, 255, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  .title { animation: none; }
}

.nav {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: none;
  pointer-events: auto;
}

.nav-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.logo-btn {
  display: inline-grid;
  place-items: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.logo {
  width: 60px;
  height: auto;
  display: block;
}

.kanaly-btn {
  border: none;
  background: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.kanaly-btn:hover {
  color: var(--accent);
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 10px 12px;
  background: rgba(6, 9, 13, .7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
}

.menu[hidden] {
  display: none !important;
}

.menu a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  color: var(--accent);
}

.admin-card{
  position: relative;
  z-index: 10;
  display: grid;
  gap: 1rem;
  width: min(520px, 92vw);
  margin: 0 auto;
  grid-auto-flow: row;
  padding: 1.2rem 1.4rem;
  background: rgba(6, 9, 13, .65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.admin-form{display:grid;gap:.75rem}
.input{
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,18,.6);
  color: var(--fg);
}
.input:focus{outline:none;border-color: rgba(124,156,248,.6);box-shadow:0 0 0 3px rgba(124,156,248,.15)}
.btn{
  border: none;
  background: linear-gradient(135deg,#7c9cf8,#85e0ff);
  color: #0b0f14;
  font-weight: 800;
  padding: .7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.btn:hover{filter:brightness(1.1)}
.error{color:#ff8a8a}

.admin-card .title{
  font-size: clamp(1.4rem, 4.8vw, 2.4rem);
  text-shadow: 0 0 6px rgba(110,168,255,.25);
}

.admin-grid{
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 1rem;
  width: min(1100px, 94vw);
}
.card{
  background: rgba(6, 9, 13, .65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
