:root {
  --bg-primary: #0A0A0B;
  --bg-secondary: #141416;
  --bg-tertiary: #1C1C1F;
  --bg-card: #18181B;
  --accent-primary: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --accent-secondary: #F59E0B;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-active: rgba(16, 185, 129, 0.3);
  --danger: #EF4444;
  --page-glow: rgba(16, 185, 129, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, var(--page-glow) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

button {
  cursor: pointer;
}

.app-container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 70%, transparent 100%);
  padding: 16px 20px 24px;
}

.header-top,
.header-actions {
  display: flex;
  align-items: center;
}

.header-top {
  justify-content: space-between;
  margin-bottom: 16px;
}

.header-actions {
  gap: 8px;
}

.back-btn,
.edit-btn,
.filter-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.back-btn:active,
.edit-btn:active,
.filter-btn:active {
  transform: scale(0.95);
  background: var(--bg-secondary);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}