:root {
  --font-display: 'Unbounded', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --accent: #E08A45;
  --bg-main: #0A0A0A;
  --bg-elev: #141414;
  --bg-elev-2: #1A1A1A;
  --text-base: #F3F1EC;
  --text-dim: #B8B5AE;
  --text-faint: #7A7773;
  --stroke: rgba(255, 255, 255, 0.08);
  --good: #4CAF50;
  --warn: #FF9800;
  --error: #F44336;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 20px;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-base);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}

.app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

.app .header {
  flex-shrink: 0;
  background: transparent;
  border-bottom: none;
  padding: 20px 4px 20px 4px;
  margin: 0 0 20px 0;
}

.app .scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-top: 12px;
  scroll-behavior: smooth;
}

.app .tabbar {
  order: 1;
  flex-shrink: 0;
}

.scroll-area::-webkit-scrollbar {
  width: 6px;
}

.scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

@supports (scrollbar-width: thin) {
  .scroll-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-subtitle {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 6px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-base);
}

.tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  padding: 8px;
  flex-shrink: 0;
  margin: 8px 12px 16px 12px;
}

.tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-faint);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 22px;
  min-width: 44px;
  height: 44px;
}

.tab svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  flex-shrink: 0;
}

.tab span {
  font-weight: 600;
  font-size: 13px;
  display: none;
  white-space: nowrap;
}

.tab.active {
  background: #F3F1EC;
  color: #0A0A0A;
  padding: 10px 18px;
}

.tab.active span {
  display: inline;
}

.section-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 24px 0 12px 2px;
  color: var(--text-base);
}

.z1 {
  z-index: 1;
}

.z10 {
  z-index: 10;
}

.opacity-faint {
  opacity: 0.6;
}

.opacity-dim {
  opacity: 0.75;
}
