﻿:root {
  --bg: #05070d;
  --bg-secondary: #0b1020;
  --card: rgba(14, 20, 36, 0.8);
  --border: rgba(138, 92, 255, 0.28);
  --text: #e8ebff;
  --muted: #9ba4c3;
  --primary: #5c7cff;
  --accent: #9a4dff;
  --neon: #27e4ff;
  --success: #3bff95;
  --danger: #ff677d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at top right, #1e1a44 0%, var(--bg) 42%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(39, 228, 255, 0.16) 0%, rgba(39, 228, 255, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.03em;
}

.header p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.tab-button {
  border: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.7);
  color: var(--muted);
  border-radius: 14px;
  padding: 0.85rem 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(92, 124, 255, 0.3), rgba(154, 77, 255, 0.26));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(154, 77, 255, 0.4), 0 10px 30px rgba(28, 36, 74, 0.5);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.tab-content.active {
  display: block;
  animation: fadeSlide 0.32s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(3, 6, 13, 0.5);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.dynamic-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 140px 38px;
  gap: 0.55rem;
}

.row input,
label input,
label textarea,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(140, 149, 184, 0.3);
  background: rgba(8, 13, 25, 0.8);
  color: var(--text);
  padding: 0.78rem 0.85rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

label input:focus,
label textarea:focus,
.row input:focus,
textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(39, 228, 255, 0.13);
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

label input,
label textarea {
  margin-top: 0.35rem;
}

label textarea {
  min-height: 92px;
  resize: vertical;
}

.field-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
  grid-column: 1 / -1;
}

button {
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.primary,
.secondary {
  margin-top: 0.6rem;
  margin-right: 0.55rem;
  padding: 0.68rem 1rem;
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.secondary {
  background: rgba(120, 130, 170, 0.18);
  color: var(--text);
  border: 1px solid rgba(140, 149, 184, 0.3);
}

.delete {
  background: rgba(255, 103, 125, 0.18);
  color: #ffc8d1;
}

textarea[readonly] {
  margin-top: 0.9rem;
  min-height: 130px;
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.copy {
  background: rgba(39, 228, 255, 0.17);
  color: #b8f7ff;
  padding: 0.62rem 0.95rem;
}

.copy-state {
  color: var(--success);
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.error {
  color: var(--danger);
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
  margin-top: auto;
}

@media (max-width: 900px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

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

  .primary,
  .secondary {
    width: 100%;
    margin-right: 0;
  }
}
