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

body {
  background: #07091A;
  color: #F1F5F9;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(90deg, #60A5FA, #E879F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.card {
  background: #0D1535;
  border: 1px solid #1E3A5F;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ── Inputs ── */
input, select {
  width: 100%;
  background: #07091A;
  border: 1px solid #1E3A5F;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, select:focus { border-color: #4F6EF5; }
input::placeholder { color: #475569; }
select { cursor: pointer; }

label {
  display: block;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Buttons ── */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  transition: opacity 0.2s, background-color 0.2s;
}
button:disabled { cursor: not-allowed; opacity: 0.5; }

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: white;
}

.btn-primary { background: linear-gradient(90deg, #4F6EF5, #D946EF); }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }

.btn-paypal { background: #003087; }
.btn-paypal:hover:not(:disabled) { background: #002070; }

.btn-ghost {
  background: none;
  color: #64748B;
  font-size: 0.875rem;
  padding: 0.5rem;
  display: block;
  width: 100%;
  text-align: center;
}
.btn-ghost:hover { color: #94A3B8; }

.btn-sm {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: white;
}

/* ── Alerts ── */
.alert {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.alert-error   { background: rgba(127,29,29,.4); border: 1px solid #991B1B; color: #FCA5A5; }
.alert-success { background: rgba(6,78,59,.4);   border: 1px solid #065F46; color: #6EE7B7; }

/* ── Layout ── */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.container { width: 100%; max-width: 28rem; }
.page      { padding: 1.5rem; max-width: 72rem; margin: 0 auto; }

/* ── Logo ── */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4F6EF5, #D946EF);
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
.logo-sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F6EF5, #D946EF);
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Info box ── */
.info-box {
  background: #07091A;
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
}
.info-row { display: flex; justify-content: space-between; padding: 0.2rem 0; }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: #0D1535;
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: #94A3B8;
  transition: all 0.15s;
  text-align: center;
}
.tab.active { background: linear-gradient(90deg, #4F6EF5, #D946EF); color: white; }
.tab:hover:not(.active) { color: white; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: #0D1535;
  border: 1px solid #1E3A5F;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.stat-label { font-size: 0.7rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

/* ── Table ── */
.table-wrap { background: #0D1535; border: 1px solid #1E3A5F; border-radius: 1rem; overflow-x: auto; }
table   { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th      { padding: 0.75rem 1rem; text-align: left; color: #94A3B8; font-weight: 500; border-bottom: 1px solid #1E3A5F; white-space: nowrap; }
td      { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(30,58,95,.5); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(30,58,95,.3); }

/* ── Badges ── */
.badge          { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; }
.badge-active   { background: #14532D; color: #86EFAC; }
.badge-trial    { background: #713F12; color: #FDE68A; }
.badge-blocked  { background: #7F1D1D; color: #FCA5A5; }

/* ── Header ── */
.header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }

/* ── Playlist items ── */
.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07091A;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 0.5rem; justify-content: flex-end; align-items: center; margin-top: 0.75rem; }
.btn-page {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: #0D1535;
  border: 1px solid #1E3A5F;
  color: #94A3B8;
  font-size: 0.75rem;
}
.btn-page:disabled { opacity: 0.4; }
.btn-page:hover:not(:disabled) { border-color: #4F6EF5; color: white; }

/* ── Filter row ── */
.filter-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.filter-row input  { flex: 1; }
.filter-row select { width: 10rem; flex-shrink: 0; }

/* ── Action buttons in table ── */
.action-btns { display: flex; gap: 0.25rem; flex-wrap: wrap; }

/* ── Utilities ── */
.hidden  { display: none !important; }
.ml-auto { margin-left: auto; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mt-4    { margin-top: 1rem; }
.space-y > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-muted  { color: #64748B; }
.text-secondary { color: #94A3B8; }
.text-blue   { color: #60A5FA; }
.text-green  { color: #34D399; }
.mono        { font-family: monospace; }
.bold        { font-weight: 700; }
