@font-face {
  font-family: 'ProggyClean';
  src: local('ProggyClean'), local('Proggy Clean'), local('ProggySans'), local('Proggy Sans');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #080810;
  font-family: 'ProggyClean', 'ProggyCleanTT', 'ProggySans', 'Consolas', 'Courier New', monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  font-smooth: never;
  text-rendering: optimizeSpeed;
  color: #e0d8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

/* ---- top bar ---- */
.topbar {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #cc44ff, #a855f7, #dd66ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-user {
  font-size: 0.82rem;
  color: rgba(200,185,220,0.55);
}

.topbar-user span {
  color: #c4a8f0;
}

/* ---- main grid ---- */
.grid {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---- card ---- */
.card {
  background: rgba(12, 9, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(140,40,220,0.06);
}

.card.full-width {
  grid-column: 1 / -1;
}

.card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168,85,247,0.7);
  margin-bottom: 16px;
}

/* ---- discord box ---- */
.discord-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: 10px;
  padding: 14px 16px;
}

.discord-pfp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(88,101,242,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.discord-pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.discord-pfp-placeholder svg {
  width: 22px;
  height: 22px;
  fill: rgba(88,101,242,0.7);
}

.discord-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discord-name {
  font-size: 0.88rem;
  color: #c4b8f0;
}

.discord-tag {
  font-size: 0.73rem;
  color: rgba(200,185,220,0.4);
}

.discord-unlinked {
  font-size: 0.82rem;
  color: rgba(200,185,220,0.4);
}

/* ---- subscription table ---- */
#sub-container {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.35) transparent;
}

#sub-container::-webkit-scrollbar {
  width: 4px;
}

#sub-container::-webkit-scrollbar-track {
  background: transparent;
}

#sub-container::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.35);
  border-radius: 2px;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
}

.sub-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(168,85,247,0.55);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sub-table td {
  font-size: 0.82rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #d0c4e8;
}

.sub-table th:nth-child(2) {
  text-align: center;
  padding-right: 28px;
}

.sub-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.sub-table td:last-child {
  text-align: right;
  color: rgba(200,185,220,0.5);
  font-size: 0.78rem;
}

.sub-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 28px;
}

.badge-active {
  background: rgba(163,230,53,0.1);
  color: #a3e635;
  border: 1px solid rgba(163,230,53,0.25);
}

.badge-expired {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.2);
}

.no-subs {
  font-size: 0.8rem;
  color: rgba(200,185,220,0.35);
  text-align: center;
  padding: 12px 0 4px;
}

/* ---- action buttons ---- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn:active { transform: scale(0.98); }

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-dark {
  background: #16112a;
  border: 1px solid rgba(168,85,247,0.18);
  color: #cfc0e8;
}

.btn-dark:hover {
  background: #201640;
  border-color: rgba(168,85,247,0.45);
  color: #ede0ff;
}

.btn-discord {
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.25);
  color: #a5aaff;
}

.btn-discord:hover {
  background: rgba(88,101,242,0.18);
  border-color: rgba(88,101,242,0.5);
  color: #c5c8ff;
}

.btn-danger {
  background: rgba(248,113,113,0.07);
  border: 1px solid rgba(248,113,113,0.18);
  color: rgba(248,113,113,0.8);
}

.btn-danger:hover {
  background: rgba(248,113,113,0.13);
  border-color: rgba(248,113,113,0.35);
  color: #f87171;
}
