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

body {
  background: #333;
  font-family:
    -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
}

.app {
  position: relative;
  width: 100%;
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f9fafb;
}

.mypage {
  padding-bottom: 86px;
}

.profile-section {
  padding: 60px 28px 30px;
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f2f4 100%);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #cfcfcf;
  position: relative;
}

.profile-img::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.profile-img::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  border-radius: 999px 999px 0 0;
  background: #fff;
}

.profile-top h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.profile-top p {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.profile-desc {
  margin-top: 84px;
}

.profile-desc p {
  font-size: 15px;
  line-height: 1.6;
  color: #777;
  letter-spacing: -0.04em;
}

.profile-desc p strong {
  color: #111;
  font-weight: 600;
}

.profile-desc span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #999;
  letter-spacing: -0.04em;
}

.profile-desc a {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff0ea;
  color: #ff4b12;
  font-size: 13px;
  font-weight: 500;
}

.subscribe-section {
  padding: 26px 28px 24px;
  background: #f9fafb;
  border-top: 1px solid #eee;
}

.subscribe-section h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.press-list {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.press-item {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.press-logo {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
}

.press-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.red-dot {
  position: absolute;
  right: 3px;
  top: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff1e1e;
}

.plus-btn {
  width: 28px;
  height: 28px;
  margin-top: 10px;
  border: 1px solid #aaa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.plus-btn img {
  width: 15px;
  height: 15px;
}

.tab-section {
  padding: 24px 24px 0;
}

.tab-menu {
  display: flex;
  gap: 28px;
}

.tab-menu a {
  position: relative;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #999;
  letter-spacing: -0.04em;
}

.tab-menu a.active {
  color: #111;
}

.tab-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: #111;
}

.stats-area {
  margin-top: 48px;
}

.chart-card,
.bar-card {
  border-radius: 10px;
  background: #fff;
}

.chart-card {
  padding: 26px 22px 34px;
}

.chart-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.chart-desc {
  margin-top: 10px;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.highlight {
  color: #ff4b12;
  font-weight: 700;
}

.donut-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.donut-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#ff865f 0deg 166deg, #ffdfd5 166deg 360deg);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
}

.donut-chart span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.legend-list {
  margin-top: 38px;
  padding: 0 30px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-row + .legend-row {
  margin-top: 20px;
}

.legend-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-name strong {
  font-size: 13px;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
}

.legend-color.economy {
  background: #ff865f;
}

.legend-color.environment {
  background: #ffdfd5;
}

.legend-num {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

/* 숫자만 주황 */
.legend-num span em {
  color: #ffa281;
  font-style: normal;
  font-weight: 700;
}

/* '개'는 검정 */
.legend-num span {
  color: #111;
}

/* 퍼센트는 주황 유지 */
.legend-num strong {
  color: #ffa281;
  font-weight: 700;
}

.section-line {
  height: 1px;
  margin: 26px 16px;
  background: #fff;
}

.bar-card {
  padding: 24px 18px 30px;
}

.chart-title span {
  color: #ff4b12;
}

.small-label {
  margin-top: 18px;
  color: #c8c8c8;
  font-size: 10px;
}

.avg-count {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

.avg-count strong {
  font-size: 24px;
  color: #111;
}

.bar-chart {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  height: 170px;
}

.y-axis {
  width: 24px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 8px;
  color: #999;
  font-size: 14px;
  text-align: right;
}

.bars {
  position: relative;
  flex: 1;
  height: 150px;
  display: flex;
  justify-content: space-between;
  padding-left: 8px;
}

/* 점선 6줄 */
.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #ececec;
  z-index: 0;
}

.grid-line.l1 {
  top: 0;
}
.grid-line.l2 {
  top: 24px;
}
.grid-line.l3 {
  top: 48px;
}
.grid-line.l4 {
  top: 72px;
}
.grid-line.l5 {
  top: 96px;
}
.grid-line.l6 {
  top: 120px;
}

.bar-item {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar {
  position: absolute;
  bottom: 30px; /* 요일 글자랑 안 겹치게 */
  width: 22px;
  background: #ffdfd5;
}

.bar-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #ff865f;
}

/* 전체 막대 높이: 5,4,5,3,4,5,2 */
.total5 {
  height: 120px;
}
.total4 {
  height: 96px;
}
.total3 {
  height: 72px;
}
.total2 {
  height: 48px;
}

/* 진한 주황 부분 */
.h1 {
  height: 24px;
}
.h12 {
  height: 36px;
}
.h2 {
  height: 48px;
}
.h22 {
  height: 54px;
}
.h32 {
  height: 72px;
}

.bar-item p {
  position: absolute;
  bottom: 0;
  font-size: 13px;
  color: #777;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.nav-item {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 10px;
}

.nav-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.6;
}

.nav-item.active {
  color: #111;
}

.nav-item.active img {
  opacity: 1;
}
