:root {
  --red: #E2303F;
  --red-dark: #B71C2B;
  --gold: #D4A017;
  --gold-dark: #8A6008;
  --bg: #F7F5F5;
  --surface: #FFFFFF;
  --outline: #EAE3E3;
  --text: #201A1B;
  --text-muted: #8C8183;
  --header-top: #32181A;
  --header-deep: #17100F;
  --success: #2FA06A;
  --warning: #C07C14;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--red); text-decoration: none; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--header-top), var(--header-deep));
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 36px 28px;
}

.login-card h1 {
  color: #fff;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0 0 4px;
  text-align: center;
}

.login-card p.sub {
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin: 0 0 24px;
  font-size: 13px;
}

.field { margin-bottom: 16px; }
.field label { display: block; color: rgba(255,255,255,0.8); font-size: 12.5px; margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}
.field input::placeholder { color: rgba(255,255,255,0.35); }

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.btn:hover { opacity: 0.92; }

.error-msg {
  background: rgba(226,48,63,0.18);
  border: 1px solid rgba(226,48,63,0.4);
  color: #ffb3bb;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

/* --- Dashboard shell --- */
.app-header {
  background: linear-gradient(180deg, var(--header-top), var(--header-deep));
  color: #fff;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header .brand { font-weight: 800; letter-spacing: 1px; font-size: 15px; }
.app-header .brand .gold { color: var(--gold); }
.app-header nav a { color: rgba(255,255,255,0.75); margin-right: 18px; font-size: 13.5px; font-weight: 600; }
.app-header nav a.active { color: #fff; }
.app-header .logout { color: rgba(255,255,255,0.6); font-size: 12.5px; }

.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

h2.section-title { font-size: 17px; font-weight: 700; margin: 0 0 14px; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
table.data-table th { text-align: left; padding: 12px 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--outline); }
table.data-table td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--outline); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; }
.badge-pending { background: rgba(192,124,20,0.14); color: var(--warning); }
.badge-approved { background: rgba(47,160,106,0.14); color: var(--success); }
.badge-rejected { background: rgba(226,48,63,0.14); color: var(--red); }
.badge-suspended { background: rgba(140,129,131,0.14); color: var(--text-muted); }

.btn-sm { padding: 6px 14px; border-radius: 30px; font-size: 11.5px; font-weight: 700; border: none; cursor: pointer; margin-right: 6px; }
.btn-approve { background: var(--success); color: #fff; }
.btn-reject { background: var(--red); color: #fff; }

.empty-state { padding: 40px; text-align: center; color: var(--text-muted); }
