:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --muted: #64748b;
  --light: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.login-panel {
  background: var(--dark);
  color: white;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-light);
}

.login-copy h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 720px;
}

.login-copy p {
  max-width: 680px;
  color: #cbd5e1;
  line-height: 1.7;
}

.login-card {
  background: white;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.demo-accounts {
  background: var(--light);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-sub {
  color: #94a3b8;
  font-size: 11px;
  margin-top: 2px;
}

.nav {
  padding: 14px 12px;
  display: grid;
  gap: 4px;
}

.nav-title {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 8px 4px;
}

.nav-item {
  border: 0;
  color: #94a3b8;
  background: transparent;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(20, 184, 166, 0.14);
}

.main {
  margin-left: 248px;
  min-height: 100vh;
  width: calc(100% - 248px);
}

.topbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 28px;
}

.grid-2,
.grid-3,
.stats-grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.card,
.stat-card,
.campaign-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-header {
  min-height: 58px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-body {
  padding: 18px;
}

.card-title,
.section-title {
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.stat-card {
  padding: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.stat-note {
  color: var(--success);
  font-size: 12px;
  margin-top: 4px;
}

.btn {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-outline {
  color: var(--primary);
  background: white;
  border-color: var(--primary);
}

.btn-light {
  color: var(--dark2);
  background: var(--light);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--dark2);
  font-size: 12px;
  font-weight: 700;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  outline: none;
}

.input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

textarea.input {
  resize: vertical;
  min-height: 88px;
}

.campaign-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.campaign-title {
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge-gray {
  background: #f1f5f9;
  color: #475569;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #eef2f7;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

th {
  background: var(--light);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--dark);
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  z-index: 20;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  max-width: 360px;
}

.empty {
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  background: white;
}

.wallet-card {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: white;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 18px;
}

.wallet-value {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 32px;
    min-height: 320px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .app {
    display: block;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .stats-grid,
  .grid-2,
  .grid-3,
  .form-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  .content {
    padding: 16px;
  }
}
