* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  min-height: 100vh;
}

header {
  background: #1a1d27;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d3148;
}

header h1 { font-size: 1.4rem; color: #7c6af7; }

#reseller-info { font-size: 0.85rem; color: #94a3b8; }

nav {
  background: #1a1d27;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #2d3148;
}

nav button {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav button:hover, nav button.active {
  color: #7c6af7;
  border-bottom-color: #7c6af7;
}

section {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hidden { display: none !important; }

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

input[type="text"], input[type="email"], select {
  background: #1a1d27;
  border: 1px solid #2d3148;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
}

input:focus, select:focus {
  outline: none;
  border-color: #7c6af7;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: #1a1d27;
  padding: 10px 12px;
  text-align: left;
  color: #94a3b8;
  font-weight: 500;
  border-bottom: 1px solid #2d3148;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e2235;
}

tr:hover td { background: #1a1d27; }

button {
  background: #7c6af7;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

button:hover { background: #6a58e0; }

button.danger { background: #e53e3e; }
button.danger:hover { background: #c53030; }
button.secondary { background: #2d3148; }
button.secondary:hover { background: #3d4168; }

h2 { margin-bottom: 20px; font-size: 1.1rem; color: #94a3b8; }

form { max-width: 600px; }

fieldset {
  border: 1px solid #2d3148;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

legend {
  color: #7c6af7;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 8px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

#btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 8px;
}

.error {
  background: #2d1515;
  border: 1px solid #e53e3e;
  color: #fc8181;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active { background: #1a3a2a; color: #48bb78; }
.badge-inactive { background: #2d1515; color: #fc8181; }
.badge-trial { background: #1a2a3a; color: #63b3ed; }
