:root {
  --bg-0: #06090f;
  --bg-1: #0c1220;
  --card: rgba(20, 24, 36, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --text: #eef3ff;
  --sub: #b4c0dd;
  --cyan: #28d7ff;
  --violet: #b86bff;
  --danger: #ff6673;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(40, 215, 255, 0.24), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(184, 107, 255, 0.2), transparent 60%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.header h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 34px);
}

.header p {
  margin: 0;
  color: var(--sub);
}

.toolbar {
  margin: 20px 0;
}

button {
  border: 1px solid rgba(40, 215, 255, 0.45);
  border-radius: 10px;
  padding: 9px 14px;
  color: #f8fbff;
  background: linear-gradient(120deg, rgba(40, 215, 255, 0.22), rgba(184, 107, 255, 0.2));
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

button:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 107, 255, 0.7);
  box-shadow: 0 12px 24px rgba(40, 215, 255, 0.15), 0 8px 20px rgba(184, 107, 255, 0.16);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.plan-card,
.chart-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.plan-card::before,
.chart-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(40, 215, 255, 0.65), rgba(184, 107, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.45;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.plan-title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.remove-btn {
  color: var(--danger);
  border-color: rgba(255, 102, 115, 0.45);
  background: rgba(255, 102, 115, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 12px;
  color: var(--sub);
}

input,
select {
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  background: rgba(10, 14, 24, 0.7);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

input:focus,
select:focus {
  border-color: rgba(40, 215, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(40, 215, 255, 0.15);
}

.stats {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.money-value {
  font-family: "SF Mono", "Roboto Mono", "Consolas", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: linear-gradient(120deg, #f6fbff, #9ad4ff 40%, #d1a5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(40, 215, 255, 0.32), 0 0 20px rgba(184, 107, 255, 0.26);
  transition: text-shadow 0.24s ease;
}

.money-value.pulse {
  animation: pulse-glow 1.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(40, 215, 255, 0.28), 0 0 18px rgba(184, 107, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 16px rgba(40, 215, 255, 0.5), 0 0 30px rgba(184, 107, 255, 0.36);
  }
}

.muted {
  color: var(--sub);
  font-size: 12px;
}

.chart-panel {
  margin-top: 20px;
}

.chart-panel h2 {
  margin-top: 2px;
}

@media (max-width: 768px) {
  .container {
    padding: 14px;
  }

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