* {
  box-sizing: border-box;
}

:root {
  --primary: #2157ff;
  --primary-dark: #123ed1;
  --dark: #0f172a;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #f59e0b;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 22px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn.red {
  background: var(--red);
}

.btn.green {
  background: var(--green);
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(33,87,255,.18), transparent 35%),
    linear-gradient(135deg, #ffffff, #eef4ff);
  padding: 70px 22px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: 54px;
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -2px;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.hero-card {
  background: white;
  padding: 26px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  border: 1px solid var(--border);
}

.hero-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero-list {
  display: grid;
  gap: 12px;
}

.hero-list div {
  background: #f8fafc;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
}

.section-title {
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.form-page {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
}

.form-box {
  width: 100%;
  max-width: 560px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15,23,42,.10);
}

.form-box h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.form-box p {
  color: var(--muted);
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 800;
  margin: 14px 0 7px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  background: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

.alert {
  padding: 13px 15px;
  border-radius: 12px;
  margin: 16px 0;
  font-weight: 700;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: white;
  padding: 22px;
}

.sidebar .logo {
  color: white;
  margin-bottom: 26px;
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255,255,255,.10);
  color: white;
}

.main {
  padding: 28px;
}

.top-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.top-title h1 {
  margin: 0;
  font-size: 32px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.table-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: #f8fafc;
  font-size: 13px;
  text-transform: uppercase;
  color: #475569;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.active {
  background: #dcfce7;
  color: #166534;
}

.badge.suspended {
  background: #fee2e2;
  color: #991b1b;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 26px 22px;
  text-align: center;
}

@media (max-width: 850px) {
  .hero-inner,
  .grid.three,
  .grid.two,
  .dashboard-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    min-height: auto;
  }
}