/* ── LAYOUT ── */
body { line-height: 1.6; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.header {
  padding: 40px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }

.new-plan-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.new-plan-btn:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-glow); }
.new-plan-btn svg { width: 14px; height: 14px; }

/* ── PLANS HEADER ── */
.plans-header { margin-bottom: 24px; animation: fadeUp 0.5s ease both; }

.plans-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.plans-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── PLANS LIST ── */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  animation: fadeUp 0.5s ease both;
}
.plan-card:hover { border-color: var(--accent); transform: translateY(-1px); }

.plan-card-info { flex: 1; min-width: 0; }

.plan-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.plan-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.plan-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.plan-card-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.plan-card-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.plan-card-delete:hover { color: var(--red); background: rgba(200,112,112,0.1); }
.plan-card-delete svg { width: 16px; height: 16px; display: block; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  animation: fadeUp 0.5s ease both;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.new-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.new-plan-cta:hover { opacity: 0.85; }
.new-plan-cta svg { width: 14px; height: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .header { padding: 28px 0 22px; }
  .plan-card-meta { gap: 4px; }
}
