:root {
  --background: #111;
  --cell: rgba(40, 40, 40, 1);
  --cell-border: rgba(255, 255, 255, 0.1);
  --title: rgba(255, 255, 255, 0.85);
  --text: rgba(255, 255, 255, 0.5);
  --strong-text: rgba(255, 255, 255, 0.8);
  --tint: #f09000;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
}

main {
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1, h2 {
  color: var(--title);
  font-family: ui-serif, Georgia, serif;
  font-weight: 800;
}

h1 { font-size: 1.8rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 1rem; text-align: left; }

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

.nav-email {
  font-size: 0.8rem;
  color: var(--text);
}

nav a {
  color: var(--title);
  text-decoration: none;
  font-weight: 700;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

footer a { color: rgba(255,255,255,0.35); }

/* Forms */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: 8px;
  color: var(--title);
  font-size: 1rem;
  font-family: var(--font);
  margin-bottom: 1rem;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder { color: var(--text); }
input[type="email"]:focus,
input[type="password"]:focus { outline: none; border-color: var(--tint); }

button {
  width: 100%;
  padding: 0.75rem;
  background: var(--tint);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { opacity: 0.9; }

.btn-danger {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  width: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-danger:hover { background: rgba(231,76,60,0.15); }

/* Cards */
.card {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.product-name {
  color: var(--title);
  font-weight: 600;
}

.card-body { padding: 0.75rem 1rem; }

.card-link {
  display: block;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--cell-border);
  color: var(--tint);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-link:hover { background: rgba(255,255,255,0.03); }

.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
}

.field .label {
  font-size: 0.85rem;
  color: var(--text);
}

.field code {
  font-size: 0.85rem;
  color: var(--strong-text);
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge.active { background: rgba(46,204,113,0.2); color: #2ecc71; }
.badge.expired { background: rgba(231,76,60,0.2); color: #e74c3c; }
.badge.permanent { background: rgba(52,152,219,0.2); color: #3498db; }

.hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

strong { color: var(--strong-text); }

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--tint);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

.activation form {
  padding: 0 1rem 0.75rem;
  text-align: right;
}
