:root{
  --bg: #0b0b0b;
  --card: #1f1f1f;
  --border: #2a2a2a;
  --neon: #00ffd5;
  --text: #eaeaea;
}

*{
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.app{
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

header{
  text-align: center;
  margin-bottom: 20px;
}

header h1{
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon);
}

header p{
  color: #aaa;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

input{
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  background: #0f0f0f;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  outline: none;
}

button{
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  cursor: pointer;
  box-shadow: 1px 4px 12px var(--text);
}

button.neon{
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 15px var(--neon);
}

button.outline{
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  box-shadow: none;
}

.keys{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.key{
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-left: 4px solid var(--neon);
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.key-active{
  border-left-color: var(--neon);
}

.key-inactive{
  border-left-color: #ff4d4d;
  opacity: 0.7;
}

.key-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.key code{
  font-size: 0.85rem;
  color: #ccc;
  word-break: break-all;
}

.status{
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 20px;
}

.status.active{
  background: #00ffd533;
  color: var(--neon);
}

.status.inactive{
  background: #ff4d4d33;
  color: ##ff4d4d;
}

.key-actions{
  display: flex;
  gap: 8px;
}

.key-actions button{
  flex: 1;
  padding: 8px;
  font-size: 0.8rem;
}

.key-actions .danger{
  background: #ff4d4d;
  color: #000;
}

.link{
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--neon);
  text-decoration: none;
}

pre{
  background: #0f0f0f;
  padding: 12px;
  overflow-x: auto;
  border-radius: 6px;
}

.hidden{
  display: none;
}

@media(max-width: 600px){
  header h1{
    font-size: 1.4rem;
  }
  
  .card{
    padding: 15px;
  }
}

@media(min-width: 1200px){
  .app{
    padding: 40px;
  }
}