:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-light: #1f2b47;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.3);
  --green: #00c9a7;
  --green-glow: rgba(0, 201, 167, 0.2);
  --orange: #ff8c42;
  --gold: #f5c518;
  --text: #eef0f2;
  --text-muted: #8892a4;
  --text-dim: #5a6377;
  --border: #2a3550;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
}

.card-accent {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(233, 69, 96, 0.4);
  padding: 16px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 52px;
  transition: 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #e94560, #c73e54);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-success {
  background: linear-gradient(135deg, #00c9a7, #00a88a);
  color: #fff;
  box-shadow: 0 4px 15px var(--green-glow);
}

.btn-warning {
  background: linear-gradient(135deg, #ff8c42, #e07030);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-approved {
  background: var(--green);
  color: #fff;
}

.badge-pending {
  background: var(--gold);
  color: #1a1a2e;
}

.badge-rejected {
  background: var(--orange);
  color: #fff;
}

.badge-current {
  background: var(--accent);
  color: #fff;
}

.badge-locked {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* Progress bar */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transition: width 0.8s ease;
}

/* Page header */
.page-header {
  padding: 20px 0 16px 0;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom)) 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
}

.nav-icon {
  font-size: 22px;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }

.page-content {
  padding: 20px 16px;
  padding-bottom: 80px;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
