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

:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --border: #2e2e2e;
  --text: #e8e8e8;
  --text-muted: #888;
  --orange: #ff6b1a;
  --orange-dark: #cc5200;
  --green: #2ecc71;
  --red: #e74c3c;
  --yellow: #f1c40f;
  --blue: #5865F2;
  --radius: 8px;
}

body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.container-sm { max-width: 600px; }

/* Navbar */
.navbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 700; font-size: 18px; color: var(--orange); }
.nav-brand a { color: var(--orange); }
.nav-user { display: flex; align-items: center; gap: 12px; }

/* Cards */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: opacity .15s; text-decoration: none !important; }
.btn:hover { opacity: .85; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-discord { background: var(--blue); color: #fff; padding: 14px 28px; font-size: 16px; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* Avatars */
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 20px; }
.page-header h1 { font-size: 24px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Sections */
.section { margin-bottom: 40px; }
.section h2 { font-size: 18px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Card list items */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.list-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-item-left { flex: 1; }
.list-item-title { font-weight: 600; margin-bottom: 4px; }
.list-item-sub { font-size: 13px; color: var(--text-muted); }
.list-item-right { flex-shrink: 0; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-pending  { background: rgba(241,196,15,.15); color: var(--yellow); }
.badge-accepted { background: rgba(46,204,113,.15); color: var(--green); }
.badge-denied   { background: rgba(231,76,60,.15); color: var(--red); }
.badge-ban      { background: rgba(231,76,60,.15); color: var(--red); }
.badge-kick     { background: rgba(255,107,26,.15); color: var(--orange); }
.badge-mute     { background: rgba(255,170,0,.15); color: #ffaa00; }
.badge-vcmute   { background: rgba(255,200,68,.15); color: #ffc844; }
.badge-warn     { background: rgba(241,196,15,.15); color: var(--yellow); }
.badge-unban    { background: rgba(46,204,113,.15); color: var(--green); }
.badge-unmute   { background: rgba(46,204,113,.15); color: var(--green); }
.badge-default  { background: rgba(255,255,255,.1); color: var(--text-muted); }

/* Points bar */
.points-bar-wrap { margin: 8px 0 4px; }
.points-bar { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.points-bar-fill { height: 100%; border-radius: 4px; transition: width .4s; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-control { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 10px 14px; font-size: 14px; font-family: inherit; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--orange); }
textarea.form-control { resize: vertical; }
.char-count { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* Banners */
.banner { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.banner-error   { background: rgba(231,76,60,.15); border: 1px solid rgba(231,76,60,.3); color: #e74c3c; }
.banner-success { background: rgba(46,204,113,.15); border: 1px solid rgba(46,204,113,.3); color: #2ecc71; }

/* Info box */
.info-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 20px; font-size: 14px; }
.info-box ol { margin: 10px 0 10px 20px; }
.info-box li { margin-bottom: 6px; }
.info-box p { margin-top: 10px; color: var(--text-muted); }

/* Empty/loading states */
.empty { text-align: center; color: var(--text-muted); padding: 32px; font-size: 14px; }
.loading { text-align: center; color: var(--text-muted); padding: 24px; }

/* Responsive */
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
