/* subscription/frontend/src/styles.css */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --success: #3fb950;
  --featured: #238636;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: Noto Sans SC, -apple-system, sans-serif;
  line-height: 1.6;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items:  center;
  gap: .5rem;
  font-family: JetBrains Mono, monospace;
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

.nav {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.user-info {
  color: var(--text-muted);
  font-size: .9rem;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: .5rem 1rem;
  transition: background .2s, color .2s;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
}

.btn-ghost {
  color: var(--accent);
  background: none;
}

.btn-ghost:hover {
  background: #58a6ff1a;
}

.btn-primary {
  background: var(--featured);
  color: #fff;
  width: 100%;
  margin-top: 1rem;
  padding: .75rem 1.5rem;
}

.btn-primary:hover {
  background: #2ea043;
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
  width: 100%;
  margin-top: 1rem;
  padding: .75rem 1.5rem;
}

.btn-secondary:hover {
  background: #484f58;
}

.hidden {
  display: none !important;
}

.main {
  padding: 3rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: .5rem;
  font-size: 2rem;
  font-weight: 700;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  border-radius: 12px;
  padding: 1.5rem;
}

.card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #58a6ff33;
}

.badge {
  position: absolute;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  padding: .2rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  top: -10px;
  right: 1rem;
}

.card-header {
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: .5rem;
  font-size: 1.25rem;
}

.price {
  font-family: JetBrains Mono, monospace;
}

.price .amount {
  font-size: 1.75rem;
  font-weight: 600;
}

.price .unit {
  color: var(--text-muted);
  font-size: .9rem;
}

.save {
  display: inline-block;
  color: var(--success);
  margin-top: .25rem;
  font-size: .85rem;
}

.features {
  list-style: none;
  color: var(--text-muted);
  font-size: .95rem;
}

.features li {
  padding: .35rem 0;
}

.subscription-status {
  margin-top: 2rem;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.status-card h3 {
  margin-bottom: 1rem;
}

.status-card .active {
  color: var(--success);
}

.status-card .inactive {
  color: var(--text-muted);
}

.footer {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: .9rem;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.5rem;
  }

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